Changeset 943eb6 in git for Singular/checklibs.c
- Timestamp:
- Oct 9, 2010, 12:56:35 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 8c1b71fdb9371406a33c774231fadd8e5471b584
- Parents:
- 1e33d5df4b2c03f3879e5b15e65274116be26b6b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/checklibs.c
r1e33d5 r943eb6 12 12 unsigned char buf[LINE_LEN]; 13 13 int proc_cnt=0; 14 char *proc[NUM_PROC];15 char have_doc[NUM_PROC];16 char have_example[NUM_PROC];17 char proc_found[NUM_PROC];14 unsigned char *proc[NUM_PROC]; 15 unsigned char have_doc[NUM_PROC]; 16 unsigned char have_example[NUM_PROC]; 17 unsigned char proc_found[NUM_PROC]; 18 18 int non_ascii=0; 19 19 int non_ascii_line=0; … … 52 52 void scan_proc(int *l) 53 53 { 54 char *p;54 unsigned char *p; 55 55 while(1) 56 56 { … … 58 58 if (((p=strchr(buf,'('))!=NULL)&&(isalnum(*(--p))||(*p=='_'))) 59 59 { 60 char *s=buf;60 unsigned char *s=buf; 61 61 while(*s==' ') s++; 62 62 p++; (*p)='\0'; … … 80 80 /* SEE ALSO, KEYWORDS, NOTE, ... */ 81 81 int ch; 82 char *pp=buf;82 unsigned char *pp=buf; 83 83 while((*pp==' ')||(*pp=='\t')) pp++; 84 84 ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ"); … … 98 98 /* the main problem with KEYWORDS: seperator between is ;, 99 99 * but it MUST NOT appear at the end */ 100 char *p;100 unsigned char *p; 101 101 while(!feof(f)) 102 102 { … … 114 114 /* SEE ALSO, KEYWORDS, NOTE, ... */ 115 115 int ch; 116 char *pp=buf;116 unsigned char *pp=buf; 117 117 while((*pp==' ')||(*pp=='\t')) pp++; 118 118 ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ"); … … 136 136 int have_other=0; 137 137 int texinfo=0; 138 char *p;138 unsigned char *p; 139 139 140 140 while(!feof(f)) … … 176 176 else if ((p=strstr(buf,"PROCEDURES:"))!=NULL) 177 177 { 178 char *pp=buf;178 unsigned char *pp=buf; 179 179 while (pp!=p) 180 180 { … … 197 197 { 198 198 int ch; 199 char *pp=buf;199 unsigned char *pp=buf; 200 200 while((*pp==' ')||(*pp=='\t')) pp++; 201 201 ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ"); … … 259 259 int have_category=0; 260 260 int have_info=0; 261 char *p;261 unsigned char *p; 262 262 263 263 memset(proc,0,NUM_PROC*sizeof(char*)); … … 280 280 if ((p=strstr(buf,"version="))!=NULL) 281 281 { 282 char *pp=buf;282 unsigned char *pp=buf; 283 283 while (pp!=p) 284 284 { … … 297 297 if ((p=strstr(buf,"category="))!=NULL) 298 298 { 299 char *pp=buf;299 unsigned char *pp=buf; 300 300 while (pp!=p) 301 301 { … … 307 307 if ((p=strstr(buf,"info="))!=NULL) 308 308 { 309 char *pp=buf;309 unsigned char *pp=buf; 310 310 while (pp!=p) 311 311 { … … 341 341 while(!feof(f)) 342 342 { 343 if ((strstr(buf,"static")== buf) && (strstr(buf,"proc")==NULL))343 if ((strstr(buf,"static")==(char*)buf) && (strstr(buf,"proc")==NULL)) 344 344 { 345 345 printf("error: 'static' without 'proc' found\n"); … … 349 349 &&(strncmp(buf,"static proc ",12)!=0)) 350 350 { 351 char *pp=buf;351 unsigned char *pp=buf; 352 352 int i; 353 353 while(*pp==' ') pp++;
Note: See TracChangeset
for help on using the changeset viewer.