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

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

?? factmngr.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
   /*===============================*/   /* Return a pointer to the fact. */   /*===============================*/   return((void *) theFact);  }/**************************************//* RemoveAllFacts: Loops through the  *//*   fact-list and removes each fact. *//**************************************/globle void RemoveAllFacts(  void *theEnv)  {   while (FactData(theEnv)->FactList != NULL)     { EnvRetract(theEnv,(void *) FactData(theEnv)->FactList); }  }/************************************************//* EnvCreateFact: Creates a fact data structure *//*   of the specified deftemplate.              *//************************************************/globle struct fact *EnvCreateFact(  void *theEnv,  void *vTheDeftemplate)  {   struct deftemplate *theDeftemplate = (struct deftemplate *) vTheDeftemplate;   struct fact *newFact;   int i;   /*=================================*/   /* A deftemplate must be specified */   /* in order to create a fact.      */   /*=================================*/   if (theDeftemplate == NULL) return(NULL);   /*============================================*/   /* Create a fact for an explicit deftemplate. */   /*============================================*/   if (theDeftemplate->implied == FALSE)     {      newFact = CreateFactBySize(theEnv,theDeftemplate->numberOfSlots);      for (i = 0;           i < (int) theDeftemplate->numberOfSlots;           i++)        { newFact->theProposition.theFields[i].type = RVOID; }     }   /*===========================================*/   /* Create a fact for an implied deftemplate. */   /*===========================================*/   else     {      newFact = CreateFactBySize(theEnv,1);      newFact->theProposition.theFields[0].type = MULTIFIELD;      newFact->theProposition.theFields[0].value = CreateMultifield2(theEnv,0L);     }   /*===============================*/   /* Return a pointer to the fact. */   /*===============================*/   newFact->whichDeftemplate = theDeftemplate;   return(newFact);  }/******************************************//* EnvGetFactSlot: Returns the slot value *//*   from the specified slot of a fact.   *//******************************************/globle intBool EnvGetFactSlot(  void *theEnv,  void *vTheFact,  char *slotName,  DATA_OBJECT *theValue)  {   struct fact *theFact = (struct fact *) vTheFact;   struct deftemplate *theDeftemplate;   short whichSlot;   /*===============================================*/   /* Get the deftemplate associated with the fact. */   /*===============================================*/   theDeftemplate = theFact->whichDeftemplate;   /*==============================================*/   /* Handle retrieving the slot value from a fact */   /* having an implied deftemplate. An implied    */   /* facts has a single multifield slot.          */   /*==============================================*/   if (theDeftemplate->implied)     {      if (slotName != NULL) return(FALSE);      theValue->type = theFact->theProposition.theFields[0].type;      theValue->value = theFact->theProposition.theFields[0].value;      SetpDOBegin(theValue,1);      SetpDOEnd(theValue,((struct multifield *) theValue->value)->multifieldLength);      return(TRUE);     }   /*===================================*/   /* Make sure the slot name requested */   /* corresponds to a valid slot name. */   /*===================================*/   if (FindSlot(theDeftemplate,(SYMBOL_HN *) EnvAddSymbol(theEnv,slotName),&whichSlot) == NULL)     { return(FALSE); }   /*======================================================*/   /* Return the slot value. If the slot value wasn't set, */   /* then return FALSE to indicate that an appropriate    */   /* slot value wasn't available.                         */   /*======================================================*/   theValue->type = theFact->theProposition.theFields[whichSlot-1].type;   theValue->value = theFact->theProposition.theFields[whichSlot-1].value;   if (theValue->type == MULTIFIELD)     {      SetpDOBegin(theValue,1);      SetpDOEnd(theValue,((struct multifield *) theValue->value)->multifieldLength);     }   if (theValue->type == RVOID) return(FALSE);   return(TRUE);  }/***************************************//* EnvPutFactSlot: Sets the slot value *//*   of the specified slot of a fact.  *//***************************************/globle intBool EnvPutFactSlot(  void *theEnv,  void *vTheFact,  char *slotName,  DATA_OBJECT *theValue)  {   struct fact *theFact = (struct fact *) vTheFact;   struct deftemplate *theDeftemplate;   struct templateSlot *theSlot;   short whichSlot;   /*===============================================*/   /* Get the deftemplate associated with the fact. */   /*===============================================*/   theDeftemplate = theFact->whichDeftemplate;   /*============================================*/   /* Handle setting the slot value of a fact    */   /* having an implied deftemplate. An implied  */   /* facts has a single multifield slot.        */   /*============================================*/   if (theDeftemplate->implied)     {      if ((slotName != NULL) || (theValue->type != MULTIFIELD))        { return(FALSE); }      if (theFact->theProposition.theFields[0].type == MULTIFIELD)        { ReturnMultifield(theEnv,(struct multifield *) theFact->theProposition.theFields[0].value); }      theFact->theProposition.theFields[0].type = theValue->type;      theFact->theProposition.theFields[0].value = DOToMultifield(theEnv,theValue);            return(TRUE);     }   /*===================================*/   /* Make sure the slot name requested */   /* corresponds to a valid slot name. */   /*===================================*/   if ((theSlot = FindSlot(theDeftemplate,(SYMBOL_HN *) EnvAddSymbol(theEnv,slotName),&whichSlot)) == NULL)     { return(FALSE); }   /*=============================================*/   /* Make sure a single field value is not being */   /* stored in a multifield slot or vice versa.  */   /*=============================================*/   if (((theSlot->multislot == 0) && (theValue->type == MULTIFIELD)) ||       ((theSlot->multislot == 1) && (theValue->type != MULTIFIELD)))     { return(FALSE); }   /*=====================*/   /* Set the slot value. */   /*=====================*/   if (theFact->theProposition.theFields[whichSlot-1].type == MULTIFIELD)     { ReturnMultifield(theEnv,(struct multifield *) theFact->theProposition.theFields[whichSlot-1].value); }   theFact->theProposition.theFields[whichSlot-1].type = theValue->type;   if (theValue->type == MULTIFIELD)     { theFact->theProposition.theFields[whichSlot-1].value = DOToMultifield(theEnv,theValue); }   else     { theFact->theProposition.theFields[whichSlot-1].value = theValue->value; }      return(TRUE);  }/********************************************************//* EnvAssignFactSlotDefaults: Sets a fact's slot values *//*   to its default value if the value of the slot has  *//*   not yet been set.                                  *//********************************************************/globle intBool EnvAssignFactSlotDefaults(  void *theEnv,  void *vTheFact)  {   struct fact *theFact = (struct fact *) vTheFact;   struct deftemplate *theDeftemplate;   struct templateSlot *slotPtr;   int i;   DATA_OBJECT theResult;   /*===============================================*/   /* Get the deftemplate associated with the fact. */   /*===============================================*/   theDeftemplate = theFact->whichDeftemplate;   /*================================================*/   /* The value for the implied multifield slot of   */   /* an implied deftemplate is set to a multifield  */   /* of length zero when the fact is created.       */   /*================================================*/   if (theDeftemplate->implied) return(TRUE);   /*============================================*/   /* Loop through each slot of the deftemplate. */   /*============================================*/   for (i = 0, slotPtr = theDeftemplate->slotList;        i < (int) theDeftemplate->numberOfSlots;        i++, slotPtr = slotPtr->next)     {      /*===================================*/      /* If the slot's value has been set, */      /* then move on to the next slot.    */      /*===================================*/      if (theFact->theProposition.theFields[i].type != RVOID) continue;      /*======================================================*/      /* Assign the default value for the slot if one exists. */      /*======================================================*/            if (DeftemplateSlotDefault(theEnv,theDeftemplate,slotPtr,&theResult,FALSE))        {         theFact->theProposition.theFields[i].type = theResult.type;         theFact->theProposition.theFields[i].value = theResult.value;        }     }   /*==========================================*/   /* Return TRUE to indicate that the default */   /* values have been successfully set.       */   /*==========================================*/   return(TRUE);  }  /********************************************************//* DeftemplateSlotDefault: Determines the default value *//*   for the specified slot of a deftemplate.           *//********************************************************/globle intBool DeftemplateSlotDefault(  void *theEnv,  struct deftemplate *theDeftemplate,  struct templateSlot *slotPtr,  DATA_OBJECT *theResult,  int garbageMultifield)  {   /*================================================*/   /* The value for the implied multifield slot of an */   /* implied deftemplate does not have a default.    */   /*=================================================*/   if (theDeftemplate->implied) return(FALSE);   /*===============================================*/   /* If the (default ?NONE) attribute was declared */   /* for the slot, then return FALSE to indicate   */   /* the default values for the fact couldn't be   */   /* supplied since this attribute requires that a */   /* default value can't be used for the slot.     */   /*===============================================*/   if (slotPtr->noDefault) return(FALSE);   /*==============================================*/   /* Otherwise if a static default was specified, */   /* use this as the default value.               */   /*==============================================*/   else if (slotPtr->defaultPresent)     {      if (slotPtr->multislot)        {         StoreInMultifield(theEnv,theResult,slotPtr->defaultList,garbageMultifield);        }      else        {         theResult->type = slotPtr->defaultList->type;         theResult->value = slotPtr->defaultList->value;        }     }   /*================================================*/   /* Otherwise if a dynamic-default was specified,  */   /* evaluate it and use this as the default value. */   /*================================================*/   else if (slotPtr->defaultDynamic)     {      if (! EvaluateAndStoreInDataObject(theEnv,(int) slotPtr->multislot,                                         (EXPRESSION *) slotPtr->defaultList,                                         theResult,garbageMultifield))        { return(FALSE); }     }   /*====================================*/   /* Otherwise derive the default value */   /* from the slot's constraints.       */   /*====================================*/   else     {      DeriveDefaultFromConstraints(theEnv,slotPtr->constraints,theResult,                                  (int) slotPtr->multislot,garbageMultifield);     }   /*==========================================*/   /* Return TRUE to indicate that the default */   /* values have been successfully set.       */   /*==========================================*/   return(TRUE);  }/***************************************************************//* CopyFactSlotValues: Copies the slot values from one fact to *//*   another. Both facts must have the same relation name.     *//***************************************************************/globle intBool CopyFactSlotValues(  void *theEnv,  void *vTheDestFact,  void *vTheSourceFact)  {   struct fact *theDestFact = (struct fact *) vTheDestFact;   struct fact *theSourceFact = (struct fact *) vTheSourceFact;   struct deftemplate *theDeftemplate;   struct templateSlot *slotPtr;   int i;   /*===================================*/   /* Both facts must be the same type. */   /*===================================*/   theDeftemplate = theSourceFact->whichDeftemplate;   if (theDestFact->whichDeftemplate != theDeftemplate)     { return(FALSE); }   /*===================================================*/   /* Loop through each slot of the deftemplate copying */   /* the source fact value to the destination fact.    */   /*===================================================*/   for (i = 0, slotPtr = theDeftemplate->slotList;        i < (int) theDeftemplate->numberOfSlots;        i++, slotPtr = slotPtr->next)     {      theDestFact->theProposition.theFields[i].type =         theSourceFact->theProposition.theFields[i].type;      if (theSourceFact->theProposition.theFields[i].type != MULTIFIELD)        {         theDestFact->theProposition.theFields[i].value =           theSourceFact->theProposition.theFields[i].value;        }      else        {         theDestFact->theProposition.theFields[i].value =           CopyMultifield(theEnv,(struct multifield *) theSourceFact->theProposition.theFields[i].value);        }     }   /*========================================*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线小视频| 国产亚洲精品aa| 欧美亚洲禁片免费| 91亚洲永久精品| 欧美色窝79yyyycom| 欧美一区二区私人影院日本| 欧美体内she精高潮| 精一区二区三区| 欧美一区日本一区韩国一区| 91国产免费看| 欧美一区二区三区影视| 久久影视一区二区| 亚洲国产你懂的| 国产精品影视网| 成人久久18免费网站麻豆| 91在线一区二区三区| 欧美福利视频一区| 亚洲另类色综合网站| 日韩国产欧美在线视频| 天天综合天天做天天综合| 国产人久久人人人人爽| 99精品久久免费看蜜臀剧情介绍| 成人一道本在线| 色综合婷婷久久| 中文字幕亚洲在| 91免费版pro下载短视频| 国产精品久久久久久福利一牛影视| 国产一区二区精品久久91| 亚洲精品在线观看网站| 色综合天天天天做夜夜夜夜做| 中国av一区二区三区| 蜜桃视频一区二区三区在线观看 | 欧美综合天天夜夜久久| 国产精品一区二区久激情瑜伽 | 久久久精品免费观看| 亚洲激情av在线| 精品亚洲porn| 欧美白人最猛性xxxxx69交| 亚洲欧美福利一区二区| 在线精品视频一区二区| 日韩欧美久久久| 中文字幕亚洲视频| 成人国产精品免费观看动漫| 欧美mv和日韩mv的网站| 天涯成人国产亚洲精品一区av| 日本黄色一区二区| 中文字幕一区视频| 盗摄精品av一区二区三区| 久久久综合精品| 国产不卡视频在线观看| 国产亚洲欧美在线| 99视频热这里只有精品免费| 久久影音资源网| 色综合久久综合中文综合网| 国产三级精品三级在线专区| 成人一区二区三区视频| 一区二区三区四区乱视频| 欧美日韩一区二区三区高清| 国产麻豆视频精品| 欧美刺激午夜性久久久久久久| 青青草伊人久久| 国产日本亚洲高清| 色狠狠av一区二区三区| 男女男精品视频网| 久久久99免费| 99久久精品一区二区| 天天影视涩香欲综合网| 久久久www成人免费无遮挡大片| 成人免费福利片| 丝袜亚洲精品中文字幕一区| 欧美一区二区三区免费| 久久99在线观看| 国产精品二三区| 日韩欧美123| 91国偷自产一区二区使用方法| 奇米精品一区二区三区在线观看 | 欧美一级一区二区| 亚洲精选视频在线| 精品av久久707| 欧美日韩三级视频| 日韩av电影免费观看高清完整版| 色婷婷av一区二区三区大白胸| 国产视频一区二区在线| 老司机精品视频导航| 欧美中文字幕亚洲一区二区va在线 | 国产精品美女久久久久aⅴ| 亚洲国产一区二区三区青草影视| 国产一区二区三区四区在线观看| 欧美色图片你懂的| 亚洲欧美日韩在线| 亚洲bt欧美bt精品| 成人av在线看| 极品美女销魂一区二区三区| 欧美极品另类videosde| av电影天堂一区二区在线| 一区二区三区欧美日| 久久久精品国产免大香伊| 欧美精选一区二区| 国产一区视频网站| 国产精品久久网站| 欧美日本在线播放| 岛国av在线一区| 青青国产91久久久久久| 亚洲综合视频在线| 中文字幕一区二区日韩精品绯色| 欧美日本在线视频| 欧美日韩国产首页在线观看| 91一区一区三区| 色综合天天性综合| 欧美日韩精品一区二区天天拍小说| 91老司机福利 在线| 成人免费毛片a| 99热精品国产| 日韩一二三区视频| 久久久久久97三级| 中文字幕乱码日本亚洲一区二区| 久久久精品中文字幕麻豆发布| 亚洲乱码中文字幕| 日韩精品五月天| av在线一区二区三区| 欧美日韩在线观看一区二区| 26uuu久久综合| 国产麻豆欧美日韩一区| 国产成人av一区二区| 一本到三区不卡视频| 欧美福利视频导航| 亚洲综合在线电影| 一本大道久久a久久精二百| 欧美精品一区二区三区蜜桃| 夜夜嗨av一区二区三区中文字幕| 久久99久久久久| 日韩欧美中文一区二区| 夜夜嗨av一区二区三区中文字幕| 处破女av一区二区| 久久日韩粉嫩一区二区三区| 亚洲黄色小视频| 国产精品一二三四| 久久亚洲一区二区三区明星换脸| 天堂影院一区二区| 欧美美女bb生活片| 婷婷六月综合亚洲| 日韩视频国产视频| 久久av资源网| 18成人在线视频| 91福利区一区二区三区| 亚洲国产一区二区a毛片| 欧美日韩欧美一区二区| 亚洲最快最全在线视频| 国产91在线看| 亚洲天堂中文字幕| 91精品国产综合久久小美女 | 99久久久免费精品国产一区二区 | 日韩成人精品视频| 精品久久久久久久久久久久久久久 | 成人免费看视频| 一区二区三区蜜桃| 在线欧美日韩国产| 美腿丝袜在线亚洲一区| 国产精品美女久久久久久2018| 99国产一区二区三精品乱码| 天堂久久久久va久久久久| 久久精品人人爽人人爽| 欧美系列亚洲系列| 黑人巨大精品欧美黑白配亚洲| 中文字幕亚洲欧美在线不卡| 欧美日韩国产片| 粉嫩嫩av羞羞动漫久久久| 亚洲国产成人av网| 亚洲欧美日韩在线播放| 国产视频一区不卡| 日韩一级二级三级精品视频| 99久久精品国产一区二区三区 | 亚洲妇熟xx妇色黄| 久久久精品免费免费| 日韩午夜中文字幕| 欧美视频在线观看一区二区| 成人性视频免费网站| 国产高清在线精品| 美女免费视频一区| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲乱码国产乱码精品精98午夜| 久久精品水蜜桃av综合天堂| 91精品国产全国免费观看| 6080日韩午夜伦伦午夜伦| 欧美视频精品在线| 欧美一区二区精品在线| 91精品国产欧美一区二区成人| 欧美影院精品一区| 欧美日韩综合在线| 欧美系列一区二区| 欧美在线观看一区| 精品国产污污免费网站入口| 久久亚洲免费视频| 亚洲国产精品精华液ab| 亚洲三级免费观看| 青青草97国产精品免费观看| 国产一区二区三区观看| 91丨porny丨国产入口| 91成人免费在线| 久久人人97超碰com|