Skip to content

stats/stmnt_per_line.cobra fails on cobra-5.1 #81

@CathyGarrett

Description

@CathyGarrett
$ cobra -f stats/stmnt_per_line *.[ch]
error: wrong variable type of z (saw 0, expecting token ref 3)
error: bad dot chain on lhs of asgn
  1 {
  2 if (q.lnr != .lnr)
  3 {	q = .;
> 4 z.mark = 0;
  5 while (. != End && .lnr == q.lnr)
  6 {	if (.txt == ";")
  7 {	z.mark++;
  8 }
  9 . = .nxt;
 10 }
 11 . = q;
 12 Count[ z.mark ]++;
 13 Sample[ z.mark ] = q;
 14 #	print z.mark " " q.fnm ":" q.lnr "\n";
 15 }
 16  }
largest nr of stmnts per line: 0 (eg: bootloader.c:13)

This is using the 5.1 binary distribution and a fresh clone of the master repository for the rules files.
OS: Arch Linux, up to date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions