Changeset 0af1d53 in git for Singular/checklibs.c


Ignore:
Timestamp:
Oct 6, 2010, 2:41:52 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ea87a93050cdcca11afbc852bd15cf611cbd502b
Parents:
0a6dbf2665b5ad31a041853cc76ea29bb4e36f93
Message:
check version string

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

Legend:

Unmodified
Added
Removed
  • Singular/checklibs.c

    r0a6dbf r0af1d53  
    6868      {
    6969        if (strlen(s)<4)
    70           printf("error: minimal length of a procedure name is 4: %s\n",s);
     70          printf("error: minimal length of a procedure name is 4: %s\n",s);
    7171        proc[proc_cnt]=strdup(s); proc_cnt++;
    7272      }
     
    204204        /* check for other allowed sections: REFERENCES*/
    205205        if ((ch!=10)||(strncmp(pp,"REFERENCES",10)!=0))
    206         {
     206        {
    207207          printf("error: unknown section in library header: %s",buf);
    208208          have_other++;
    209         }
     209        }
    210210        if (have_PROCEDURES!=0)
    211211          printf("error: only KEYWORDS/SEE ALSO may follow PROCEDURES\n");
     
    289289      {
    290290        have_version++;
    291         pp=p+8;
    292         while((*pp)==' ') pp++);
    293         if (((*pp)!='"') || (strstr(pp,"$Id")==NULL))
    294           printf("error: version string should start with $""Id");
     291        pp=p+8;
     292        while((*pp)==' ') pp++;
     293        if (((*pp)!='"') || (strstr(pp,"$Id")==NULL))
     294          printf("error: version string should start with $""Id");
     295      }
    295296    }
    296297    if ((p=strstr(buf,"category="))!=NULL)
     
    368369        if(strcmp(proc[i],pp)==0) break;
    369370      }
    370       if (i<0) 
     371      if (i<0)
    371372      {
    372373        printf("hint: global proc %s not found in header\n",pp);
Note: See TracChangeset for help on using the changeset viewer.