您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DefglobalData函数代码示例

51自学网 2021-06-01 20:26:14
  C++
这篇教程C++ DefglobalData函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DefglobalData函数的典型用法代码示例。如果您正苦于以下问题:C++ DefglobalData函数的具体用法?C++ DefglobalData怎么用?C++ DefglobalData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DefglobalData函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DeallocateDefglobalData

static void DeallocateDefglobalData(  void *theEnv)  {#if ! RUN_TIME   struct defglobalModule *theModuleItem;   void *theModule;   #if BLOAD || BLOAD_AND_BSAVE   if (Bloaded(theEnv)) return;#endif   DoForAllConstructs(theEnv,DestroyDefglobalAction,DefglobalData(theEnv)->DefglobalModuleIndex,FALSE,NULL);    for (theModule = EnvGetNextDefmodule(theEnv,NULL);        theModule != NULL;        theModule = EnvGetNextDefmodule(theEnv,theModule))     {      theModuleItem = (struct defglobalModule *)                      GetModuleItem(theEnv,(struct defmodule *) theModule,                                    DefglobalData(theEnv)->DefglobalModuleIndex);      rtn_struct(theEnv,defglobalModule,theModuleItem);     }#else   DoForAllConstructs(theEnv,DestroyDefglobalAction,DefglobalData(theEnv)->DefglobalModuleIndex,FALSE,NULL); #endif  }
开发者ID:femto,项目名称:rbclips,代码行数:26,


示例2: EnvSetResetGlobals

globle intBool EnvSetResetGlobals(  void *theEnv,  int value)  {   int ov;   ov = DefglobalData(theEnv)->ResetGlobals;   DefglobalData(theEnv)->ResetGlobals = value;   return(ov);  }
开发者ID:femto,项目名称:rbclips,代码行数:10,


示例3: ReturnModule

static void ReturnModule(  void *theEnv,  void *theItem)  {   FreeConstructHeaderModule(theEnv,(struct defmoduleItemHeader *) theItem,DefglobalData(theEnv)->DefglobalConstruct);   rtn_struct(theEnv,defglobalModule,theItem);  }
开发者ID:femto,项目名称:rbclips,代码行数:7,


示例4: DefglobalBasicCommands

globle void DefglobalBasicCommands(  void *theEnv)  {   AddSaveFunction(theEnv,"defglobal",SaveDefglobals,40);   EnvAddResetFunction(theEnv,"defglobal",ResetDefglobals,50);#if ! RUN_TIME   EnvDefineFunction2(theEnv,"get-defglobal-list",'m',PTIEF GetDefglobalListFunction,"GetDefglobalListFunction","01w");   EnvDefineFunction2(theEnv,"undefglobal",'v',PTIEF UndefglobalCommand,"UndefglobalCommand","11w");   EnvDefineFunction2(theEnv,"defglobal-module",'w',PTIEF DefglobalModuleFunction,"DefglobalModuleFunction","11w");#if DEBUGGING_FUNCTIONS   EnvDefineFunction2(theEnv,"list-defglobals",'v', PTIEF ListDefglobalsCommand,"ListDefglobalsCommand","01w");   EnvDefineFunction2(theEnv,"ppdefglobal",'v',PTIEF PPDefglobalCommand,"PPDefglobalCommand","11w");   AddWatchItem(theEnv,"globals",0,&DefglobalData(theEnv)->WatchGlobals,0,DefglobalWatchAccess,DefglobalWatchPrint);#endif#if (BLOAD || BLOAD_ONLY || BLOAD_AND_BSAVE)   DefglobalBinarySetup(theEnv);#endif#if CONSTRUCT_COMPILER && (! RUN_TIME)   DefglobalCompilerSetup(theEnv);#endif#endif  }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:27,


示例5: PPDefglobal

globle int PPDefglobal(  void *theEnv,  const char *defglobalName,  const char *logicalName)  {   return(PPConstruct(theEnv,defglobalName,logicalName,DefglobalData(theEnv)->DefglobalConstruct));   }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:7,


示例6: EnvGetDefglobalList

globle void EnvGetDefglobalList(  void *theEnv,  DATA_OBJECT_PTR returnValue,  void *theModule)  {   GetConstructList(theEnv,returnValue,DefglobalData(theEnv)->DefglobalConstruct,(struct defmodule *) theModule);   }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:7,


示例7: SaveDefglobals

static void SaveDefglobals(  void *theEnv,  void *theModule,  const char *logicalName)  {   SaveConstruct(theEnv,theModule,logicalName,DefglobalData(theEnv)->DefglobalConstruct);   }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:7,


示例8: DefglobalCompilerSetup

globle void DefglobalCompilerSetup(    void *theEnv){    DefglobalData(theEnv)->DefglobalCodeItem =        AddCodeGeneratorItem(theEnv,"defglobal",0,BeforeDefglobalsToCode,                             InitDefglobalsCode,ConstructToCode,2);}
开发者ID:rdegraci,项目名称:CLIPS,代码行数:7,


示例9: DefglobalCompilerSetup

globle void DefglobalCompilerSetup(  void *theEnv,  EXEC_STATUS)  {   DefglobalData(theEnv,execStatus)->DefglobalCodeItem =       AddCodeGeneratorItem(theEnv,execStatus,"defglobal",0,BeforeDefglobalsToCode,                           InitDefglobalsCode,ConstructToCode,2);  }
开发者ID:atrniv,项目名称:CLIPS,代码行数:8,


示例10: EnvListDefglobals

globle void EnvListDefglobals(  void *theEnv,  const char *logicalName,  void *vTheModule)  {   struct defmodule *theModule = (struct defmodule *) vTheModule;   ListConstruct(theEnv,DefglobalData(theEnv)->DefglobalConstruct,logicalName,theModule);  }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:9,


示例11: DefglobalToCode

static void DefglobalToCode(  void *theEnv,  EXEC_STATUS,  FILE *theFile,  struct defglobal *theDefglobal,  int imageID,  int maxIndices,  int moduleCount)  {   /*==================*/   /* Defglobal Header */   /*==================*/   fprintf(theFile,"{");   ConstructHeaderToCode(theEnv,execStatus,theFile,&theDefglobal->header,imageID,maxIndices,                         moduleCount,ModulePrefix(DefglobalData(theEnv,execStatus)->DefglobalCodeItem),                         ConstructPrefix(DefglobalData(theEnv,execStatus)->DefglobalCodeItem));   fprintf(theFile,",");   /*============================================*/   /* Watch Flag, In Scope Flag, and Busy Count. */   /*============================================*/   fprintf(theFile,"0,0,%ld,",theDefglobal->busyCount);   /*================*/   /* Current Value. */   /*================*/   fprintf(theFile,"{NULL,RVOID}");   /*=====================*/   /* Initial Expression. */   /*=====================*/   fprintf(theFile,",");   PrintHashedExpressionReference(theEnv,execStatus,theFile,theDefglobal->initial,imageID,maxIndices);   fprintf(theFile,"}");  }
开发者ID:atrniv,项目名称:CLIPS,代码行数:42,


示例12: DefglobalToCode

static void DefglobalToCode(  Environment *theEnv,  FILE *theFile,  Defglobal *theDefglobal,  unsigned int imageID,  unsigned int maxIndices,  unsigned int moduleCount)  {   /*==================*/   /* Defglobal Header */   /*==================*/   fprintf(theFile,"{");   ConstructHeaderToCode(theEnv,theFile,&theDefglobal->header,imageID,maxIndices,                         moduleCount,ModulePrefix(DefglobalData(theEnv)->DefglobalCodeItem),                         ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem));   fprintf(theFile,",");   /*============================================*/   /* Watch Flag, In Scope Flag, and Busy Count. */   /*============================================*/   fprintf(theFile,"0,0,%ld,",theDefglobal->busyCount);   /*================*/   /* Current Value. */   /*================*/   fprintf(theFile,"{ { NULL } }");   /*=====================*/   /* Initial Expression. */   /*=====================*/   fprintf(theFile,",");   PrintHashedExpressionReference(theEnv,theFile,theDefglobal->initial,imageID,maxIndices);   fprintf(theFile,"}");  }
开发者ID:DrItanium,项目名称:maya,代码行数:41,


示例13: DefglobalWatchPrint

static unsigned DefglobalWatchPrint(  void *theEnv,  const char *logName,  int code,  EXPRESSION *argExprs)  {#if MAC_XCD#pragma unused(code)#endif   return(ConstructPrintWatchAccess(theEnv,DefglobalData(theEnv)->DefglobalConstruct,logName,argExprs,                                    EnvGetDefglobalWatch,EnvSetDefglobalWatch));  }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:13,


示例14: DefglobalWatchAccess

static unsigned DefglobalWatchAccess(  void *theEnv,  int code,  unsigned newState,  EXPRESSION *argExprs)  {#if MAC_XCD#pragma unused(code)#endif   return(ConstructSetWatchAccess(theEnv,DefglobalData(theEnv)->DefglobalConstruct,newState,argExprs,                                  EnvGetDefglobalWatch,EnvSetDefglobalWatch));  }
开发者ID:Khenji55,项目名称:Computacion_UCLM,代码行数:13,


示例15: DefglobalCModuleReference

void DefglobalCModuleReference(  Environment *theEnv,  FILE *theFile,  unsigned long count,  unsigned int imageID,  unsigned int maxIndices)  {   fprintf(theFile,"MIHS &%s%u_%lu[%lu]",                      ModulePrefix(DefglobalData(theEnv)->DefglobalCodeItem),                      imageID,                      (count / maxIndices) + 1,                      (count % maxIndices));  }
开发者ID:DrItanium,项目名称:maya,代码行数:13,


示例16: DefglobalCModuleReference

globle void DefglobalCModuleReference(    void *theEnv,    FILE *theFile,    int count,    int imageID,    int maxIndices){    fprintf(theFile,"MIHS &%s%d_%d[%d]",            ModulePrefix(DefglobalData(theEnv)->DefglobalCodeItem),            imageID,            (count / maxIndices) + 1,            (count % maxIndices));}
开发者ID:rdegraci,项目名称:CLIPS,代码行数:13,


示例17: InitializeDefglobals

void InitializeDefglobals(  Environment *theEnv)  {   struct entityRecord globalInfo = { "GBL_VARIABLE", GBL_VARIABLE,0,0,0,                                                       NULL,                                                       NULL,                                                       NULL,                                                       (EntityEvaluationFunction *)  EntityGetDefglobalValue,                                                       NULL,NULL,                                                       NULL,NULL,NULL,NULL,NULL,NULL };   struct entityRecord defglobalPtrRecord = { "DEFGLOBAL_PTR", DEFGLOBAL_PTR,0,0,0,                                                       NULL,NULL,NULL,                                                       (EntityEvaluationFunction *) QGetDefglobalUDFValue,                                                       NULL,                                                       (EntityBusyCountFunction *) DecrementDefglobalBusyCount,                                                       (EntityBusyCountFunction *) IncrementDefglobalBusyCount,                                                       NULL,NULL,NULL,NULL,NULL };   AllocateEnvironmentData(theEnv,DEFGLOBAL_DATA,sizeof(struct defglobalData),DeallocateDefglobalData);   memcpy(&DefglobalData(theEnv)->GlobalInfo,&globalInfo,sizeof(struct entityRecord));   memcpy(&DefglobalData(theEnv)->DefglobalPtrRecord,&defglobalPtrRecord,sizeof(struct entityRecord));   DefglobalData(theEnv)->ResetGlobals = true;   DefglobalData(theEnv)->LastModuleIndex = -1;   InstallPrimitive(theEnv,&DefglobalData(theEnv)->GlobalInfo,GBL_VARIABLE);   InstallPrimitive(theEnv,&DefglobalData(theEnv)->GlobalInfo,MF_GBL_VARIABLE);   InstallPrimitive(theEnv,&DefglobalData(theEnv)->DefglobalPtrRecord,DEFGLOBAL_PTR);   InitializeDefglobalModules(theEnv);   DefglobalBasicCommands(theEnv);   DefglobalCommandDefinitions(theEnv);   DefglobalData(theEnv)->DefglobalConstruct =      AddConstruct(theEnv,"defglobal","defglobals",ParseDefglobal,                   (FindConstructFunction *) FindDefglobal,                   GetConstructNamePointer,GetConstructPPForm,                   GetConstructModuleItem,                   (GetNextConstructFunction *) GetNextDefglobal,                   SetNextConstruct,                   (IsConstructDeletableFunction *) DefglobalIsDeletable,                   (DeleteConstructFunction *) Undefglobal,                   (FreeConstructFunction *) ReturnDefglobal);  }
开发者ID:DrItanium,项目名称:maya,代码行数:47,


示例18: ReturnDefglobal

static void ReturnDefglobal(  void *theEnv,  void *vTheDefglobal)  {#if (MAC_MCW || IBM_MCW) && (RUN_TIME || BLOAD_ONLY)#pragma unused(theEnv,vTheDefglobal)#endif   #if (! BLOAD_ONLY) && (! RUN_TIME)   struct defglobal *theDefglobal = (struct defglobal *) vTheDefglobal;      if (theDefglobal == NULL) return;   /*====================================*/   /* Return the global's current value. */   /*====================================*/   ValueDeinstall(theEnv,&theDefglobal->current);   if (theDefglobal->current.type == MULTIFIELD)     { ReturnMultifield(theEnv,(struct multifield *) theDefglobal->current.value); }   /*================================================*/   /* Return the expression representing the initial */   /* value of the defglobal when it was defined.    */   /*================================================*/   RemoveHashedExpression(theEnv,theDefglobal->initial);   /*===============================*/   /* Release items stored in the   */   /* defglobal's construct header. */   /*===============================*/   DeinstallConstructHeader(theEnv,&theDefglobal->header);   /*======================================*/   /* Return the defglobal data structure. */   /*======================================*/   rtn_struct(theEnv,defglobal,theDefglobal);   /*===========================================*/   /* Set the variable indicating that a change */   /* has been made to a global variable.       */   /*===========================================*/   DefglobalData(theEnv)->ChangeToGlobals = TRUE;#endif  }
开发者ID:femto,项目名称:rbclips,代码行数:49,


示例19: ReturnDefglobal

static void ReturnDefglobal(  Environment *theEnv,  Defglobal *theDefglobal)  {#if (! BLOAD_ONLY) && (! RUN_TIME)   if (theDefglobal == NULL) return;   /*====================================*/   /* Return the global's current value. */   /*====================================*/   Release(theEnv,theDefglobal->current.header);   if (theDefglobal->current.header->type == MULTIFIELD_TYPE)     {      if (theDefglobal->current.multifieldValue->busyCount == 0)        { ReturnMultifield(theEnv,theDefglobal->current.multifieldValue); }      else        { AddToMultifieldList(theEnv,theDefglobal->current.multifieldValue); }     }   /*================================================*/   /* Return the expression representing the initial */   /* value of the defglobal when it was defined.    */   /*================================================*/   RemoveHashedExpression(theEnv,theDefglobal->initial);   /*===============================*/   /* Release items stored in the   */   /* defglobal's construct header. */   /*===============================*/   DeinstallConstructHeader(theEnv,&theDefglobal->header);   /*======================================*/   /* Return the defglobal data structure. */   /*======================================*/   rtn_struct(theEnv,defglobal,theDefglobal);   /*===========================================*/   /* Set the variable indicating that a change */   /* has been made to a global variable.       */   /*===========================================*/   DefglobalData(theEnv)->ChangeToGlobals = true;#endif  }
开发者ID:DrItanium,项目名称:maya,代码行数:48,


示例20: DefglobalModuleToCode

static void DefglobalModuleToCode(  void *theEnv,  FILE *theFile,  struct defmodule *theModule,  int imageID,  int maxIndices,  int moduleCount)  {   fprintf(theFile,"{");   ConstructModuleToCode(theEnv,theFile,theModule,imageID,maxIndices,                                  DefglobalData(theEnv)->DefglobalModuleIndex,ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem));   fprintf(theFile,"}");  }
开发者ID:DrItanium,项目名称:durandal,代码行数:16,


示例21: DefglobalCConstructReference

void DefglobalCConstructReference(  Environment *theEnv,  FILE *theFile,  Defglobal *theGlobal,  unsigned int imageID,  unsigned int maxIndices)  {   if (theGlobal == NULL)     { fprintf(theFile,"NULL"); }   else     {      fprintf(theFile,"&%s%u_%lu[%lu]",ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem),                      imageID,                      (theGlobal->header.bsaveID / maxIndices) + 1,                      theGlobal->header.bsaveID % maxIndices);     }  }
开发者ID:DrItanium,项目名称:maya,代码行数:19,


示例22: DefglobalModuleToCode

static void DefglobalModuleToCode(  Environment *theEnv,  FILE *theFile,  Defmodule *theModule,  unsigned int imageID,  unsigned int maxIndices,  unsigned int moduleCount)  {#if MAC_XCD#pragma unused(moduleCount)#endif   fprintf(theFile,"{");   ConstructModuleToCode(theEnv,theFile,theModule,imageID,maxIndices,                                  DefglobalData(theEnv)->DefglobalModuleIndex,ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem));   fprintf(theFile,"}");  }
开发者ID:DrItanium,项目名称:maya,代码行数:19,


示例23: DefglobalModuleToCode

static void DefglobalModuleToCode(    void *theEnv,    FILE *theFile,    struct defmodule *theModule,    int imageID,    int maxIndices,    int moduleCount){#if MAC_MCW || WIN_MCW || MAC_XCD#pragma unused(moduleCount)#endif    fprintf(theFile,"{");    ConstructModuleToCode(theEnv,theFile,theModule,imageID,maxIndices,                          DefglobalData(theEnv)->DefglobalModuleIndex,ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem));    fprintf(theFile,"}");}
开发者ID:rdegraci,项目名称:CLIPS,代码行数:19,


示例24: UpdateDefglobalScope

void UpdateDefglobalScope(  Environment *theEnv)  {   Defglobal *theDefglobal;   unsigned int moduleCount;   Defmodule *theModule;   struct defmoduleItemHeader *theItem;   /*============================*/   /* Loop through every module. */   /*============================*/   for (theModule = GetNextDefmodule(theEnv,NULL);        theModule != NULL;        theModule = GetNextDefmodule(theEnv,theModule))     {      /*============================================================*/      /* Loop through every defglobal in the module being examined. */      /*============================================================*/      theItem = (struct defmoduleItemHeader *)                GetModuleItem(theEnv,theModule,DefglobalData(theEnv)->DefglobalModuleIndex);      for (theDefglobal = (Defglobal *) theItem->firstItem;           theDefglobal != NULL ;           theDefglobal = GetNextDefglobal(theEnv,theDefglobal))        {         /*====================================================*/         /* If the defglobal is visible to the current module, */         /* then mark it as being in scope, otherwise mark it  */         /* as being out of scope.                             */         /*====================================================*/         if (FindImportedConstruct(theEnv,"defglobal",theModule,                                   theDefglobal->header.name->contents,                                   &moduleCount,true,NULL) != NULL)           { theDefglobal->inScope = true; }         else           { theDefglobal->inScope = false; }        }     }  }
开发者ID:DrItanium,项目名称:maya,代码行数:42,


示例25: DefglobalCConstructReference

globle void DefglobalCConstructReference(  void *theEnv,  FILE *theFile,  void *vTheGlobal,  int imageID,  int maxIndices)  {   struct defglobal *theGlobal = (struct defglobal *) vTheGlobal;   if (theGlobal == NULL)     { fprintf(theFile,"NULL"); }   else     {      fprintf(theFile,"&%s%d_%ld[%ld]",ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem),                      imageID,                      (theGlobal->header.bsaveID / maxIndices) + 1,                      theGlobal->header.bsaveID % maxIndices);     }  }
开发者ID:DrItanium,项目名称:durandal,代码行数:20,


示例26: InitializeDefglobalModules

static void InitializeDefglobalModules(  void *theEnv)  {   DefglobalData(theEnv)->DefglobalModuleIndex = RegisterModuleItem(theEnv,"defglobal",                                    AllocateModule,                                    ReturnModule,#if BLOAD_AND_BSAVE || BLOAD || BLOAD_ONLY                                    BloadDefglobalModuleReference,#else                                    NULL,#endif#if CONSTRUCT_COMPILER && (! RUN_TIME)                                    DefglobalCModuleReference,#else                                    NULL,#endif                                    EnvFindDefglobal);#if (! BLOAD_ONLY) && (! RUN_TIME) && DEFMODULE_CONSTRUCT   AddPortConstructItem(theEnv,"defglobal",SYMBOL);#endif  }
开发者ID:femto,项目名称:rbclips,代码行数:22,


示例27: InitializeDefglobals

globle void InitializeDefglobals(  void *theEnv)  {     struct entityRecord globalInfo = { "GBL_VARIABLE", GBL_VARIABLE,0,0,0,                                                       NULL,                                                       NULL,                                                       NULL,                                                       GetDefglobalValue2,                                                       NULL,NULL,                                                       NULL,NULL,NULL };   struct entityRecord defglobalPtrRecord = { "DEFGLOBAL_PTR", DEFGLOBAL_PTR,0,0,0,                                                       NULL,NULL,NULL,                                                       QGetDefglobalValue,                                                       NULL,                                                       DecrementDefglobalBusyCount,                                                       IncrementDefglobalBusyCount,                                                       NULL,NULL,NULL,NULL };      AllocateEnvironmentData(theEnv,DEFGLOBAL_DATA,sizeof(struct defglobalData),DeallocateDefglobalData);      memcpy(&DefglobalData(theEnv)->GlobalInfo,&globalInfo,sizeof(struct entityRecord));      memcpy(&DefglobalData(theEnv)->DefglobalPtrRecord,&defglobalPtrRecord,sizeof(struct entityRecord));      DefglobalData(theEnv)->ResetGlobals = TRUE;   DefglobalData(theEnv)->LastModuleIndex = -1;      InstallPrimitive(theEnv,&DefglobalData(theEnv)->GlobalInfo,GBL_VARIABLE);   InstallPrimitive(theEnv,&DefglobalData(theEnv)->DefglobalPtrRecord,DEFGLOBAL_PTR);   InitializeDefglobalModules(theEnv);   DefglobalBasicCommands(theEnv);   DefglobalCommandDefinitions(theEnv);   DefglobalData(theEnv)->DefglobalConstruct =      AddConstruct(theEnv,"defglobal","defglobals",ParseDefglobal,EnvFindDefglobal,                   GetConstructNamePointer,GetConstructPPForm,                   GetConstructModuleItem,EnvGetNextDefglobal,SetNextConstruct,                   EnvIsDefglobalDeletable,EnvUndefglobal,ReturnDefglobal);  }
开发者ID:femto,项目名称:rbclips,代码行数:41,


示例28: ConstructToCode

static int ConstructToCode(    void *theEnv,    char *fileName,    char *pathName,    char *fileNameBuffer,    int fileID,    FILE *headerFP,    int imageID,    int maxIndices){    int fileCount = 1;    struct defmodule *theModule;    struct defglobal *theDefglobal;    int moduleCount = 0, moduleArrayCount = 0, moduleArrayVersion = 1;    int defglobalArrayCount = 0, defglobalArrayVersion = 1;    FILE *moduleFile = NULL, *defglobalFile = NULL;    /*================================================*/    /* Include the appropriate defglobal header file. */    /*================================================*/    fprintf(headerFP,"#include /"globldef.h/"/n");    /*===================================================================*/    /* Loop through all the modules and all the defglobals writing their */    /*  C code representation to the file as they are traversed.         */    /*===================================================================*/    for (theModule = (struct defmodule *) EnvGetNextDefmodule(theEnv,NULL);            theModule != NULL;            theModule = (struct defmodule *) EnvGetNextDefmodule(theEnv,theModule))    {        EnvSetCurrentModule(theEnv,(void *) theModule);        moduleFile = OpenFileIfNeeded(theEnv,moduleFile,fileName,pathName,fileNameBuffer,fileID,imageID,&fileCount,                                      moduleArrayVersion,headerFP,                                      "struct defglobalModule",ModulePrefix(DefglobalData(theEnv)->DefglobalCodeItem),                                      FALSE,NULL);        if (moduleFile == NULL)        {            CloseDefglobalFiles(theEnv,moduleFile,defglobalFile,maxIndices);            return(0);        }        DefglobalModuleToCode(theEnv,moduleFile,theModule,imageID,maxIndices,moduleCount);        moduleFile = CloseFileIfNeeded(theEnv,moduleFile,&moduleArrayCount,&moduleArrayVersion,                                       maxIndices,NULL,NULL);        for (theDefglobal = (struct defglobal *) EnvGetNextDefglobal(theEnv,NULL);                theDefglobal != NULL;                theDefglobal = (struct defglobal *) EnvGetNextDefglobal(theEnv,theDefglobal))        {            defglobalFile = OpenFileIfNeeded(theEnv,defglobalFile,fileName,pathName,fileNameBuffer,fileID,imageID,&fileCount,                                             defglobalArrayVersion,headerFP,                                             "struct defglobal",ConstructPrefix(DefglobalData(theEnv)->DefglobalCodeItem),                                             FALSE,NULL);            if (defglobalFile == NULL)            {                CloseDefglobalFiles(theEnv,moduleFile,defglobalFile,maxIndices);                return(0);            }            DefglobalToCode(theEnv,defglobalFile,theDefglobal,imageID,maxIndices,moduleCount);            defglobalArrayCount++;            defglobalFile = CloseFileIfNeeded(theEnv,defglobalFile,&defglobalArrayCount,                                              &defglobalArrayVersion,maxIndices,NULL,NULL);        }        moduleCount++;        moduleArrayCount++;    }    CloseDefglobalFiles(theEnv,moduleFile,defglobalFile,maxIndices);    return(1);}
开发者ID:rdegraci,项目名称:CLIPS,代码行数:77,


示例29: BeforeDefglobalsToCode

static void BeforeDefglobalsToCode(    void *theEnv){    MarkConstructBsaveIDs(theEnv,DefglobalData(theEnv)->DefglobalModuleIndex);}
开发者ID:rdegraci,项目名称:CLIPS,代码行数:5,


示例30: EnvSetGlobalsChanged

globle void EnvSetGlobalsChanged(  void *theEnv,  int value)  {   DefglobalData(theEnv)->ChangeToGlobals = value;   }
开发者ID:femto,项目名称:rbclips,代码行数:6,



注:本文中的DefglobalData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ DefmoduleData函数代码示例
C++ DeffunctionData函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。