Changeset 73d7b5 in git


Ignore:
Timestamp:
May 12, 2000, 2:24:44 PM (24 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
034ce12c4d5c236b70e0d93d3dd39cefcbe60268
Parents:
d18870bf915431bbbed064042d13fe3ecb292569
Message:
*** empty log message ***


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

Legend:

Unmodified
Added
Removed
  • modules/modgen/grammar.y

    rd18870 r73d7b5  
    11/*
    2  * $Id: grammar.y,v 1.13 2000-05-01 19:14:48 krueger Exp $
     2 * $Id: grammar.y,v 1.14 2000-05-12 12:24:43 krueger Exp $
    33 */
    44
     
    690690sect4:  SECT4START codeline SECT4END
    691691        {
    692           fprintf(module_def.modfp, "'%s'", $2);
     692          fprintf(module_def.modfp, "%s", $2);
    693693        };
    694694
  • modules/modgen/proc.cc

    rd18870 r73d7b5  
    11/*
    2  * $Id: proc.cc,v 1.13 2000-05-01 19:14:48 krueger Exp $
     2 * $Id: proc.cc,v 1.14 2000-05-12 12:24:44 krueger Exp $
    33 */
    44
     
    6767       
    6868      case LANG_SINGULAR:
     69        fprintf(module->modfp,"#if 0\n");
    6970        fprintf(module->modfp,
    7071                "  h = add_singular_proc(\"%s\", %d, %ld, %ld, %s);\n",
     
    218219  )
    219220{
    220   fprintf(module->fmtfp, "  res->data =%s\n", arg);
     221  fprintf(module->fmtfp, "  __res->data =%s\n", arg);
    221222  pi->flags.result_done = 1;
    222223  write_procedure_return(module, pi, module->fmtfp);
     
    450451
    451452        case NONE:
    452           if(!pi->flags.result_done) fprintf(fmtfp, "  res->data = NULL;\n");
    453           fprintf(fmtfp, "  res->rtyp = %s;\n", pi->return_val.typname);
     453          if(!pi->flags.result_done) fprintf(fmtfp, "  __res->data = NULL;\n");
     454          fprintf(fmtfp, "  __res->rtyp = %s;\n", pi->return_val.typname);
    454455          fprintf(fmtfp, "  return(%s(", pi->funcname);
    455456          for (i=0;i<pi->paramcnt; i++) {
     
    462463         
    463464        default:
    464           fprintf(fmtfp, "  res->rtyp = %s;\n", pi->return_val.typname);
    465           fprintf(fmtfp, "  res->data = (void *)%s(", pi->funcname);
     465          fprintf(fmtfp, "  __res->rtyp = %s;\n", pi->return_val.typname);
     466          fprintf(fmtfp, "  __res->data = (void *)%s(", pi->funcname);
    466467          for (i=0;i<pi->paramcnt; i++) {
    467468            fprintf(fmtfp, "%s", pi->param[i].varname);
     
    471472          }
    472473          fprintf(fmtfp, ");\n");
    473           fprintf(fmtfp, "  if(res->data != NULL) return FALSE;\n");
     474          fprintf(fmtfp, "  if(__res->data != NULL) return FALSE;\n");
    474475          fprintf(fmtfp, "  else return TRUE;\n\n");
    475476    }
     
    502503            if(trace)printf("\n\t\terror handling..."); fflush(stdout);
    503504            fprintf(module->fmtfp, "  mod_%s_error:\n", pi->procname);
    504             fprintf(module->fmtfp, "    Werror(\"%s(`%%s`) is not supported\", Tok2Cmdname(tok));\n",
     505            fprintf(module->fmtfp, "    Werror(\"%s(`%%s`) is not supported\", Tok2Cmdname(__tok));\n",
    505506                    pi->procname);
    506507            fprintf(module->fmtfp, "    Werror(\"expected %s(", pi->procname);
  • modules/modgen/proc_setup.cc

    rd18870 r73d7b5  
    11/*
    2  * $Id: proc_setup.cc,v 1.6 2000-05-01 19:14:49 krueger Exp $
     2 * $Id: proc_setup.cc,v 1.7 2000-05-12 12:24:44 krueger Exp $
    33 */
    44
     
    214214/*========================================================================*/
    215215char *ReservedVarnames[] = {
    216   "v",
    217   "h"
    218   "res",
    219   "v_save"
    220   "tok",
    221   "index",
     216  "__v",
     217  "__h"
     218  "__res",
     219  "__v_save"
     220  "__tok",
     221  "__index",
    222222  NULL
    223223};
Note: See TracChangeset for help on using the changeset viewer.