home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / VPR_DATA / DOGA / SOURCES / POLYEDIT.LZH / ML / _MLINIT.C < prev    next >
C/C++ Source or Header  |  1995-03-21  |  4KB  |  139 lines

  1. #include "lib.h"
  2. enum {
  3.     __MLInitID,
  4.     DebugModeID,
  5.     SetMaxCodeSizeID,
  6.     SetMaxGlobalsID,
  7.     SetMaxFunctionsID,
  8.     SetMaxStacksID,
  9.     ParseInitID,
  10.     ParseExitID,
  11.     ParseSentenseAllID,
  12.     ReportCodeSizeID,
  13.     ReportIdentID,
  14.     ExecInitID,
  15.     ExecExitID,
  16.     ExecSentenseAllID,
  17.     StringToObjectID,
  18.     NewConstID,
  19.     NewClassID,
  20.     ClassNameID,
  21.     FunctionNameID,
  22.     NewFunctionID,
  23.     NewOperatorID,
  24.     CallFunctionID,
  25.     CallFunctionParentID,
  26.     ParseErrorID,
  27.     ParseFatalID,
  28.     ExecErrorID,
  29.     ArgCheckID,
  30.     StackTopID,
  31.     StackPopID,
  32.     StackPushID,
  33.     StackPushBooleanID,
  34.     StackPushIntID,
  35.     StackPushRealID,
  36.     StackAllocID,
  37.     StackReleaseID,
  38.     StackMaxUsedID,
  39.     DataPrintID,
  40.     DataToStringID,
  41.     ObjectAllocID,
  42.     ObjectFreeID,
  43.     ObjectCheckID,
  44.     ObjectDupID,
  45.     ObjectCopyID,
  46. };
  47. void    *___MLInit ;
  48. void    *_DebugMode ;
  49. void    *_SetMaxCodeSize ;
  50. void    *_SetMaxGlobals ;
  51. void    *_SetMaxFunctions ;
  52. void    *_SetMaxStacks ;
  53. void    *_ParseInit ;
  54. void    *_ParseExit ;
  55. void    *_ParseSentenseAll ;
  56. void    *_ReportCodeSize ;
  57. void    *_ReportIdent ;
  58. void    *_ExecInit ;
  59. void    *_ExecExit ;
  60. void    *_ExecSentenseAll ;
  61. void    *_StringToObject ;
  62. void    *_NewConst ;
  63. void    *_NewClass ;
  64. void    *_ClassName ;
  65. void    *_FunctionName ;
  66. void    *_NewFunction ;
  67. void    *_NewOperator ;
  68. void    *_CallFunction ;
  69. void    *_CallFunctionParent ;
  70. void    *_ParseError ;
  71. void    *_ParseFatal ;
  72. void    *_ExecError ;
  73. void    *_ArgCheck ;
  74. void    *_StackTop ;
  75. void    *_StackPop ;
  76. void    *_StackPush ;
  77. void    *_StackPushBoolean ;
  78. void    *_StackPushInt ;
  79. void    *_StackPushReal ;
  80. void    *_StackAlloc ;
  81. void    *_StackRelease ;
  82. void    *_StackMaxUsed ;
  83. void    *_DataPrint ;
  84. void    *_DataToString ;
  85. void    *_ObjectAlloc ;
  86. void    *_ObjectFree ;
  87. void    *_ObjectCheck ;
  88. void    *_ObjectDup ;
  89. void    *_ObjectCopy ;
  90. extern    void    *SearchFunction( Function*, char* );
  91.  
  92. void    _MLInit( func )
  93. Function    *func ;
  94. {
  95.     ___MLInit = SearchFunction( func, "__MLInit" );
  96.     _DebugMode = SearchFunction( func, "DebugMode" );
  97.     _SetMaxCodeSize = SearchFunction( func, "SetMaxCodeSize" );
  98.     _SetMaxGlobals = SearchFunction( func, "SetMaxGlobals" );
  99.     _SetMaxFunctions = SearchFunction( func, "SetMaxFunctions" );
  100.     _SetMaxStacks = SearchFunction( func, "SetMaxStacks" );
  101.     _ParseInit = SearchFunction( func, "ParseInit" );
  102.     _ParseExit = SearchFunction( func, "ParseExit" );
  103.     _ParseSentenseAll = SearchFunction( func, "ParseSentenseAll" );
  104.     _ReportCodeSize = SearchFunction( func, "ReportCodeSize" );
  105.     _ReportIdent = SearchFunction( func, "ReportIdent" );
  106.     _ExecInit = SearchFunction( func, "ExecInit" );
  107.     _ExecExit = SearchFunction( func, "ExecExit" );
  108.     _ExecSentenseAll = SearchFunction( func, "ExecSentenseAll" );
  109.     _StringToObject = SearchFunction( func, "StringToObject" );
  110.     _NewConst = SearchFunction( func, "NewConst" );
  111.     _NewClass = SearchFunction( func, "NewClass" );
  112.     _ClassName = SearchFunction( func, "ClassName" );
  113.     _FunctionName = SearchFunction( func, "FunctionName" );
  114.     _NewFunction = SearchFunction( func, "NewFunction" );
  115.     _NewOperator = SearchFunction( func, "NewOperator" );
  116.     _CallFunction = SearchFunction( func, "CallFunction" );
  117.     _CallFunctionParent = SearchFunction( func, "CallFunctionParent" );
  118.     _ParseError = SearchFunction( func, "ParseError" );
  119.     _ParseFatal = SearchFunction( func, "ParseFatal" );
  120.     _ExecError = SearchFunction( func, "ExecError" );
  121.     _ArgCheck = SearchFunction( func, "ArgCheck" );
  122.     _StackTop = SearchFunction( func, "StackTop" );
  123.     _StackPop = SearchFunction( func, "StackPop" );
  124.     _StackPush = SearchFunction( func, "StackPush" );
  125.     _StackPushBoolean = SearchFunction( func, "StackPushBoolean" );
  126.     _StackPushInt = SearchFunction( func, "StackPushInt" );
  127.     _StackPushReal = SearchFunction( func, "StackPushReal" );
  128.     _StackAlloc = SearchFunction( func, "StackAlloc" );
  129.     _StackRelease = SearchFunction( func, "StackRelease" );
  130.     _StackMaxUsed = SearchFunction( func, "StackMaxUsed" );
  131.     _DataPrint = SearchFunction( func, "DataPrint" );
  132.     _DataToString = SearchFunction( func, "DataToString" );
  133.     _ObjectAlloc = SearchFunction( func, "ObjectAlloc" );
  134.     _ObjectFree = SearchFunction( func, "ObjectFree" );
  135.     _ObjectCheck = SearchFunction( func, "ObjectCheck" );
  136.     _ObjectDup = SearchFunction( func, "ObjectDup" );
  137.     _ObjectCopy = SearchFunction( func, "ObjectCopy" );
  138. }
  139.