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

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

?? factcom.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
   /* Check for the correct number of arguments. */   /*============================================*/   if (EnvArgCountCheck(theEnv,"fact-index",EXACTLY,1) == -1) return(-1LL);   /*========================*/   /* Evaluate the argument. */   /*========================*/   EnvRtnUnknown(theEnv,1,&item);   /*======================================*/   /* The argument must be a fact address. */   /*======================================*/   if (GetType(item) != FACT_ADDRESS)     {      ExpectedTypeError1(theEnv,"fact-index",1,"fact-address");      return(-1L);     }   /*================================================*/   /* Return the fact index associated with the fact */   /* address. If the fact has been retracted, then  */   /* return -1 for the fact index.                  */   /*================================================*/   if (((struct fact *) GetValue(item))->garbage) return(-1LL);   return (EnvFactIndex(theEnv,GetValue(item)));  }#if DEBUGGING_FUNCTIONS/**************************************//* FactsCommand: H/L access routine   *//*   for the facts command.           *//**************************************/globle void FactsCommand(  void *theEnv)  {   int argumentCount;   long long start = UNSPECIFIED, end = UNSPECIFIED, max = UNSPECIFIED;   struct defmodule *theModule;   DATA_OBJECT theValue;   int argOffset;   /*=========================================================*/   /* Determine the number of arguments to the facts command. */   /*=========================================================*/   if ((argumentCount = EnvArgCountCheck(theEnv,"facts",NO_MORE_THAN,4)) == -1) return;   /*==================================*/   /* The default module for the facts */   /* command is the current module.   */   /*==================================*/   theModule = ((struct defmodule *) EnvGetCurrentModule(theEnv));   /*==========================================*/   /* If no arguments were specified, then use */   /* the default values to list the facts.    */   /*==========================================*/   if (argumentCount == 0)     {      EnvFacts(theEnv,WDISPLAY,theModule,start,end,max);      return;     }   /*========================================================*/   /* Since there are one or more arguments, see if a module */   /* or start index was specified as the first argument.    */   /*========================================================*/   EnvRtnUnknown(theEnv,1,&theValue);   /*===============================================*/   /* If the first argument is a symbol, then check */   /* to see that a valid module was specified.     */   /*===============================================*/   if (theValue.type == SYMBOL)     {      theModule = (struct defmodule *) EnvFindDefmodule(theEnv,ValueToString(theValue.value));      if ((theModule == NULL) && (strcmp(ValueToString(theValue.value),"*") != 0))        {         SetEvaluationError(theEnv,TRUE);         CantFindItemErrorMessage(theEnv,"defmodule",ValueToString(theValue.value));         return;        }      if ((start = GetFactsArgument(theEnv,2,argumentCount)) == INVALID) return;      argOffset = 1;     }   /*================================================*/   /* Otherwise if the first argument is an integer, */   /* check to see that a valid index was specified. */   /*================================================*/   else if (theValue.type == INTEGER)     {      start = DOToLong(theValue);      if (start < 0)        {         ExpectedTypeError1(theEnv,"facts",1,"symbol or positive number");         SetHaltExecution(theEnv,TRUE);         SetEvaluationError(theEnv,TRUE);         return;        }      argOffset = 0;     }   /*==========================================*/   /* Otherwise the first argument is invalid. */   /*==========================================*/   else     {      ExpectedTypeError1(theEnv,"facts",1,"symbol or positive number");      SetHaltExecution(theEnv,TRUE);      SetEvaluationError(theEnv,TRUE);      return;     }   /*==========================*/   /* Get the other arguments. */   /*==========================*/   if ((end = GetFactsArgument(theEnv,2 + argOffset,argumentCount)) == INVALID) return;   if ((max = GetFactsArgument(theEnv,3 + argOffset,argumentCount)) == INVALID) return;   /*=================*/   /* List the facts. */   /*=================*/   EnvFacts(theEnv,WDISPLAY,theModule,start,end,max);  }/*****************************************************//* EnvFacts: C access routine for the facts command. *//*****************************************************/globle void EnvFacts(  void *theEnv,  char *logicalName,  void *vTheModule,  long long start,  long long end,  long long max)  {   struct fact *factPtr;   long count = 0;   struct defmodule *oldModule, *theModule = (struct defmodule *) vTheModule;   int allModules = FALSE;   /*==========================*/   /* Save the current module. */   /*==========================*/   oldModule = ((struct defmodule *) EnvGetCurrentModule(theEnv));   /*=========================================================*/   /* Determine if facts from all modules are to be displayed */   /* or just facts from the current module.                  */   /*=========================================================*/   if (theModule == NULL) allModules = TRUE;   else EnvSetCurrentModule(theEnv,(void *) theModule);   /*=====================================*/   /* Get the first fact to be displayed. */   /*=====================================*/   if (allModules) factPtr = (struct fact *) EnvGetNextFact(theEnv,NULL);   else factPtr = (struct fact *) GetNextFactInScope(theEnv,NULL);   /*===============================*/   /* Display facts until there are */   /* no more facts to display.     */   /*===============================*/   while (factPtr != NULL)     {      /*==================================================*/      /* Abort the display of facts if the Halt Execution */      /* flag has been set (normally by user action).     */      /*==================================================*/      if (GetHaltExecution(theEnv) == TRUE)        {         EnvSetCurrentModule(theEnv,(void *) oldModule);         return;        }      /*===============================================*/      /* If the maximum fact index of facts to display */      /* has been reached, then stop displaying facts. */      /*===============================================*/      if ((factPtr->factIndex > end) && (end != UNSPECIFIED))        {         PrintTally(theEnv,logicalName,count,"fact","facts");         EnvSetCurrentModule(theEnv,(void *) oldModule);         return;        }      /*================================================*/      /* If the maximum number of facts to be displayed */      /* has been reached, then stop displaying facts.  */      /*================================================*/      if (max == 0)        {         PrintTally(theEnv,logicalName,count,"fact","facts");         EnvSetCurrentModule(theEnv,(void *) oldModule);         return;        }      /*======================================================*/      /* If the index of the fact is greater than the minimum */      /* starting fact index, then display the fact.          */      /*======================================================*/      if (factPtr->factIndex >= start)        {         PrintFactWithIdentifier(theEnv,logicalName,factPtr);         EnvPrintRouter(theEnv,logicalName,"\n");         count++;         if (max > 0) max--;        }      /*========================================*/      /* Proceed to the next fact to be listed. */      /*========================================*/      if (allModules) factPtr = (struct fact *) EnvGetNextFact(theEnv,factPtr);      else factPtr = (struct fact *) GetNextFactInScope(theEnv,factPtr);     }   /*===================================================*/   /* Print the total of the number of facts displayed. */   /*===================================================*/   PrintTally(theEnv,logicalName,count,"fact","facts");   /*=============================*/   /* Restore the current module. */   /*=============================*/   EnvSetCurrentModule(theEnv,(void *) oldModule);  }/****************************************************************//* GetFactsArgument: Returns an argument for the facts command. *//*  A return value of -1 indicates that no value was specified. *//*  A return value of -2 indicates that the value specified is  *//*  invalid.                                                    *//****************************************************************/static long long GetFactsArgument(  void *theEnv,  int whichOne,  int argumentCount)  {   long long factIndex;   DATA_OBJECT theValue;   if (whichOne > argumentCount) return(UNSPECIFIED);   if (EnvArgTypeCheck(theEnv,"facts",whichOne,INTEGER,&theValue) == FALSE) return(INVALID);   factIndex = DOToLong(theValue);   if (factIndex < 0)     {      ExpectedTypeError1(theEnv,"facts",whichOne,"positive number");      SetHaltExecution(theEnv,TRUE);      SetEvaluationError(theEnv,TRUE);      return(INVALID);     }   return(factIndex);  }#endif /* DEBUGGING_FUNCTIONS *//**********************************************//* AssertStringFunction: H/L access routine   *//*   for the assert-string function.          *//**********************************************/globle void AssertStringFunction(  void *theEnv,  DATA_OBJECT_PTR returnValue)  {   DATA_OBJECT argPtr;   struct fact *theFact;   /*===================================================*/   /* Set the default return value to the symbol FALSE. */   /*===================================================*/   SetpType(returnValue,SYMBOL);   SetpValue(returnValue,EnvFalseSymbol(theEnv));   /*=====================================================*/   /* Check for the correct number and type of arguments. */   /*=====================================================*/   if (EnvArgCountCheck(theEnv,"assert-string",EXACTLY,1) == -1) return;   if (EnvArgTypeCheck(theEnv,"assert-string",1,STRING,&argPtr) == FALSE)     { return; }   /*==========================================*/   /* Call the driver routine for converting a */   /* string to a fact and then assert it.     */   /*==========================================*/   theFact = (struct fact *) EnvAssertString(theEnv,DOToString(argPtr));   if (theFact != NULL)     {      SetpType(returnValue,FACT_ADDRESS);      SetpValue(returnValue,(void *) theFact);     }   return;  }/******************************************//* SaveFactsCommand: H/L access routine   *//*   for the save-facts command.          *//******************************************/globle int SaveFactsCommand(  void *theEnv)  {   char *fileName;   int numArgs, saveCode = LOCAL_SAVE;   char *argument;   DATA_OBJECT theValue;   struct expr *theList = NULL;   /*============================================*/   /* Check for the correct number of arguments. */   /*============================================*/   if ((numArgs = EnvArgCountCheck(theEnv,"save-facts",AT_LEAST,1)) == -1) return(FALSE);   /*=================================================*/   /* Get the file name to which facts will be saved. */   /*=================================================*/   if ((fileName = GetFileName(theEnv,"save-facts",1)) == NULL) return(FALSE);   /*=============================================================*/   /* If specified, the second argument to save-facts indicates   */   /* whether just facts local to the current module or all facts */   /* visible to the current module will be saved.                */   /*=============================================================*/   if (numArgs > 1)     {      if (EnvArgTypeCheck(theEnv,"save-facts",2,SYMBOL,&theValue) == FALSE) return(FALSE);      argument = DOToString(theValue);      if (strcmp(argument,"local") == 0)        { saveCode = LOCAL_SAVE; }      else if (strcmp(argument,"visible") == 0)        { saveCode = VISIBLE_SAVE; }      else        {         ExpectedTypeError1(theEnv,"save-facts",2,"symbol with value local or visible");         return(FALSE);        }     }   /*======================================================*/   /* Subsequent arguments indicate that only those facts  */   /* associated with the specified deftemplates should be */   /* saved to the file.                                   */   /*======================================================*/   if (numArgs > 2) theList = GetFirstArgument()->nextArg->nextArg;   /*====================================*/   /* Call the SaveFacts driver routine. */   /*====================================*/   if (EnvSaveFacts(theEnv,fileName,saveCode,theList) == FALSE)     { return(FALSE); }   return(TRUE);  }/******************************************//* LoadFactsCommand: H/L access routine   *//*   for the load-facts command.          *//******************************************/globle int LoadFactsCommand(  void *theEnv)  {   char *fileName;   /*============================================*/   /* Check for the correct number of arguments. */   /*============================================*/   if (EnvArgCountCheck(theEnv,"load-facts",EXACTLY,1) == -1) return(FALSE);   /*====================================================*/   /* Get the file name from which facts will be loaded. */   /*====================================================*/   if ((fileName = GetFileName(theEnv,"load-facts",1)) == NULL) return(FALSE);   /*====================================*/   /* Call the LoadFacts driver routine. */   /*====================================*/   if (EnvLoadFacts(theEnv,fileName) == FALSE) return(FALSE);   return(TRUE);  }/**************************************************************//* EnvSaveFacts: C access routine for the save-facts command. *//**************************************************************/globle intBool EnvSaveFacts(  void *theEnv,  char *fileName,  int saveCode,  struct expr *theList)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合色8888| 亚洲天堂2016| 一区二区在线观看视频| 美女视频一区在线观看| 99国产精品久久久久久久久久久| 欧美日本视频在线| 亚洲欧美日韩精品久久久久| 久久国产欧美日韩精品| 欧美又粗又大又爽| 欧美激情艳妇裸体舞| 日本成人在线电影网| 色一区在线观看| 国产婷婷色一区二区三区| 日韩精品亚洲专区| 在线免费观看视频一区| 国产色综合久久| 捆绑紧缚一区二区三区视频| 欧美色男人天堂| 中文字幕中文字幕一区| 国产精品一区不卡| 精品999在线播放| 天堂成人国产精品一区| 日本精品视频一区二区| 国产精品污污网站在线观看 | 韩国精品主播一区二区在线观看| 欧美手机在线视频| 亚洲欧美怡红院| 91丨porny丨国产| 中文字幕一区二| av一本久道久久综合久久鬼色| 亚洲国产精品黑人久久久| 国产一区二区电影| 2020国产精品| 精品一区二区三区香蕉蜜桃 | 国产欧美久久久精品影院| 精品一区二区久久| 久久久久久久综合| 国产麻豆精品久久一二三| 2020国产成人综合网| 麻豆精品国产传媒mv男同| 欧美一级一区二区| 久久国产夜色精品鲁鲁99| 日韩区在线观看| 精品写真视频在线观看 | 91精品国产综合久久精品app| 亚洲图片欧美一区| 91麻豆精品国产91久久久更新时间| 亚洲制服丝袜av| 欧美高清你懂得| 麻豆国产精品官网| 精品国产成人系列| 国产.欧美.日韩| 亚洲色图欧美在线| 欧美日韩五月天| 精品在线视频一区| 最新国产精品久久精品| 欧美日韩精品三区| 国内久久婷婷综合| 国产精品国产三级国产专播品爱网| 欧美亚洲免费在线一区| 亚洲欧美日韩电影| 精品一区二区影视| 国产欧美精品区一区二区三区| 99久久精品国产导航| 亚洲电影一级黄| 久久一区二区视频| 色94色欧美sute亚洲线路一久| 日本不卡一区二区三区| 久久久精品综合| 欧美无乱码久久久免费午夜一区 | 91麻豆.com| 日本伊人精品一区二区三区观看方式| 久久久久亚洲蜜桃| 日本道在线观看一区二区| 日本中文一区二区三区| 国产精品乱子久久久久| 91精品在线观看入口| 成人高清视频免费观看| 奇米色一区二区| 亚洲欧洲一区二区在线播放| 日韩欧美资源站| 成人动漫一区二区在线| 欧美日韩免费不卡视频一区二区三区| 日韩精品视频网站| 日韩一区欧美小说| 欧美xxxx在线观看| 欧美精品粉嫩高潮一区二区| 成人一道本在线| 久久精品国产99| 亚洲线精品一区二区三区| 国产精品视频免费| 精品福利一二区| 日韩一区二区麻豆国产| 一本一道久久a久久精品| 国产成人亚洲综合a∨婷婷| 日本特黄久久久高潮| 一区二区视频在线| 国产精品电影一区二区三区| 久久女同性恋中文字幕| 日韩一区二区三| 51午夜精品国产| 欧美性生活久久| 欧美又粗又大又爽| 91高清视频免费看| 一本一道综合狠狠老| 成人动漫一区二区三区| 粉嫩嫩av羞羞动漫久久久| 国产精品一区免费视频| 精品在线你懂的| 精品一区二区三区免费观看| 蜜桃一区二区三区在线| 日本午夜精品一区二区三区电影| 亚洲国产欧美日韩另类综合| 成人污视频在线观看| 国产乱码字幕精品高清av| 免费在线观看一区二区三区| 亚洲精品免费看| 亚洲欧美另类久久久精品2019| 国产精品视频九色porn| 国产精品的网站| 中文字幕在线视频一区| 亚洲欧美综合另类在线卡通| 日韩一区欧美一区| 亚洲一区二区五区| 亚洲成人中文在线| 美国精品在线观看| 国产精品一区二区无线| 成人国产精品免费| 色狠狠色噜噜噜综合网| 欧美三级资源在线| 日韩欧美国产综合| 欧美激情一区二区在线| 亚洲日本青草视频在线怡红院| 一区二区三区在线观看网站| 亚洲国产精品一区二区久久| 奇米色一区二区| 国产69精品久久777的优势| 99精品久久久久久| 99久久99精品久久久久久| 欧美一级理论片| 大桥未久av一区二区三区中文| 成人一区二区视频| 91成人在线精品| 日韩视频免费直播| 国产欧美一区二区精品婷婷 | 日韩久久精品一区| 精品奇米国产一区二区三区| 亚洲成a人v欧美综合天堂| 图片区日韩欧美亚洲| 最好看的中文字幕久久| 韩国成人精品a∨在线观看| 欧美午夜精品一区二区三区| 亚洲视频一区二区免费在线观看| 国产在线精品免费av| 欧美一级高清片| 亚洲第一av色| 欧美在线免费观看视频| 亚洲精品国产一区二区三区四区在线| 国产精品中文字幕日韩精品| 国产精品乱码一区二区三区软件| 国产成人综合亚洲91猫咪| 石原莉奈一区二区三区在线观看| av资源站一区| 国产精品久久一卡二卡| 成人高清在线视频| 国产精品国产自产拍高清av| 成人午夜激情影院| 国产精品久久三| 99视频热这里只有精品免费| 国产精品萝li| 91亚洲永久精品| 亚洲综合色在线| 欧美私人免费视频| 日日嗨av一区二区三区四区| 7777精品伊人久久久大香线蕉完整版 | 精品系列免费在线观看| 欧美大白屁股肥臀xxxxxx| 麻豆久久一区二区| 色综合久久66| 国产欧美日韩亚州综合 | 久久精品视频免费| 国产高清久久久| 日本一区二区成人在线| 成人晚上爱看视频| 国产精品卡一卡二| 色香蕉成人二区免费| 五月天国产精品| 欧美哺乳videos| 国产精品白丝av| 亚洲欧洲日产国产综合网| 一本大道久久a久久精二百| 亚洲制服丝袜一区| 欧美成人高清电影在线| 粉嫩av一区二区三区| 夜夜操天天操亚洲| 日韩一区二区免费高清| 成人综合在线观看| 亚洲国产成人av好男人在线观看| 日韩精品中文字幕在线一区| 风间由美一区二区av101|