亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? objcmp.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號(hào):
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  06/05/06            */   /*                                                     */   /*                                                     */   /*******************************************************//*************************************************************//* Purpose: Object System Construct Compiler Code            *//*                                                           *//* Principal Programmer(s):                                  *//*      Brian L. Donnell                                     *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*      6.24: Renamed BOOLEAN macro type to intBool.         *//*                                                           *//*            Added environment parameter to GenClose.       *//*                                                           *//*************************************************************//* =========================================   *****************************************               EXTERNAL DEFINITIONS   =========================================   ***************************************** */#include "setup.h"#if OBJECT_SYSTEM && CONSTRUCT_COMPILER && (! RUN_TIME)#include "conscomp.h"#include "classcom.h"#include "classfun.h"#include "classini.h"#include "cstrncmp.h"#include "envrnmnt.h"#include "objrtfnx.h"#include "sysdep.h"#define _OBJCMP_SOURCE_#include "objcmp.h"/* =========================================   *****************************************                   CONSTANTS   =========================================   ***************************************** */#define MODULEI    0#define CLASSI     1#define LINKI      2#define SLOTI      3#define TSLOTI     4#define OSLOTI     5#define HANDLERI   6#define OHANDLERI  7#define SAVE_ITEMS 8/* =========================================   *****************************************               MACROS AND TYPES   =========================================   ***************************************** */#define ClassPrefix()          ConstructPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem)#define ClassLinkPrefix()      ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,2)#define SlotPrefix()           ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,3)#define TemplateSlotPrefix()   ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,4)#define OrderedSlotPrefix()    ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,5)#define HandlerPrefix()        ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,6)#define OrderedHandlerPrefix() ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,7)#define SlotNamePrefix()       ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,8)#define SlotNameHashPrefix()   ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,9)#define ClassHashPrefix()      ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,10)#define ClassIDPrefix()        ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,11)#define MaxClassIDPrefix()     ArbitraryPrefix(ObjectCompilerData(theEnv)->ObjectCodeItem,12)typedef struct  {   long classCount;   unsigned short currentPartition;   unsigned short slotCount;   int maxIndices;  } MARK_INFO;typedef union  {   struct     {      unsigned thePartition : 16;      unsigned theOffset    : 16;     } theLocation;   long theLong;  } PACKED_LOCATION_INFO;/* =========================================   *****************************************      INTERNALLY VISIBLE FUNCTION HEADERS   =========================================   ***************************************** */static void ReadyObjectsForCode(void *);static void MarkDefclassAndSlots(void *,struct constructHeader *,void *);static void PrintSlotNameReference(void *,FILE *,SLOT_NAME *,int,int);static void InitObjectsCode(void *,FILE *,int,int);static int ObjectsToCode(void *,char *,int,FILE *,int,int);static int ClassIDMapToCode(void *,char *,int,FILE *,int,int,int *);static int ClassHashTableToCode(void *,char *,int,FILE *,int,int,int *);static int SlotNameHashTableToCode(void *,char *,int,FILE *,int,int,int *);static int SlotNameEntriesToCode(void *,char *,int,FILE *,int,int,int *);static void CloseObjectFiles(void *,FILE *[SAVE_ITEMS],int [SAVE_ITEMS],                             struct CodeGeneratorFile [SAVE_ITEMS],int);static void DefclassModuleToCode(void *,FILE *,struct defmodule *,int,int);static void SingleDefclassToCode(void *,FILE *,int,int,DEFCLASS *,int,                                 int,int,int,int,int,int,                                 int,int,int,int,int,int);static intBool InheritanceLinksToCode(void *,FILE **,char *,int,int,FILE *,                                      int *,int,DEFCLASS *,int *,                                      int *,int *,struct CodeGeneratorFile *);static intBool SlotsToCode(void *,FILE **,char *,int,int,FILE *,                           int *,int,DEFCLASS *,int *,                           int *,int *,struct CodeGeneratorFile *);static intBool TemplateSlotsToCode(void *,FILE **,char *,int,int,FILE *,                                   int *,int,DEFCLASS *,int *,                                   int *,int *,struct CodeGeneratorFile *);static intBool OrderedSlotsToCode(void *,FILE **,char *,int,int,FILE *,                                  int *,int,DEFCLASS *,int *,                                  int *,int *,struct CodeGeneratorFile *);static intBool HandlersToCode(void *,FILE **,char *,int,int,FILE *,                              int *,int,DEFCLASS *,int *,                              int *,int *,struct CodeGeneratorFile *);static intBool OrderedHandlersToCode(void *,FILE **,char *,int,int,FILE *,                                     int *,int,DEFCLASS *,int *,                                     int *,int *,struct CodeGeneratorFile *);/* =========================================   *****************************************          EXTERNALLY VISIBLE FUNCTIONS   =========================================   ***************************************** *//***************************************************  NAME         : SetupObjectsCompiler  DESCRIPTION  : Initializes the construct compiler                   item for defclasses & handlers  INPUTS       : None  RETURNS      : Nothing useful  SIDE EFFECTS : Code generator item initialized  NOTES        : None ***************************************************/globle void SetupObjectsCompiler(  void *theEnv)  {   AllocateEnvironmentData(theEnv,OBJECT_COMPILER_DATA,sizeof(struct objectCompilerData),NULL);   ObjectCompilerData(theEnv)->ObjectCodeItem = AddCodeGeneratorItem(theEnv,"objects",0,ReadyObjectsForCode,                                         InitObjectsCode,ObjectsToCode,13);  }/*********************************************************  NAME         : PrintClassReference  DESCRIPTION  : Writes out a reference to the class array  INPUTS       : 1) Output file pointer                 2) Class address                 3) Construct set image id                 4) The maximum number of indices allowed                    in an array  RETURNS      : Nothing useful  SIDE EFFECTS : Writes out class array reference to file  NOTES        : None *********************************************************/globle void PrintClassReference(  void *theEnv,  FILE *fp,  DEFCLASS *cls,  int imageID,  int maxIndices)  {   if (cls == NULL)     fprintf(fp,"NULL");   else     fprintf(fp,"&%s%d_%d[%d]",                 ClassPrefix(),                 imageID,                 (int) ((cls->header.bsaveID / maxIndices) + 1),                 (int) (cls->header.bsaveID % maxIndices));  }/****************************************************  NAME         : DefclassCModuleReference  DESCRIPTION  : Prints out a reference to a                 defclass module  INPUTS       : 1) The output file                 2) The id of the module item                 3) The id of the image                 4) The maximum number of elements                    allowed in an array  RETURNS      : Nothing useful  SIDE EFFECTS : Defclass module reference printed  NOTES        : None ****************************************************/globle void DefclassCModuleReference(  void *theEnv,  FILE *theFile,  int count,  int imageID,  int maxIndices)  {   fprintf(theFile,"MIHS &%s%d_%d[%d]",                   ModulePrefix(ObjectCompilerData(theEnv)->ObjectCodeItem),                   imageID,                   (count / maxIndices) + 1,                   (count % maxIndices));  }/* =========================================   *****************************************          INTERNALLY VISIBLE FUNCTIONS   =========================================   ***************************************** *//*******************************************************  NAME         : ReadyObjectsForCode  DESCRIPTION  : Sets index of classes and slot name                   entries for use in compiled                   expressions  INPUTS       : None  RETURNS      : Nothing useful  SIDE EFFECTS : BsaveIndices set  NOTES        : None *******************************************************/static void ReadyObjectsForCode(  void *theEnv)  {   MARK_INFO markInfo;   register long i;   register int j;   SLOT_NAME *snp;   markInfo.classCount = 0L;   markInfo.currentPartition = 1;   markInfo.slotCount = 0;   /* =====================================      Gets the value of MaxIndices directly      from the global in CONSCOMP.C      ===================================== */   markInfo.maxIndices = ConstructCompilerData(theEnv)->MaxIndices;   DoForAllConstructs(theEnv,MarkDefclassAndSlots,DefclassData(theEnv)->DefclassModuleIndex,                      FALSE,(void *) &markInfo);   i = 0L;   for (j = 0 ; j < SLOT_NAME_TABLE_HASH_SIZE ; j++)     for (snp = DefclassData(theEnv)->SlotNameTable[j] ; snp != NULL ; snp = snp->nxt)       snp->bsaveIndex = i++;  }/************************************************************  NAME         : MarkDefclassAndSlots  DESCRIPTION  : Sets the bsave indices of the classes                 for use in printing references to                 them later.                 Also, the partitions and offsets are                 predetermined for every slot and                 packed into a single long (the slot                 bsave index) for use in printing                 references to them later  INPUTS       : 1) The defclass                 2) A buffer containing the info:                    a) Total number of classes counted so far                    b) The current partition # for slots                    c) The current offset in that partition                    d) The max # of elements in any array  RETURNS      : Nothing useful  SIDE EFFECTS : Bsave indices of classes and slots set  NOTES        : The template slots are written at the                 same time as the real slots - thus the                 references must be predetermined ************************************************************/#if IBM_TBC#pragma argsused#endifstatic void MarkDefclassAndSlots(  void *theEnv,  struct constructHeader *vTheDefclass,  void *vTheBuffer)  {   DEFCLASS *theDefclass = (DEFCLASS *) vTheDefclass;   MARK_INFO *markInfo = (MARK_INFO *) vTheBuffer;   long i;   PACKED_LOCATION_INFO theLocationInfo;#if MAC_MCW || IBM_MCW || MAC_XCD#pragma unused(theEnv)#endif   theDefclass->header.bsaveID = markInfo->classCount++;   for (i = 0 ; i < theDefclass->slotCount ; i++)     {      theLocationInfo.theLocation.thePartition = markInfo->currentPartition;      theLocationInfo.theLocation.theOffset = markInfo->slotCount;      theDefclass->slots[i].bsaveIndex = theLocationInfo.theLong;      markInfo->slotCount++;      if (markInfo->slotCount >= markInfo->maxIndices)        {         markInfo->currentPartition++;         markInfo->slotCount = 0;        }     }  }/*************************************************************  NAME         : PrintSlotNameReference  DESCRIPTION  : Writes out a reference to the slot name array  INPUTS       : 1) Output file pointer                 2) Slot name address                 3) Construct set image id                 4) The maximum number of indices allowed                    in an array  RETURNS      : Nothing useful  SIDE EFFECTS : Writes out slot name array reference to file  NOTES        : None *************************************************************/static void PrintSlotNameReference(  void *theEnv,  FILE *fp,  SLOT_NAME *snp,  int imageID,  int maxIndices)  {   if (snp == NULL)     fprintf(fp,"NULL");   else     fprintf(fp,"&%s%d_%d[%d]",                 SlotNamePrefix(),                 imageID,                 (int) ((snp->bsaveIndex / maxIndices) + 1),                 (int) (snp->bsaveIndex % maxIndices));  }/*******************************************************  NAME         : InitObjectsCode  DESCRIPTION  : Writes out initialization code for                   generic functions  INPUTS       : 1) The initialization code file pointer                 2) The construct set image id                 3) The max number of indices allowed in                    an array for this construct set  RETURNS      : Nothing useful  SIDE EFFECTS : Writes out initialization code  NOTES        : None *******************************************************/#if IBM_TBC#pragma argsused#endifstatic void InitObjectsCode(  void *theEnv,  FILE *initFP,  int imageID,  int maxIndices)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
秋霞影院一区二区| 欧美一区二区女人| 成人精品鲁一区一区二区| 精品一区二区三区蜜桃| 免费日韩伦理电影| 午夜视黄欧洲亚洲| 日韩一区精品字幕| 日本人妖一区二区| 美国毛片一区二区三区| 蜜桃视频在线观看一区| 久久国产麻豆精品| 久久精品久久精品| 国内精品视频一区二区三区八戒| 九九九精品视频| 国产精品一区二区黑丝 | 91麻豆国产福利在线观看| bt7086福利一区国产| 色域天天综合网| 欧美性猛片xxxx免费看久爱| 在线电影国产精品| 精品国产免费一区二区三区香蕉| 日韩一二三四区| 2023国产精品| 国产精品精品国产色婷婷| 一区二区在线观看免费| 视频一区在线视频| 精品亚洲成a人| 成人小视频在线| 日本大香伊一区二区三区| 欧美日韩久久一区| 日韩一级大片在线| 欧美精彩视频一区二区三区| 亚洲欧美一区二区视频| 亚洲国产成人va在线观看天堂| 日韩成人精品在线| 国产成人在线视频播放| 在线这里只有精品| 精品国产一区二区精华| 自拍偷拍欧美精品| 麻豆国产欧美日韩综合精品二区| 国产精品资源在线看| 91一区在线观看| 91精品国产色综合久久ai换脸| www国产亚洲精品久久麻豆| 亚洲特黄一级片| 久久99精品久久久| 91蜜桃视频在线| 日韩精品综合一本久道在线视频| 国产日韩欧美综合在线| 亚洲福利一区二区三区| 国产精品 欧美精品| 欧美午夜片在线看| 国产欧美一区二区精品仙草咪| 亚洲精品中文字幕乱码三区| 精品一区二区三区av| 91亚洲国产成人精品一区二三| 欧美精品第一页| 日韩一区在线看| 久久se精品一区二区| 99精品欧美一区二区三区综合在线| 日本一区二区视频在线| 午夜视频在线观看一区二区| 国产很黄免费观看久久| 欧美日韩一二三| 国产精品成人免费| 国产精品综合久久| 91精品国产色综合久久ai换脸 | 久久久影院官网| 午夜精品久久久久久不卡8050| 国产精品123| 日韩一二在线观看| 亚洲国产日韩综合久久精品| 波多野洁衣一区| 久久久久久久综合日本| 亚洲成人动漫av| 色欧美片视频在线观看| 中文字幕乱码亚洲精品一区| 乱中年女人伦av一区二区| 欧美视频一区二区三区| 综合久久久久综合| 成人亚洲一区二区一| 这里是久久伊人| 性欧美大战久久久久久久久| fc2成人免费人成在线观看播放| 欧美精品一区二区在线观看| 日本午夜精品视频在线观看| 在线免费av一区| 亚洲免费观看高清完整| jlzzjlzz欧美大全| 国产免费观看久久| 高潮精品一区videoshd| 欧美xxxxxxxxx| 伦理电影国产精品| 欧美成人video| 男女视频一区二区| 日韩一区二区在线观看视频| 天天影视涩香欲综合网| 欧美日韩成人一区二区| 亚洲第一主播视频| 欧美亚洲愉拍一区二区| 亚洲精品v日韩精品| 91国产丝袜在线播放| 亚洲精品成人悠悠色影视| 91色在线porny| 亚洲精品中文字幕在线观看| 色偷偷88欧美精品久久久| 亚洲欧美日韩电影| 欧美在线观看18| 亚洲午夜激情av| 欧美精品 日韩| 免费在线观看视频一区| 日韩欧美亚洲国产精品字幕久久久| 日本免费新一区视频| 日韩一区二区三区三四区视频在线观看| 亚洲精品视频一区二区| 欧美综合色免费| 亚洲成av人片| 日韩视频免费观看高清完整版在线观看 | 中文字幕一区二区三区视频| av电影在线观看完整版一区二区| 国产精品日韩成人| 91亚洲精品久久久蜜桃| 亚洲国产视频a| 日韩一区二区三区电影在线观看| 色婷婷国产精品久久包臀| 亚洲精品五月天| 欧美日韩免费在线视频| 日本不卡123| 国产女主播视频一区二区| 91在线码无精品| 日韩av不卡在线观看| 久久品道一品道久久精品| av亚洲精华国产精华| 亚洲第一二三四区| 精品国偷自产国产一区| 丁香桃色午夜亚洲一区二区三区| 中文字幕亚洲在| 91.xcao| 国产黄色91视频| 亚洲国产视频直播| 精品伦理精品一区| 91亚洲精品一区二区乱码| 日韩高清不卡一区| 国产精品久久久久三级| 欧美三级视频在线观看| 国产一区二区影院| 亚洲欧美经典视频| 26uuu国产电影一区二区| gogogo免费视频观看亚洲一| 日韩精品午夜视频| 亚洲欧洲av在线| 欧美成人video| 在线亚洲免费视频| 韩国中文字幕2020精品| 亚洲精品videosex极品| 久久综合色一综合色88| 欧美午夜精品一区二区蜜桃| 国产美女一区二区| 婷婷亚洲久悠悠色悠在线播放| 欧美精品一区二区蜜臀亚洲| 在线观看日韩av先锋影音电影院| 黑人巨大精品欧美一区| 亚洲自拍偷拍欧美| 中文在线资源观看网站视频免费不卡| 在线观看视频一区| 国产丶欧美丶日本不卡视频| 一区二区三区免费观看| 国产女同互慰高潮91漫画| 4438亚洲最大| 欧美在线观看你懂的| 丁香婷婷综合色啪| 久久99精品久久久久久| 亚洲成人av资源| 亚洲免费在线观看| 国产网站一区二区| 91精品久久久久久蜜臀| 色94色欧美sute亚洲线路一久 | 在线观看不卡视频| www..com久久爱| 国产乱对白刺激视频不卡| 日精品一区二区| 亚洲一级电影视频| 1区2区3区国产精品| 久久久不卡影院| 26uuu久久综合| 亚洲天堂中文字幕| 久久久久9999亚洲精品| 日韩欧美激情一区| 欧美放荡的少妇| 欧美日韩在线播| 在线观看欧美黄色| 91香蕉视频污在线| av午夜一区麻豆| 不卡av免费在线观看| 豆国产96在线|亚洲| 国产69精品一区二区亚洲孕妇| 久久精品国产秦先生| 美腿丝袜亚洲色图| 免费成人在线观看视频| 日韩国产精品91|