Changeset 81709a in git


Ignore:
Timestamp:
May 24, 2005, 1:35:18 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
910bbb3d3fb87c8f0883490061c8cd47a8dd4c5e
Parents:
e63d7770f620c3362c55d0322a660f60357d5229
Message:
*hannes: no default par. for function pvariables


git-svn-id: file:///usr/local/Singular/svn/trunk@8300 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
modules/modgen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/modgen/misc.cc

    re63d77 r81709a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: misc.cc,v 1.23 2005-04-28 13:47:18 Singular Exp $ */
     4/* $Id: misc.cc,v 1.24 2005-05-24 11:35:18 Singular Exp $ */
    55/*
    66* ABSTRACT: lib parsing
     
    186186{
    187187  char *name;
    188   void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     188  void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    189189  cmd_token id;
    190190  cmd_type  type;
     
    229229  var_type type;
    230230  var_token id;
    231   void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    232                     idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     231  void (*write_cmd)(moddefv module, var_token type,
     232                    idtyp t, void *arg1, void *arg2);
    233233} valid_vars[] = {
    234234  { "help",         VAR_STRING,  VAR_HELP,     write_main_variable },
  • modules/modgen/mod_grammar.y

    re63d77 r81709a  
    11/*
    2  * $Id: mod_grammar.y,v 1.1 2003-06-09 09:49:21 krueger Exp $
     2 * $Id: mod_grammar.y,v 1.2 2005-05-24 11:34:32 Singular Exp $
    33 */
    44
     
    189189          var_token vt;
    190190          int rc = 0;
    191           void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    192                             idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     191          void (*write_cmd)(moddefv module, var_token type,
     192                            idtyp t, void *arg1, void *arg2);
    193193         
    194194          switch(sectnum) {
     
    225225        | NAME '=' FILENAME
    226226        { var_token vt;
    227           void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    228                             idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     227          void (*write_cmd)(moddefv module, var_token type,
     228                            idtyp t, void *arg1, void *arg2);
    229229          switch(sectnum) {
    230230              case 1: /* pass 1: */
     
    244244        | NAME '=' files
    245245        { var_token vt;
    246           void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    247                             idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     246          void (*write_cmd)(moddefv module, var_token type,
     247                            idtyp t, void *arg1, void *arg2);
    248248          switch(sectnum) {
    249249              case 1: /* pass 1: */
     
    262262        | NAME '=' NUMTOK
    263263        { var_token vt;
    264           void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    265                             idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     264          void (*write_cmd)(moddefv module, var_token type,
     265                            idtyp t, void *arg1, void *arg2);
    266266          switch(sectnum) {
    267267              case 1: /* pass 1: */
     
    281281          var_token vt;
    282282          int rc = 0;
    283           void (*write_cmd)(moddefv module, var_token type = VAR_NONE,
    284                             idtyp t, void *arg1 = NULL, void *arg2 = NULL);
     283          void (*write_cmd)(moddefv module, var_token type,
     284                            idtyp t, void *arg1, void *arg2);
    285285          switch(sectnum) {
    286286              case 1: /* pass 1: */
     
    520520proccmd: '%' NAME ';'
    521521        { cmd_token vt;
    522           void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     522          void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    523523         
    524524          switch(vt=checkcmd($2, &write_cmd, CMDT_SINGLE, 0)) {
     
    536536                procedure_decl.flags.auto_header = 0;
    537537              case CMD_NODECL:
    538                 write_cmd(&module_def, &procedure_decl);
     538                write_cmd(&module_def, &procedure_decl,NULL);
    539539                break;
    540540
    541541              default:
    542542                write_function_header(&module_def, &procedure_decl);
    543                 write_cmd(&module_def, &procedure_decl);
     543                write_cmd(&module_def, &procedure_decl,NULL);
    544544          }
    545545          free($2);
     
    548548        {
    549549          cmd_token vt;
    550           void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     550          void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    551551         
    552552          switch(vt=checkcmd($2, &write_cmd, CMDT_0, 1)) {
     
    563563              case CMD_DECL:
    564564              case CMD_CHECK:
    565                 write_cmd(&module_def, &procedure_decl);
     565                write_cmd(&module_def, &procedure_decl,NULL);
    566566          }
    567567          free($2);
     
    570570        {
    571571          cmd_token vt;
    572           void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     572          void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    573573         
    574574          switch(vt=checkcmd($2, &write_cmd, CMDT_ANY, 1)) {
     
    592592        {
    593593          cmd_token vt;
    594           void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     594          void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    595595         
    596596          switch(vt=checkcmd($2, &write_cmd, CMDT_ANY, 1)) {
     
    614614        {
    615615          cmd_token vt;
    616           void (*write_cmd)(moddefv module, procdefv pi, void *arg = NULL);
     616          void (*write_cmd)(moddefv module, procdefv pi, void *arg);
    617617         
    618618          switch(vt=checkcmd($2, &write_cmd, CMDT_EQ, 0)) {
Note: See TracChangeset for help on using the changeset viewer.