Changeset 9eb3048 in git for Singular/iplib.cc


Ignore:
Timestamp:
Jul 9, 2013, 10:29:22 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
741c7090dd3b618a24f57b75f1a21c3a19ce119f
Parents:
86919e90eae002225109c1b5b9d94a6544b1a907
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-09 22:29:22+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-09 22:31:47+02:00
Message:
Minor improvements&fixes to builtins
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r86919e r9eb3048  
    733733}
    734734
    735 int staticdemo_mod_init(SModulFunctions*){ PrintS("init of staticdemo\n"); }
     735int staticdemo_mod_init(SModulFunctions*){ PrintS("init of staticdemo\n"); return (0); }
    736736
    737737#define SI_GET_BUILTIN_MOD_INIT(name) \
    738   int name##_mod_init(SModulFunctions*); \
    739   if (strcmp(libname, #name ".so") == 0) {  return name##_mod_init; }
     738  int SI_MOD_INIT(name)(SModulFunctions*); \
     739  if (strcmp(libname, #name ".so") == 0) {  return SI_MOD_INIT(name); }
    740740
    741741
     
    11091109  return TRUE;
    11101110#else
     1111/*
    11111112  typedef int (*fktn_t)(int(*iiAddCproc)(const char *libname, const char *procname,
    11121113                               BOOLEAN pstatic,
    11131114                               BOOLEAN(*func)(leftv res, leftv v)));
     1115*/
    11141116  SModulFunc_t fktn;
    11151117  idhdl pl;
     
    11881190  int iiAddCproc(const char *libname, const char *procname, BOOLEAN pstatic,
    11891191                 BOOLEAN(*func)(leftv res, leftv v));
     1192/*
    11901193  typedef int (*fktn_t)(int(*iiAddCproc)(const char *libname, const char *procname,
    11911194                               BOOLEAN pstatic,
    11921195                               BOOLEAN(*func)(leftv res, leftv v)));
     1196*/
    11931197  // SModulFunc_t fktn;
    11941198  idhdl pl;
Note: See TracChangeset for help on using the changeset viewer.