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

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

?? modulutl.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.20  01/31/02            */   /*                                                     */   /*              DEFMODULE UTILITY MODULE               */   /*******************************************************//*************************************************************//* Purpose: Provides routines for parsing module/construct   *//*   names and searching through modules for specific        *//*   constructs.                                             *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Brian L. Donnell                                     *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#define _MODULUTL_SOURCE_#include "setup.h"#include "memalloc.h"#include "router.h"#include "envrnmnt.h"#include "sysdep.h"#include "modulpsr.h"#include "modulutl.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/   static void                      *SearchImportedConstructModules(void *,struct symbolHashNode *,                                              struct defmodule *,                                              struct moduleItem *,struct symbolHashNode *,                                              int *,int,struct defmodule *);/********************************************************************//* FindModuleSeparator: Finds the :: separator which delineates the *//*   boundary between a module name and a construct name. The value *//*   zero is returned if the separator is not found, otherwise the  *//*   position of the second colon within the string is returned.    *//********************************************************************/globle unsigned FindModuleSeparator(  char *theString)  {   unsigned i, foundColon;   for (i = 0, foundColon = FALSE; theString[i] != EOS; i++)     {      if (theString[i] == ':')        {         if (foundColon) return(i);         foundColon = TRUE;        }      else        { foundColon = FALSE; }     }   return(FALSE);  }/*******************************************************************//* ExtractModuleName: Given the position of the :: separator and a *//*   module/construct name joined using the separator, returns a   *//*   symbol reference to the module name (or NULL if a module name *//*   cannot be extracted).                                         *//*******************************************************************/globle SYMBOL_HN *ExtractModuleName(  void *theEnv,  unsigned thePosition,  char *theString)  {   char *newString;   SYMBOL_HN *returnValue;   /*=============================================*/   /* Return NULL if the :: is in a position such */   /* that a module name can't be extracted.      */   /*=============================================*/   if (thePosition <= 1) return(NULL);   /*==========================================*/   /* Allocate storage for a temporary string. */   /*==========================================*/   newString = (char *) gm2(theEnv,thePosition);   /*======================================================*/   /* Copy the entire module/construct name to the string. */   /*======================================================*/   genstrncpy(newString,theString,           (STD_SIZE) thePosition - 1);   /*========================================================*/   /* Place an end of string marker where the :: is located. */   /*========================================================*/   newString[thePosition-1] = EOS;   /*=====================================================*/   /* Add the module name (the truncated module/construct */   /* name) to the symbol table.                          */   /*=====================================================*/   returnValue = (SYMBOL_HN *) EnvAddSymbol(theEnv,newString);   /*=============================================*/   /* Return the storage of the temporary string. */   /*=============================================*/   rm(theEnv,newString,thePosition);   /*=============================================*/   /* Return a pointer to the module name symbol. */   /*=============================================*/   return(returnValue);  }/********************************************************************//* ExtractConstructName: Given the position of the :: separator and *//*   a module/construct name joined using the separator, returns a  *//*   symbol reference to the construct name (or NULL if a construct *//*   name cannot be extracted).                                     *//********************************************************************/globle SYMBOL_HN *ExtractConstructName(  void *theEnv,  unsigned thePosition,  char *theString)  {   size_t theLength;   char *newString;   SYMBOL_HN *returnValue;   /*======================================*/   /* Just return the string if it doesn't */   /* contain the :: symbol.               */   /*======================================*/   if (thePosition == 0) return((SYMBOL_HN *) EnvAddSymbol(theEnv,theString));   /*=====================================*/   /* Determine the length of the string. */   /*=====================================*/   theLength = strlen(theString);   /*=================================================*/   /* Return NULL if the :: is at the very end of the */   /* string (and thus there is no construct name).   */   /*=================================================*/   if (theLength <= (thePosition + 1)) return(NULL);   /*====================================*/   /* Allocate a temporary string large  */   /* enough to hold the construct name. */   /*====================================*/   newString = (char *) gm2(theEnv,theLength - thePosition);   /*================================================*/   /* Copy the construct name portion of the         */   /* module/construct name to the temporary string. */   /*================================================*/   genstrncpy(newString,&theString[thePosition+1],           (STD_SIZE) theLength - thePosition);   /*=============================================*/   /* Add the construct name to the symbol table. */   /*=============================================*/   returnValue = (SYMBOL_HN *) EnvAddSymbol(theEnv,newString);   /*=============================================*/   /* Return the storage of the temporary string. */   /*=============================================*/   rm(theEnv,newString,theLength - thePosition);   /*================================================*/   /* Return a pointer to the construct name symbol. */   /*================================================*/   return(returnValue);  }/****************************************************//* ExtractModuleAndConstructName: Extracts both the *//*   module and construct name from a string. Sets  *//*   the current module to the specified module.    *//****************************************************/globle char *ExtractModuleAndConstructName(  void *theEnv,  char *theName)  {   unsigned separatorPosition;   SYMBOL_HN *moduleName, *shortName;   struct defmodule *theModule;   /*========================*/   /* Find the :: separator. */   /*========================*/   separatorPosition = FindModuleSeparator(theName);   if (! separatorPosition) return(theName);   /*==========================*/   /* Extract the module name. */   /*==========================*/   moduleName = ExtractModuleName(theEnv,separatorPosition,theName);   if (moduleName == NULL) return(NULL);   /*====================================*/   /* Check to see if the module exists. */   /*====================================*/   theModule = (struct defmodule *) EnvFindDefmodule(theEnv,ValueToString(moduleName));   if (theModule == NULL) return(NULL);   /*============================*/   /* Change the current module. */   /*============================*/   EnvSetCurrentModule(theEnv,(void *) theModule);   /*=============================*/   /* Extract the construct name. */   /*=============================*/   shortName = ExtractConstructName(theEnv,separatorPosition,theName);   if (shortName == NULL) return(NULL);   return(ValueToString(shortName));  }/************************************************************//* FindImportedConstruct: High level routine which searches *//*   a module and other modules from which it imports       *//*   constructs for a specified construct.                  *//************************************************************/globle void *FindImportedConstruct(  void *theEnv,  char *constructName,  struct defmodule *matchModule,  char *findName,  int *count,  int searchCurrent,  struct defmodule *notYetDefinedInModule)  {   void *rv;   struct moduleItem *theModuleItem;   /*=============================================*/   /* Set the number of references found to zero. */   /*=============================================*/   *count = 0;   /*===============================*/   /* The :: should not be included */   /* in the construct's name.      */   /*===============================*/   if (FindModuleSeparator(findName)) return(NULL);   /*=============================================*/   /* Remember the current module since we'll be  */   /* changing it during the search and will want */   /* to restore it once the search is completed. */   /*=============================================*/   SaveCurrentModule(theEnv);   /*==========================================*/   /* Find the module related access functions */   /* for the construct type being sought.     */   /*==========================================*/   if ((theModuleItem = FindModuleItem(theEnv,constructName)) == NULL)     {      RestoreCurrentModule(theEnv);      return(NULL);     }   /*===========================================*/   /* If the construct type doesn't have a find */   /* function, then we can't look for it.      */   /*===========================================*/   if (theModuleItem->findFunction == NULL)     {      RestoreCurrentModule(theEnv);      return(NULL);     }   /*==================================*/   /* Initialize the search by marking */   /* all modules as unvisited.        */   /*==================================*/   MarkModulesAsUnvisited(theEnv);   /*===========================*/   /* Search for the construct. */   /*===========================*/   rv = SearchImportedConstructModules(theEnv,(SYMBOL_HN *) EnvAddSymbol(theEnv,constructName),                                       matchModule,theModuleItem,                                       (SYMBOL_HN *) EnvAddSymbol(theEnv,findName),count,                                       searchCurrent,notYetDefinedInModule);   /*=============================*/   /* Restore the current module. */   /*=============================*/   RestoreCurrentModule(theEnv);   /*====================================*/   /* Return a pointer to the construct. */   /*====================================*/   return(rv);  }/*********************************************************//* AmbiguousReferenceErrorMessage: Error message printed *//*   when a reference to a specific construct can be     *//*   imported from more than one module.                 *//*********************************************************/globle void AmbiguousReferenceErrorMessage(  void *theEnv,  char *constructName,  char *findName)  {   EnvPrintRouter(theEnv,WERROR,"Ambiguous reference to ");   EnvPrintRouter(theEnv,WERROR,constructName);   EnvPrintRouter(theEnv,WERROR," ");   EnvPrintRouter(theEnv,WERROR,findName);   EnvPrintRouter(theEnv,WERROR,".\nIt is imported from more than one module.\n");  }/****************************************************//* MarkModulesAsUnvisited: Used for initializing a  *//*   search through the module heirarchies. Sets    *//*   the visited flag of each module to FALSE.      *//****************************************************/globle void MarkModulesAsUnvisited(  void *theEnv)  {   struct defmodule *theModule;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产拍欧美日韩视频二区| 欧美日韩一卡二卡| 日本伊人色综合网| 亚洲欧美精品午睡沙发| 国产精品美女久久久久久 | 视频一区国产视频| 高清不卡在线观看| 欧美电影免费观看高清完整版在线观看| 亚洲成人激情av| 亚洲观看高清完整版在线观看| 亚洲欧美aⅴ...| 亚洲另类在线一区| 91精品国产综合久久精品性色| 亚洲欧美一区二区久久 | 日韩欧美成人一区二区| 国产麻豆欧美日韩一区| 欧美亚洲国产一区二区三区| 久久亚洲欧美国产精品乐播| 偷拍亚洲欧洲综合| 欧美亚洲图片小说| 亚洲欧美电影一区二区| 国产精品狼人久久影院观看方式| 欧美成人精品3d动漫h| 日韩精品一区二区三区视频 | 久久99国产精品麻豆| 国产福利一区二区三区| 白白色 亚洲乱淫| 91黄视频在线观看| 日韩一区二区三区电影 | 亚洲一区在线观看视频| 亚洲成a人v欧美综合天堂下载| 男女性色大片免费观看一区二区| 精品一区二区免费在线观看| av一区二区三区四区| 在线播放亚洲一区| 国产精品国产三级国产aⅴ入口 | 91激情在线视频| 日韩一区二区精品| 17c精品麻豆一区二区免费| 午夜精品福利在线| 成人性视频免费网站| 666欧美在线视频| 国产精品国模大尺度视频| 日本一区中文字幕| 99视频有精品| 精品理论电影在线观看| 亚洲精品精品亚洲| 福利一区二区在线| 91精品国产日韩91久久久久久| 国产精品不卡在线| 麻豆国产欧美日韩综合精品二区| 91香蕉视频黄| 中文字幕高清一区| 老司机精品视频导航| 欧美日韩一区 二区 三区 久久精品| 久久精品视频网| 另类专区欧美蜜桃臀第一页| 欧美日韩久久一区二区| 国产亚洲人成网站| 毛片一区二区三区| 欧美日韩www| 亚洲综合图片区| 色综合一区二区| 国产精品女主播在线观看| 国产一区二区三区在线观看免费 | 欧美高清一级片在线观看| 久久成人av少妇免费| 欧美日韩不卡在线| 亚洲第一狼人社区| 欧美日韩色一区| 五月婷婷久久丁香| 3d动漫精品啪啪一区二区竹菊 | 日韩电影在线免费| 在线观看日韩毛片| 又紧又大又爽精品一区二区| av毛片久久久久**hd| 国产女主播一区| 成人免费视频视频| 亚洲欧美视频在线观看| 色噜噜夜夜夜综合网| 亚洲宅男天堂在线观看无病毒| 色综合天天综合网天天看片 | 91视频xxxx| 日韩码欧中文字| 日本久久电影网| 亚洲高清免费观看| 日韩视频免费观看高清完整版| 美女视频一区二区三区| 久久嫩草精品久久久精品| 成人综合婷婷国产精品久久免费| 久久亚洲私人国产精品va媚药| 国内精品在线播放| 国产日产欧美精品一区二区三区| 成人三级在线视频| 亚洲美女一区二区三区| 在线观看91精品国产麻豆| 老汉av免费一区二区三区| 久久久久国产精品麻豆ai换脸| 高清beeg欧美| 亚洲自拍与偷拍| 日韩欧美在线一区二区三区| 国产精品一二三在| 一区二区久久久久| 欧美电影免费观看高清完整版 | 亚洲欧美偷拍三级| 欧美日韩国产小视频| 国产美女视频一区| 亚洲激情图片qvod| 精品精品国产高清a毛片牛牛| 国产mv日韩mv欧美| 丝袜诱惑制服诱惑色一区在线观看| 日韩一级二级三级| 91在线视频播放地址| 免费久久精品视频| 中文字幕欧美一| 2024国产精品| 91麻豆精品国产| 一本到高清视频免费精品| 蜜桃av一区二区在线观看| 国产精品成人免费精品自在线观看| 欧美精品v国产精品v日韩精品| www.日韩大片| 久久99精品一区二区三区| 亚洲日本一区二区| 26uuu国产日韩综合| 欧美精品亚洲二区| 日本韩国欧美一区二区三区| 激情综合网激情| 亚洲午夜一区二区| 国产精品久久久久久户外露出| 精品欧美一区二区久久| 在线播放日韩导航| www.日韩av| 成人黄色在线看| 国产精品一区二区免费不卡| 美女诱惑一区二区| 亚洲国产精品久久久久婷婷884 | 欧美一级久久久| 一本久久a久久精品亚洲| 风间由美性色一区二区三区| 久久电影国产免费久久电影| 日韩av一区二区三区四区| 亚洲一区二区视频在线观看| 国产精品欧美一区喷水| 久久久久久麻豆| 欧美va亚洲va国产综合| 91麻豆精品国产自产在线 | 成人爱爱电影网址| 国产毛片精品视频| 国产精品99久久久久| 国产精品99久久久| 成人中文字幕合集| 国产成+人+日韩+欧美+亚洲| 东方欧美亚洲色图在线| 国产99精品视频| 91亚洲精品久久久蜜桃网站| 91捆绑美女网站| 91丨porny丨首页| 91福利资源站| 在线视频综合导航| 欧美肥妇free| 久久久国产午夜精品| 国产精品欧美一区二区三区| 亚洲男女毛片无遮挡| 亚洲自拍偷拍网站| 日本成人在线电影网| 国产在线视视频有精品| 成人一区在线看| 欧美亚洲国产一区二区三区va | 国产乱码字幕精品高清av | 国产喂奶挤奶一区二区三区| 日本一区二区三区四区在线视频| 国产精品三级av在线播放| 亚洲女女做受ⅹxx高潮| 午夜久久久久久电影| 精品无码三级在线观看视频| 国产福利视频一区二区三区| 91亚洲国产成人精品一区二三| 欧美乱熟臀69xxxxxx| 久久亚洲欧美国产精品乐播 | 久久综合色鬼综合色| 亚洲免费观看高清完整| 另类小说综合欧美亚洲| 91在线看国产| 久久夜色精品国产噜噜av| 国产精品成人一区二区艾草| 五月婷婷久久综合| 成人精品免费网站| 欧美亚洲国产怡红院影院| 日韩精品资源二区在线| 亚洲色图视频免费播放| 精品亚洲aⅴ乱码一区二区三区| 成人免费毛片app| 6080yy午夜一二三区久久| 国产精品的网站| 国产精品自拍在线| 欧美精品自拍偷拍动漫精品| 成人欧美一区二区三区视频网页| 免费久久精品视频| 在线观看免费亚洲|