Changeset 8fe755 in git for Singular/checklibs.c


Ignore:
Timestamp:
Jun 28, 2017, 4:59:06 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
eeb59b7cdc953ab8fc317de9519bebd946fd012c
Parents:
4536792bd3f77133969d911b8ce8c2be84d7d60d
Message:
fix: check also help of proc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/checklibs.c

    r453679 r8fe755  
    2424int header=0;
    2525int crlf=0;
     26int proc_help_lines=0;
     27int proc_help_texinfo=0;
    2628
    2729void get_next()
     
    129131  }
    130132  printf("error: seperate keywords by ; but do not have ; after the last keyword\n");
     133}
     134void 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  }
    131150}
    132151void scan_info(int *l)
     
    388407        while(*p==' ') p++;
    389408        if (*p == '"') have_doc[i]=1;
     409        /* scan proc help*/
     410        scan_proc_help(proc[i]);
    390411        /* serach for example */
    391412        while(!feof(f))
     
    438459  printf("%d lines parsed\n",lines);
    439460  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);
    440463  fclose(f);
    441464  return 0;
Note: See TracChangeset for help on using the changeset viewer.