| 27 | int proc_help_texinfo=0; |
| 28 | |
| 29 | void get_next() |
| 30 | { |
| 31 | int i; |
| 32 | memset(buf,0,LINE_LEN); |
| 33 | fgets(buf,LINE_LEN,f); |
| 34 | lines++; |
| 35 | if (buf[0]!='\0') |
| 36 | { |
| 37 | int non_ascii_found=0; |
| 38 | if (strchr(buf,'\r')!=NULL) crlf++; |
| 39 | if ((buf[LINE_LEN-1]!='\0')||(strlen(buf)>RECOMMENDED_LEN)) |
| 40 | { |
| 41 | if (verylong_lines==0) printf("warning: very long line (%d):\n%s\n",lines,buf); |
| 42 | verylong_lines++; |
| 43 | } |
| 44 | if ((strstr(buf," \n")!=NULL)||(strstr(buf," \r\n")!=NULL)) trailing_spaces++; |
| 45 | if (strchr(buf,'\t')!=NULL) tabs++; |
| 46 | |
| 47 | for(i=0;(i<LINE_LEN) && (buf[i]!='\0'); i++) |
| 48 | { |
| 49 | if (buf[i]>=127) { non_ascii_found=1;non_ascii++;non_ascii_line=lines; break; } |
| 50 | } |
| 51 | if (non_ascii_found) printf("non-ascii:>>%s<<\n",buf); |
| 52 | if (footer==0) /* we are still in the header */ |
| 53 | { |
| 54 | if (strstr(buf,"@*")!=NULL) star_nl++; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void scan_proc(int *l) |
| 60 | { |
no outgoing calls
no test coverage detected