Changeset 1c2317 in git


Ignore:
Timestamp:
May 8, 2014, 11:00:59 AM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
940230a149b3bac4c8d39671078f7fb77bb097e6
Parents:
83ce221ff06900901bec39d172e89083a2a00b8f
Message:
removed unused special handling of '(' from example bigintm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/bigintm/bigintm.cc

    r83ce22 r1c2317  
    110110*/
    111111
    112   if( op=='(' ) // <bigintm>  VAR();
    113   {
    114     Werror("bigintm_Op1: What do you mean by '<bigintm>()'?!");
    115     return TRUE;
    116   }
    117 
    118112  return blackboxDefaultOp1(op, l, r);
    119113}
     
    200194      return TRUE;
    201195    }
    202 /*
    203     /// TODO: Why is this ignored???!
    204     case '(' : // <bigintm>  VAR(b);
    205     {
    206       Werror("bigintm_Op2: What du you mean by '<bigintm>(...%s...)'?!", Tok2Cmdname(a2->Typ()));
    207       return TRUE;
    208     }
    209 */
     196
    210197    case EQUAL_EQUAL:
    211198    {
     
    221208        res->data=(void *) (long) n_Equal(n1,n2, coeffs_BIGINT);
    222209        res->rtyp= INT_CMD;
     210        n_Delete(&n2,coeffs_BIGINT);
    223211        return FALSE;
    224212      }
     
    245233
    246234      Werror("bigintm_Op2: Op: '.': 2nd argument-type: '%s'(%d) is called '%s' in ", Tok2Cmdname(a2->Typ()), a2->Typ(), a2->name);
    247       return blackboxDefaultOp2(op,res,a1,a2);
     235      return TRUE;
    248236    }
    249237
     
    267255    }
    268256
    269     /// TODO: Why is this used for ALL the cases: even for "a(1)"  ???!
    270     case '(' : // <bigintm>  VAR(b,...);
    271     {
    272       Werror("bigintm_OpM: What do you mean by '<bigintm>(...)'?!");
    273       return TRUE;
    274     }
    275 
    276257    default:
    277258      return blackbox_default_OpM(op, res, args);
    278259  }
    279   return TRUE;
     260  return blackbox_default_OpM(op, res, args);
    280261}
    281262
Note: See TracChangeset for help on using the changeset viewer.