MCPcopy Create free account
hub / github.com/Singular/Singular / get_next

Function get_next

Singular/checklibs.c:29–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27int proc_help_texinfo=0;
28
29void 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
59void scan_proc(int *l)
60{

Callers 5

scan_procFunction · 0.85
scan_keywordsFunction · 0.85
scan_proc_helpFunction · 0.85
scan_infoFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected