Changeset a054302 in git


Ignore:
Timestamp:
Jan 29, 2015, 12:04:46 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
100bd496fb3125687ec86ff10fc3604c78620e47
Parents:
9f60696b949cb32e69968e88bd6fe9173f248612
Message:
some blackbox/newstruct checks and warnings
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    r9f60696 ra054302  
    147147  else
    148148  {
     149    // check for alreday defined bb:
     150    for (int i=0;i<MAX_BB_TYPES;i++)
     151    {
     152      if ((blackboxName[i]!=NULL) && (strcmp(blackboxName[i],n)==0))
     153      {
     154        Warn("redefining blackbox type %s (%d -> %d)",n,i+BLACKBOX_OFFSET,where+BLACKBOX_OFFSET);
     155      }
     156    }
    149157    blackboxTable[where]=bb;
    150158    blackboxName[where]=omStrDup(n);
  • Singular/extra.cc

    r9f60696 ra054302  
    863863      {
    864864        int id=0;
    865         blackboxIsCmd((char*)h->Data(),id);
     865        char *n=(char*)h->Data();
     866        blackboxIsCmd(n,id);
    866867        if (id>0)
    867868        {
     
    873874            return FALSE;
    874875          }
    875         }
     876          else Werror("'%s' is not a newstruct",n);
     877        }
     878        else Werror("'%s' is not a blackbox object",n);
    876879      }
    877880      return TRUE;
Note: See TracChangeset for help on using the changeset viewer.