Changeset 8fe755 in git for Singular/checklibs.c
- Timestamp:
- Jun 28, 2017, 4:59:06 PM (7 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- eeb59b7cdc953ab8fc317de9519bebd946fd012c
- Parents:
- 4536792bd3f77133969d911b8ce8c2be84d7d60d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/checklibs.c
r453679 r8fe755 24 24 int header=0; 25 25 int crlf=0; 26 int proc_help_lines=0; 27 int proc_help_texinfo=0; 26 28 27 29 void get_next() … … 129 131 } 130 132 printf("error: seperate keywords by ; but do not have ; after the last keyword\n"); 133 } 134 void scan_proc_help(const char *s) 135 { 136 while(!feof(f)) 137 { 138 proc_help_lines++; 139 if (strstr(buf,"\";")!=NULL) break; 140 if (buf[0]=='{') break; 141 if (strstr(buf,"@")!=NULL) 142 { 143 proc_help_texinfo++; 144 buf[strlen(buf)-1]='\0'; 145 strcat(buf,"<<\n"); 146 printf("texinfo in proc help(%s): >>%s",s,buf); 147 } 148 get_next(); 149 } 131 150 } 132 151 void scan_info(int *l) … … 388 407 while(*p==' ') p++; 389 408 if (*p == '"') have_doc[i]=1; 409 /* scan proc help*/ 410 scan_proc_help(proc[i]); 390 411 /* serach for example */ 391 412 while(!feof(f)) … … 438 459 printf("%d lines parsed\n",lines); 439 460 printf("%d proc found in header\n",proc_cnt); 461 printf("%d lines found in proc help\n",proc_help_lines); 462 printf("%d lines found in proc help with texinfo commands (should be very small)\n",proc_help_texinfo); 440 463 fclose(f); 441 464 return 0;
Note: See TracChangeset
for help on using the changeset viewer.