Changeset 943eb6 in git for Singular/checklibs.c


Ignore:
Timestamp:
Oct 9, 2010, 12:56:35 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8c1b71fdb9371406a33c774231fadd8e5471b584
Parents:
1e33d5df4b2c03f3879e5b15e65274116be26b6b
Message:
syntax

git-svn-id: file:///usr/local/Singular/svn/trunk@13441 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/checklibs.c

    r1e33d5 r943eb6  
    1212unsigned char buf[LINE_LEN];
    1313int 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];
     14unsigned char *proc[NUM_PROC];
     15unsigned char have_doc[NUM_PROC];
     16unsigned char have_example[NUM_PROC];
     17unsigned char proc_found[NUM_PROC];
    1818int non_ascii=0;
    1919int non_ascii_line=0;
     
    5252void scan_proc(int *l)
    5353{
    54   char *p;
     54  unsigned char *p;
    5555  while(1)
    5656  {
     
    5858    if (((p=strchr(buf,'('))!=NULL)&&(isalnum(*(--p))||(*p=='_')))
    5959    {
    60       char *s=buf;
     60      unsigned char *s=buf;
    6161      while(*s==' ') s++;
    6262      p++; (*p)='\0';
     
    8080      /* SEE ALSO, KEYWORDS, NOTE, ... */
    8181      int ch;
    82       char *pp=buf;
     82      unsigned char *pp=buf;
    8383      while((*pp==' ')||(*pp=='\t')) pp++;
    8484      ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
     
    9898  /* the main problem with KEYWORDS: seperator between is ;,
    9999   * but it MUST NOT appear at the end */
    100   char *p;
     100  unsigned char *p;
    101101  while(!feof(f))
    102102  {
     
    114114      /* SEE ALSO, KEYWORDS, NOTE, ... */
    115115      int ch;
    116       char *pp=buf;
     116      unsigned char *pp=buf;
    117117      while((*pp==' ')||(*pp=='\t')) pp++;
    118118      ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
     
    136136  int have_other=0;
    137137  int texinfo=0;
    138   char *p;
     138  unsigned char *p;
    139139
    140140  while(!feof(f))
     
    176176    else if ((p=strstr(buf,"PROCEDURES:"))!=NULL)
    177177    {
    178       char *pp=buf;
     178      unsigned char *pp=buf;
    179179      while (pp!=p)
    180180      {
     
    197197    {
    198198      int ch;
    199       char *pp=buf;
     199      unsigned char *pp=buf;
    200200      while((*pp==' ')||(*pp=='\t')) pp++;
    201201      ch=strspn(pp,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
     
    259259  int have_category=0;
    260260  int have_info=0;
    261   char *p;
     261  unsigned char *p;
    262262
    263263  memset(proc,0,NUM_PROC*sizeof(char*));
     
    280280    if ((p=strstr(buf,"version="))!=NULL)
    281281    {
    282       char *pp=buf;
     282      unsigned char *pp=buf;
    283283      while (pp!=p)
    284284      {
     
    297297    if ((p=strstr(buf,"category="))!=NULL)
    298298    {
    299       char *pp=buf;
     299      unsigned char *pp=buf;
    300300      while (pp!=p)
    301301      {
     
    307307    if ((p=strstr(buf,"info="))!=NULL)
    308308    {
    309       char *pp=buf;
     309      unsigned char *pp=buf;
    310310      while (pp!=p)
    311311      {
     
    341341  while(!feof(f))
    342342  {
    343     if ((strstr(buf,"static")==buf) && (strstr(buf,"proc")==NULL))
     343    if ((strstr(buf,"static")==(char*)buf) && (strstr(buf,"proc")==NULL))
    344344    {
    345345      printf("error: 'static' without 'proc' found\n");
     
    349349    &&(strncmp(buf,"static proc ",12)!=0))
    350350    {
    351       char *pp=buf;
     351      unsigned char *pp=buf;
    352352      int i;
    353353      while(*pp==' ') pp++;
Note: See TracChangeset for help on using the changeset viewer.