Changeset 4bd8b0 in git


Ignore:
Timestamp:
Nov 28, 2022, 1:14:06 PM (2 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
e3fd2385875172f7dad06ee5119ea14da2584462
Parents:
003f7169c5475df2e586ea9697de3901110b362d
Message:
checklibs: cgi-version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/checklibs.c

    r003f71 r4bd8b0  
    289289  memset(have_example,0,NUM_PROC);
    290290  memset(proc_found,0,NUM_PROC);
    291   if (argc!=2) { printf("usage: %s lib-file\n",argv[0]); return 1;}
    292 
    293   printf("\n          CHECKING LIBRARY %s\n\n",argv[1]);
    294 
    295   f=fopen(argv[1],"r");
    296   if(f==NULL) { printf("cannot read %s\n",argv[1]); return 2; }
     291  if (argc==1)
     292  {
     293    f=stdin;
     294  }
     295  else
     296  {
     297    if (argc!=2) { printf("usage: %s lib-file\n",argv[0]); return 1;}
     298    printf("\n          CHECKING LIBRARY %s\n\n",argv[1]);
     299    f=fopen(argv[1],"r");
     300    if(f==NULL) { printf("cannot read %s\n",argv[1]); return 2; }
     301  }
     302
    297303  buf[0]='\0';
    298304  get_next(); header++;
     
    315321        pp=p+8;
    316322        while((*pp)==' ') pp++;
    317         /* syntax of version string: "version <filename> <version> <date> "
     323        /* syntax of version string: "version <filename> <version> <date> "
    318324        if (*pp)!='"')
    319325          printf("error: version string should ....");
    320         */
     326        */
    321327      }
    322328    }
     
    407413        while(*p==' ') p++;
    408414        if (*p == '"') have_doc[i]=1;
    409         /* scan proc help*/
    410         scan_proc_help(proc[i]);
     415        /* scan proc help*/
     416        scan_proc_help(proc[i]);
    411417        /* serach for example */
    412418        while(!feof(f))
Note: See TracChangeset for help on using the changeset viewer.