Changeset f09a99 in git
- Timestamp:
- May 5, 2014, 1:50:13 PM (10 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
- Children:
- 508d46c825fbaedc044e70aed39323c9230fa353
- Parents:
- f0cd66c1f26eeb797e2b9d7e5427eefb62882e07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/newstruct.cc
rf0cd66c rf09a99 700 700 { 701 701 // read type: 702 while ( *p==' ') p++;702 while ((*p!='\0') && (*p<=' ')) p++; 703 703 start=p; 704 while (isal pha(*p)) p++;704 while (isalnum(*p)) p++; 705 705 *p='\0'; 706 706 IsCmd(start,t); … … 719 719 // read name: 720 720 p++; 721 while ( *p==' ') p++;721 while ((*p!='\0') && (*p<=' ')) p++; 722 722 start=p; 723 while (isal pha(*p)) p++;723 while (isalnum(*p)) p++; 724 724 c=*p; 725 725 *p='\0'; 726 726 elem->typ=t; 727 727 elem->pos=res->size; 728 if ( *start=='\0') /*empty name*/729 { 730 WerrorS(" empty name for element");728 if ((*start=='\0') /*empty name*/||(isdigit(*start))) 729 { 730 WerrorS("illegal/empty name for element"); 731 731 goto error_in_newstruct_def; 732 732 } … … 739 739 // next ? 740 740 *p=c; 741 while ( *p==' ') p++;741 while ((*p!='\0') && (*p<=' ')) p++; 742 742 if (*p!=',') 743 743 {
Note: See TracChangeset
for help on using the changeset viewer.