Changeset 34388a in git for Singular


Ignore:
Timestamp:
Mar 23, 2022, 11:00:57 PM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8b9bbee61c66f3f671554a86023c9ed5f7134f02
Parents:
fe9de63c2326ce1fda9b11bcd48015760dd7c982
Message:
fix: loading proc from both syn.module and lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    rfe9de6 r34388a  
    304304        else return h;
    305305      }
     306      else if((t==PROC_CMD)&&(IDPROC(h)->language==LANG_C))
     307      {
     308        if (BVERBOSE(V_REDEFINE))
     309        {
     310          const char *f=VoiceName();
     311          if (strcmp(f,"STDIN")==0)
     312            Warn("redefining proc %s (%s)",s,my_yylinebuf);
     313          else
     314            Warn("redefining proc %s (%s) %s:%d",s,my_yylinebuf,f, yylineno);
     315        }
     316        if (s==IDID(h)) IDID(h)=NULL;
     317      }
    306318      else
    307319      {
     
    459471  if (IDTYP(h) == PACKAGE_CMD)
    460472  {
    461     if (((IDPACKAGE(h)->language==LANG_C)&&(IDPACKAGE(h)->idroot!=NULL))
     473    if ((((IDPACKAGE(h)->language==LANG_C) ||(IDPACKAGE(h)->language==LANG_MIX))
     474      &&(IDPACKAGE(h)->idroot!=NULL))
    462475    || (strcmp(IDID(h),"Top")==0))
    463476    {
     
    493506  else if (IDDATA(h)!=NULL)
    494507    s_internalDelete(IDTYP(h),IDDATA(h),r);
     508  IDDATA(h)=NULL;
    495509  //  general  -------------------------------------------------------------
    496510  // now dechain it and delete idrec
Note: See TracChangeset for help on using the changeset viewer.