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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? modulbin.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.21  06/15/03            */   /*                                                     */   /*             DEFMODULE BSAVE/BLOAD MODULE            */   /*******************************************************//*************************************************************//* Purpose: Implements the binary save/load feature for the  *//*    defmodule construct.                                   *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Brian L. Donnell                                     *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#define _MODULBIN_SOURCE_#include "setup.h"#if (BLOAD || BLOAD_ONLY || BLOAD_AND_BSAVE) && (! RUN_TIME)#include <stdio.h>#define _STDIO_INCLUDED_#include "memalloc.h"#include "constrct.h"#include "moduldef.h"#include "bload.h"#include "bsave.h"#include "envrnmnt.h"#include "modulbin.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/#if BLOAD_AND_BSAVE   static void                    BsaveFind(void *);   static void                    BsaveStorage(void *,FILE *);   static void                    BsaveBinaryItem(void *,FILE *);#endif   static void                    BloadStorage(void *);   static void                    BloadBinaryItem(void *);   static void                    UpdateDefmodule(void *,void *,long);   static void                    UpdatePortItem(void *,void *,long);   static void                    ClearBload(void *);/*********************************************//* DefmoduleBinarySetup: Installs the binary *//*   save/load feature for defmodules.       *//*********************************************/globle void DefmoduleBinarySetup(  void *theEnv)  {   AddBeforeBloadFunction(theEnv,"defmodule",RemoveAllDefmodules,2000);#if BLOAD_AND_BSAVE   AddBinaryItem(theEnv,"defmodule",0,BsaveFind,NULL,                             BsaveStorage,BsaveBinaryItem,                             BloadStorage,BloadBinaryItem,                             ClearBload);#endif   AddAbortBloadFunction(theEnv,"defmodule",CreateMainModule,0);#if (BLOAD || BLOAD_ONLY)   AddBinaryItem(theEnv,"defmodule",0,NULL,NULL,NULL,NULL,                             BloadStorage,BloadBinaryItem,                             ClearBload);#endif  }/**************************************************************//* UpdateDefmoduleItemHeader: Updates the values in defmodule *//*   item headers for the loaded binary image.                *//**************************************************************/globle void UpdateDefmoduleItemHeader(  void *theEnv,  struct bsaveDefmoduleItemHeader *theBsaveHeader,  struct defmoduleItemHeader *theHeader,  int itemSize,  void *itemArray)  {   long firstOffset,lastOffset;   theHeader->theModule = ModulePointer(theBsaveHeader->theModule);   if (theBsaveHeader->firstItem == -1L)     {      theHeader->firstItem = NULL;      theHeader->lastItem = NULL;     }   else     {      firstOffset = itemSize * theBsaveHeader->firstItem;      lastOffset = itemSize * theBsaveHeader->lastItem;      theHeader->firstItem =        (struct constructHeader *) &((char *) itemArray)[firstOffset];      theHeader->lastItem =        (struct constructHeader *) &((char *) itemArray)[lastOffset];     }  }#if BLOAD_AND_BSAVE/*********************************************************//* AssignBsaveDefmdlItemHdrVals: Assigns the appropriate *//*   values to a bsave defmodule item header record.     *//*********************************************************/globle void AssignBsaveDefmdlItemHdrVals(  struct bsaveDefmoduleItemHeader *theBsaveHeader,  struct defmoduleItemHeader *theHeader)  {   theBsaveHeader->theModule = theHeader->theModule->bsaveID;   if (theHeader->firstItem == NULL)     {      theBsaveHeader->firstItem = -1L;      theBsaveHeader->lastItem = -1L;     }   else     {      theBsaveHeader->firstItem = theHeader->firstItem->bsaveID;      theBsaveHeader->lastItem = theHeader->lastItem->bsaveID;     }  }/**********************************************************//* BsaveFind: Counts the number of data structures which  *//*   must be saved in the binary image for the defmodules *//*   in the current environment.                          *//**********************************************************/static void BsaveFind(  void *theEnv)  {   struct defmodule *defmodulePtr;   struct portItem *theList;   /*=======================================================*/   /* If a binary image is already loaded, then temporarily */   /* save the count values since these will be overwritten */   /* in the process of saving the binary image.            */   /*=======================================================*/   SaveBloadCount(theEnv,DefmoduleData(theEnv)->BNumberOfDefmodules);   SaveBloadCount(theEnv,DefmoduleData(theEnv)->NumberOfPortItems);   /*==========================================*/   /* Set the count of defmodule and defmodule */   /* port items data structures to zero.      */   /*==========================================*/   DefmoduleData(theEnv)->BNumberOfDefmodules = 0;   DefmoduleData(theEnv)->NumberOfPortItems = 0;   /*===========================*/   /* Loop through each module. */   /*===========================*/   for (defmodulePtr = (struct defmodule *) EnvGetNextDefmodule(theEnv,NULL);        defmodulePtr != NULL;        defmodulePtr = (struct defmodule *) EnvGetNextDefmodule(theEnv,defmodulePtr))     {      /*==============================================*/      /* Increment the number of modules encountered. */      /*==============================================*/      DefmoduleData(theEnv)->BNumberOfDefmodules++;      /*===========================*/      /* Mark the defmodule's name */      /* as being a needed symbol. */      /*===========================*/      defmodulePtr->name->neededSymbol = TRUE;      /*==============================================*/      /* Loop through each of the port items in the   */      /* defmodule's import list incrementing the     */      /* number of port items encountered and marking */      /* needed symbols.                              */      /*==============================================*/      for (theList = defmodulePtr->importList;           theList != NULL;           theList = theList->next)        {         DefmoduleData(theEnv)->NumberOfPortItems++;         if (theList->moduleName != NULL)           { theList->moduleName->neededSymbol = TRUE; }         if (theList->constructType != NULL)           { theList->constructType->neededSymbol = TRUE; }         if (theList->constructName != NULL)           { theList->constructName->neededSymbol = TRUE; }        }      /*==============================================*/      /* Loop through each of the port items in the   */      /* defmodule's export list incrementing the     */      /* number of port items encountered and marking */      /* needed symbols.                              */      /*==============================================*/      for (theList = defmodulePtr->exportList;           theList != NULL;           theList = theList->next)        {         DefmoduleData(theEnv)->NumberOfPortItems++;         if (theList->moduleName != NULL)           { theList->moduleName->neededSymbol = TRUE; }         if (theList->constructType != NULL)           { theList->constructType->neededSymbol = TRUE; }         if (theList->constructName != NULL)           { theList->constructName->neededSymbol = TRUE; }        }     }  }/*********************************************************//* BsaveStorage: Writes out the storage requirements for *//*    all defmodule structures to the binary file.       *//*********************************************************/static void BsaveStorage(  void *theEnv,  FILE *fp)  {   size_t space;   space = sizeof(long) * 2;   GenWrite(&space,sizeof(size_t),fp);   GenWrite(&DefmoduleData(theEnv)->BNumberOfDefmodules,sizeof(long int),fp);   GenWrite(&DefmoduleData(theEnv)->NumberOfPortItems,sizeof(long int),fp);  }/*********************************************//* BsaveBinaryItem: Writes out all defmodule *//*   structures to the binary file.          *//*********************************************/static void BsaveBinaryItem(  void *theEnv,  FILE *fp)  {   size_t space;   struct defmodule *defmodulePtr;   struct bsaveDefmodule newDefmodule;   struct bsavePortItem newPortItem;   struct portItem *theList;   /*=========================================================*/   /* Write out the amount of space taken up by the defmodule */   /* and port item data structures in the binary image.      */   /*=========================================================*/   space = DefmoduleData(theEnv)->BNumberOfDefmodules * sizeof(struct bsaveDefmodule);   space += DefmoduleData(theEnv)->NumberOfPortItems * sizeof(struct bsavePortItem);   GenWrite(&space,sizeof(size_t),fp);   /*==========================================*/   /* Write out each defmodule data structure. */   /*==========================================*/   DefmoduleData(theEnv)->BNumberOfDefmodules = 0;   DefmoduleData(theEnv)->NumberOfPortItems = 0;   for (defmodulePtr = (struct defmodule *) EnvGetNextDefmodule(theEnv,NULL);        defmodulePtr != NULL;        defmodulePtr = (struct defmodule *) EnvGetNextDefmodule(theEnv,defmodulePtr))     {      newDefmodule.name = defmodulePtr->name->bucket;      DefmoduleData(theEnv)->BNumberOfDefmodules++;      if (defmodulePtr->next != NULL)        { newDefmodule.next = DefmoduleData(theEnv)->BNumberOfDefmodules; }      else        { newDefmodule.next = -1L; }      if (defmodulePtr->importList == NULL)        { newDefmodule.importList = -1L; }      else        {         newDefmodule.importList = DefmoduleData(theEnv)->NumberOfPortItems;         for (theList = defmodulePtr->importList;              theList != NULL;              theList = theList->next)           { DefmoduleData(theEnv)->NumberOfPortItems++; }        }      if (defmodulePtr->exportList == NULL)        { newDefmodule.exportList = -1L; }      else        {         newDefmodule.exportList = DefmoduleData(theEnv)->NumberOfPortItems;         for (theList = defmodulePtr->exportList;              theList != NULL;              theList = theList->next)           { DefmoduleData(theEnv)->NumberOfPortItems++; }        }      newDefmodule.bsaveID = defmodulePtr->bsaveID;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲一区二区在线观看| 国产精品理伦片| 亚洲色图视频网站| 成人性生交大片免费| 久久奇米777| 午夜精品视频一区| 在线亚洲欧美专区二区| 亚洲人成网站色在线观看 | 精品国产一区二区三区四区四| 视频在线观看一区二区三区| 欧美私模裸体表演在线观看| 国产精品无圣光一区二区| 国产成人亚洲综合色影视| 国产亚洲婷婷免费| 91偷拍与自偷拍精品| 亚洲精品视频一区| 在线观看日韩高清av| 一片黄亚洲嫩模| 678五月天丁香亚洲综合网| 美女视频黄 久久| 亚洲精品一区二区三区影院 | 久久久久国产精品人| 国产一区 二区 三区一级| 欧美精品一区二区三区高清aⅴ | 欧美日本国产视频| 裸体一区二区三区| 26uuu色噜噜精品一区二区| 韩国成人在线视频| 中文成人av在线| 欧美三区在线观看| 日本亚洲三级在线| 久久综合九色综合97婷婷女人| 国产成人精品影视| 亚洲精品中文在线影院| 精品国产一区二区亚洲人成毛片| 国产suv一区二区三区88区| 国产精品黄色在线观看| 欧美在线观看一区| 另类小说一区二区三区| 国产精品久久久久9999吃药| 在线免费观看视频一区| 久久91精品国产91久久小草 | 久久综合丝袜日本网| 国产精品一区二区你懂的| 亚洲第一精品在线| 久久青草国产手机看片福利盒子| 9l国产精品久久久久麻豆| 午夜av电影一区| 欧美日韩一级片网站| 粉嫩嫩av羞羞动漫久久久| 亚洲亚洲精品在线观看| 国产亚洲短视频| 欧美老肥妇做.爰bbww| 99久久伊人久久99| 麻豆精品视频在线| 亚洲三级在线播放| 精品少妇一区二区三区| 成人一区在线观看| 国产精品一区二区在线观看网站| 一区二区三区高清| 久久嫩草精品久久久精品| 欧美日韩免费一区二区三区| jiyouzz国产精品久久| 久久99热99| 一区二区高清视频在线观看| 精品久久久久久无| 欧美美女直播网站| 欧美在线观看你懂的| av中文一区二区三区| 久久黄色级2电影| 亚洲高清视频在线| 精品黑人一区二区三区久久| 欧美少妇一区二区| 国产黑丝在线一区二区三区| 日韩电影在线免费观看| 一区二区不卡在线视频 午夜欧美不卡在| 精品国内片67194| 欧美高清激情brazzers| 色婷婷精品久久二区二区蜜臂av| 日韩高清一区二区| 日本伊人色综合网| 日韩国产欧美视频| 亚洲1区2区3区视频| 亚洲人成网站影音先锋播放| 久久女同精品一区二区| 久久久久久黄色| 欧美成人猛片aaaaaaa| 欧美区视频在线观看| 99精品欧美一区二区三区综合在线| 国产成人自拍高清视频在线免费播放| 日本不卡1234视频| 秋霞成人午夜伦在线观看| 亚洲精品国产视频| 亚洲一区日韩精品中文字幕| 精品久久久久99| 日韩欧美一级二级三级| 884aa四虎影成人精品一区| 91视视频在线观看入口直接观看www | 亚洲成av人片在线| 亚洲欧洲精品成人久久奇米网| 中文字幕在线免费不卡| 国产欧美日韩精品在线| 亚洲精品一区二区三区99| 久久免费视频色| 国产精品久久久久精k8| 亚洲综合一区二区精品导航| 午夜不卡av在线| 国产精品1区2区| 91影视在线播放| 91精品国产综合久久精品性色 | 欧美妇女性影城| 精品国产乱码久久久久久蜜臀| 日本一区二区成人| 亚洲高清免费一级二级三级| 另类小说图片综合网| 成人网在线免费视频| 欧美少妇性性性| 久久美女艺术照精彩视频福利播放| 国产精品久久久久久久久搜平片| 亚洲一二三四区| 国产一区二区三区日韩| 色婷婷精品久久二区二区蜜臀av | 国产精品久久久久久久午夜片| 一区二区三区四区不卡在线| 久久国产精品99精品国产 | 色综合天天综合色综合av| 欧美一区二区视频观看视频 | 日韩欧美激情一区| 综合久久综合久久| 日韩电影免费在线| 91丨九色丨尤物| 久久久av毛片精品| 午夜激情久久久| www.日韩av| 精品国产乱码久久久久久图片| 一区二区三区在线不卡| 国产老肥熟一区二区三区| 欧美日韩国产在线观看| 中文字幕一区二区三区在线不卡| 久久精品久久精品| 欧美视频一区二区三区四区| 国产精品拍天天在线| 日韩vs国产vs欧美| 91黄色免费网站| 国产精品萝li| 国产一区二三区| 日韩亚洲欧美中文三级| 夜夜揉揉日日人人青青一国产精品| 国产精品资源在线看| 91精品国产全国免费观看| 亚洲成人在线观看视频| 91久色porny | 欧美日韩精品一区二区三区四区| 日本一区二区高清| 国产成人av电影在线观看| 日韩欧美在线网站| 丝袜美腿成人在线| 欧美三级视频在线| 自拍偷拍亚洲激情| av激情综合网| 欧美国产1区2区| 国产激情偷乱视频一区二区三区| 精品成人私密视频| 精品亚洲免费视频| 日韩女优毛片在线| 麻豆国产精品视频| 日韩一区二区视频在线观看| 日本欧美一区二区| 欧美一区二区三区性视频| 日韩vs国产vs欧美| 日韩一区二区三区观看| 蜜桃一区二区三区在线| 欧美日韩电影在线| 亚洲mv在线观看| 制服丝袜国产精品| 美女高潮久久久| 久久精品这里都是精品| 国产精品一区二区在线看| 欧美激情一区二区三区蜜桃视频| 国产91清纯白嫩初高中在线观看 | av影院午夜一区| 最新日韩av在线| 91麻豆免费观看| 香蕉久久夜色精品国产使用方法| 欧美精品丝袜中出| 日本午夜一本久久久综合| 日韩女同互慰一区二区| 国产精品一二三四| **欧美大码日韩| 欧美精品xxxxbbbb| 久久成人18免费观看| 欧美激情中文不卡| 在线欧美日韩精品| 免费在线看一区| 国产三级一区二区| 欧美在线免费视屏| 毛片一区二区三区| 国产精品美女久久久久久久网站| 91亚洲男人天堂| 男人操女人的视频在线观看欧美|