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

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

?? factfun.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  06/05/06            */   /*                                                     */   /*               FACT FUNCTIONS MODULE                 */   /*******************************************************//*************************************************************//* Purpose:                                                  *//*                                                           *//*                                                           *//* (fact-existp <fact-address-or-index>)                     *//*    Returns TRUE if the fact exists, otherwise FALSE is    *//*    returned.                                              *//*                                                           *//* (fact-relation <fact-address-or-index>)                   *//*    Returns the deftemplate name of the fact. Returns      *//*    False if the specified fact doesn't exist.             *//*                                                           *//* (fact-slot-value <fact-address-or-index> <slot-name>)     *//*    Returns the contents of a slot (use the slot name      *//*    implied for the implied multifield slot of an ordered  *//*    fact). Returns the value FALSE if the slot name is     *//*    invalid or the fact doesn't exist.                     *//*                                                           *//* (fact-slot-names <fact-address-or-index>)                 *//*    Returns the slot names associated with a fact in a     *//*    multifield value. Returns FALSE if the fact doesn't    *//*    exist.                                                 *//*                                                           *//* (get-fact-list [<module-name>])                           *//*    Returns the list of facts visible to the specified     *//*    module or to the current module if none is specified.  *//*    If * is specified then all facts are returned.         *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*      6.23: Correction for FalseSymbol/TrueSymbol. DR0859  *//*                                                           *//*            Corrected compilation errors for files         *//*            generated by constructs-to-c. DR0861           *//*                                                           *//*      6.24: Added ppfact function.                         *//*                                                           *//*************************************************************/#include <stdio.h>#define _STDIO_INCLUDED_#include <string.h>#include "setup.h"#if DEFTEMPLATE_CONSTRUCT#define _FACTFUN_SOURCE_#include "extnfunc.h"#include "envrnmnt.h"#include "argacces.h"#include "prntutil.h"#include "tmpltutl.h"#include "router.h"#include "sysdep.h"#include "factfun.h"/****************************************************//* FactFunctionDefinitions: Defines fact functions. *//****************************************************/globle void FactFunctionDefinitions(  void *theEnv)  {#if ! RUN_TIME   EnvDefineFunction2(theEnv,"fact-existp",  'b', PTIEF FactExistpFunction,  "FactExistpFunction", "11z");   EnvDefineFunction2(theEnv,"fact-relation",'w', PTIEF FactRelationFunction,"FactRelationFunction", "11z");   EnvDefineFunction2(theEnv,"fact-slot-value",'u', PTIEF FactSlotValueFunction,"FactSlotValueFunction", "22*zw");   EnvDefineFunction2(theEnv,"fact-slot-names",'u', PTIEF FactSlotNamesFunction,"FactSlotNamesFunction", "11z");   EnvDefineFunction2(theEnv,"get-fact-list",'m',PTIEF GetFactListFunction,"GetFactListFunction","01w");   EnvDefineFunction2(theEnv,"ppfact",'v',PTIEF PPFactFunction,"PPFactFunction","13*z");#else#if MAC_MCW || IBM_MCW || MAC_XCD#pragma unused(theEnv)#endif#endif  }/**********************************************//* FactRelationFunction: H/L access routine   *//*   for the fact-relation function.          *//**********************************************/globle void *FactRelationFunction(  void *theEnv)  {   struct fact *theFact;   if (EnvArgCountCheck(theEnv,"fact-relation",EXACTLY,1) == -1) return(EnvFalseSymbol(theEnv));   theFact = GetFactAddressOrIndexArgument(theEnv,"fact-relation",1,FALSE);   if (theFact == NULL) return(EnvFalseSymbol(theEnv));   return(FactRelation(theFact));  }/**************************************//* FactRelation: C access routine for *//*   the fact-relation function.      *//**************************************/globle void *FactRelation(  void *vTheFact)  {   struct fact *theFact = (struct fact *) vTheFact;   return((void *) theFact->whichDeftemplate->header.name);  }  /****************************************//* EnvFactDeftemplate: C access routine *//*   to retrieve a fact's deftemplate.  *//****************************************/#if IBM_TBC#pragma argsused#endifgloble void *EnvFactDeftemplate(  void *theEnv,  void *vTheFact)  {#if MAC_MCW || IBM_MCW || MAC_XCD#pragma unused(theEnv)#endif   struct fact *theFact = (struct fact *) vTheFact;   return((void *) theFact->whichDeftemplate);  }/********************************************//* FactExistpFunction: H/L access routine   *//*   for the fact-existp function.          *//********************************************/globle int FactExistpFunction(  void *theEnv)  {   struct fact *theFact;   if (EnvArgCountCheck(theEnv,"fact-existp",EXACTLY,1) == -1) return(-1L);   theFact = GetFactAddressOrIndexArgument(theEnv,"fact-existp",1,FALSE);   return(EnvFactExistp(theEnv,theFact));  }/***********************************//* EnvFactExistp: C access routine *//*   for the fact-existp function. *//***********************************/#if IBM_TBC#pragma argsused#endifgloble int EnvFactExistp(  void *theEnv,  void *vTheFact)  {#if MAC_MCW || IBM_MCW || MAC_XCD#pragma unused(theEnv)#endif   struct fact *theFact = (struct fact *) vTheFact;   if (theFact == NULL) return(FALSE);   if (theFact->garbage) return(FALSE);   return(TRUE);  }/***********************************************//* FactSlotValueFunction: H/L access routine   *//*   for the fact-slot-value function.         *//***********************************************/globle void FactSlotValueFunction(  void *theEnv,  DATA_OBJECT *returnValue)  {   struct fact *theFact;   DATA_OBJECT theValue;   /*=============================================*/   /* Set up the default return value for errors. */   /*=============================================*/   returnValue->type = SYMBOL;   returnValue->value = EnvFalseSymbol(theEnv);   /*============================================*/   /* Check for the correct number of arguments. */   /*============================================*/   if (EnvArgCountCheck(theEnv,"fact-slot-value",EXACTLY,2) == -1) return;   /*================================*/   /* Get the reference to the fact. */   /*================================*/   theFact = GetFactAddressOrIndexArgument(theEnv,"fact-slot-value",1,TRUE);   if (theFact == NULL) return;   /*===========================*/   /* Get the name of the slot. */   /*===========================*/   if (EnvArgTypeCheck(theEnv,"fact-slot-value",2,SYMBOL,&theValue) == FALSE)     { return; }   /*=======================*/   /* Get the slot's value. */   /*=======================*/   FactSlotValue(theEnv,theFact,DOToString(theValue),returnValue);  }/***************************************//* FactSlotValue: C access routine for *//*   the fact-slot-value function.     *//***************************************/globle void FactSlotValue(  void *theEnv,  void *vTheFact,  char *theSlotName,  DATA_OBJECT *returnValue)  {   struct fact *theFact = (struct fact *) vTheFact;   short position;   /*==================================================*/   /* Make sure the slot exists (the symbol implied is */   /* used for the implied slot of an ordered fact).   */   /*==================================================*/   if (theFact->whichDeftemplate->implied)     {      if (strcmp(theSlotName,"implied") != 0)        {         SetEvaluationError(theEnv,TRUE);         InvalidDeftemplateSlotMessage(theEnv,theSlotName,                                       ValueToString(theFact->whichDeftemplate->header.name),FALSE);         return;        }     }   else if (FindSlot(theFact->whichDeftemplate,(SYMBOL_HN *) EnvAddSymbol(theEnv,theSlotName),&position) == NULL)     {      SetEvaluationError(theEnv,TRUE);      InvalidDeftemplateSlotMessage(theEnv,theSlotName,                                    ValueToString(theFact->whichDeftemplate->header.name),FALSE);      return;     }   /*==========================*/   /* Return the slot's value. */   /*==========================*/   if (theFact->whichDeftemplate->implied)     { EnvGetFactSlot(theEnv,theFact,NULL,returnValue); }   else     { EnvGetFactSlot(theEnv,theFact,theSlotName,returnValue); }  }/***********************************************//* FactSlotNamesFunction: H/L access routine   *//*   for the fact-slot-names function.         *//***********************************************/globle void FactSlotNamesFunction(  void *theEnv,  DATA_OBJECT *returnValue)  {   struct fact *theFact;   /*=============================================*/   /* Set up the default return value for errors. */   /*=============================================*/   returnValue->type = SYMBOL;   returnValue->value = EnvFalseSymbol(theEnv);   /*============================================*/   /* Check for the correct number of arguments. */   /*============================================*/   if (EnvArgCountCheck(theEnv,"fact-slot-names",EXACTLY,1) == -1) return;   /*================================*/   /* Get the reference to the fact. */   /*================================*/   theFact = GetFactAddressOrIndexArgument(theEnv,"fact-slot-names",1,TRUE);   if (theFact == NULL) return;   /*=====================*/   /* Get the slot names. */   /*=====================*/   EnvFactSlotNames(theEnv,theFact,returnValue);  }/***************************************//* EnvFactSlotNames: C access routine  *//*   for the fact-slot-names function. *//***************************************/globle void EnvFactSlotNames(  void *theEnv,  void *vTheFact,  DATA_OBJECT *returnValue)  {   struct fact *theFact = (struct fact *) vTheFact;   struct multifield *theList;   struct templateSlot *theSlot;   unsigned long count;   /*===============================================*/   /* If we're dealing with an implied deftemplate, */   /* then the only slot names is "implied."        */   /*===============================================*/   if (theFact->whichDeftemplate->implied)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产小视频| 国产·精品毛片| 88在线观看91蜜桃国自产| 亚洲6080在线| 69成人精品免费视频| 久久国产精品99久久人人澡| 91精品国产乱码| 韩国一区二区三区| 国产三级三级三级精品8ⅰ区| 国产精品一二三四五| 国产精品人妖ts系列视频| 成人18视频日本| 亚洲小说春色综合另类电影| 91麻豆精品国产自产在线观看一区| 日韩高清不卡一区二区三区| 精品国产3级a| 成人午夜私人影院| 亚洲伊人色欲综合网| 日韩欧美色综合| 国产69精品久久久久777| 亚洲柠檬福利资源导航| 欧美精品 国产精品| 国产一区福利在线| 久久影院视频免费| 2023国产精品| 99re热这里只有精品免费视频| 亚洲激情校园春色| 在线电影院国产精品| 国产精品一区二区在线看| 亚洲欧洲精品一区二区三区| 欧美日韩久久一区| 国产精品一区二区久久不卡 | 激情综合亚洲精品| 中文字幕国产一区二区| 欧美日韩视频专区在线播放| 国产一区二区三区在线观看免费| 亚洲精品中文字幕在线观看| 日韩午夜在线播放| 一本久道久久综合中文字幕 | 久久综合久久综合亚洲| 成人一区二区在线观看| 日韩国产一区二| 国产精品电影一区二区| 欧美美女bb生活片| 99精品视频在线免费观看| 捆绑变态av一区二区三区| 国产精品三级av| 久久婷婷国产综合国色天香| 欧美精品高清视频| 色呦呦国产精品| 国产精品综合久久| 麻豆精品一二三| 亚洲国产wwwccc36天堂| 国产精品久久久久影院老司| 精品福利视频一区二区三区| 色婷婷久久99综合精品jk白丝| 激情综合五月婷婷| 美女视频一区在线观看| 久久久www免费人成精品| 欧美日韩极品在线观看一区| 97精品久久久久中文字幕| 国产一区二区三区电影在线观看| 亚洲成av人**亚洲成av**| 亚洲人成小说网站色在线| 精品久久久久久久人人人人传媒| 欧美色爱综合网| 在线免费av一区| 91亚洲永久精品| 成人av资源站| 成人激情小说乱人伦| 狠狠v欧美v日韩v亚洲ⅴ| 麻豆精品国产传媒mv男同| 午夜久久久久久电影| 亚洲一区二区三区小说| 亚洲男人的天堂在线aⅴ视频| 国产精品私人影院| 中文字幕av在线一区二区三区| 久久精品一区二区三区四区| 精品三级av在线| 精品av综合导航| 国产亚洲女人久久久久毛片| 26uuu精品一区二区| 久久精品日韩一区二区三区| 久久尤物电影视频在线观看| 亚洲精品一区二区三区影院| 精品理论电影在线| 久久日韩粉嫩一区二区三区| 久久久五月婷婷| 欧美激情中文字幕一区二区| 国产午夜精品在线观看| 国产精品网曝门| 亚洲免费观看高清完整| 亚洲国产美女搞黄色| 婷婷久久综合九色综合绿巨人| 亚洲va欧美va人人爽| 日韩国产精品91| 国产黑丝在线一区二区三区| 岛国一区二区三区| 色综合久久综合网欧美综合网| 欧美自拍偷拍一区| 日韩一级大片在线观看| 久久嫩草精品久久久精品一| 国产精品嫩草99a| 一二三四社区欧美黄| 日韩av在线免费观看不卡| 国产电影一区在线| 91久久精品一区二区二区| 欧美福利电影网| 久久蜜桃av一区精品变态类天堂| 国产精品乱人伦一区二区| 亚洲尤物在线视频观看| 久久 天天综合| 99久久er热在这里只有精品15| 欧美影院一区二区三区| 精品国产123| 一区二区三区欧美久久| 激情综合网最新| 色偷偷久久一区二区三区| 欧美一区二区三区人| 国产精品私人影院| 视频一区在线播放| 成人网男人的天堂| 欧美一级日韩不卡播放免费| 国产精品久久久久久久岛一牛影视| 亚洲亚洲人成综合网络| 国产精品亚洲视频| 欧美午夜宅男影院| 国产精品嫩草影院com| 免费日本视频一区| 91猫先生在线| 欧美精品一区男女天堂| 一区二区三区在线免费观看| 国产自产2019最新不卡| 欧美午夜精品久久久| 国产精品免费av| 极品少妇一区二区| 在线成人高清不卡| 亚洲美女电影在线| 国产成人av一区二区三区在线| 欧美日本精品一区二区三区| 中文字幕+乱码+中文字幕一区| 日韩二区在线观看| 在线观看欧美黄色| 国产精品激情偷乱一区二区∴| 久久精品国产一区二区三 | 丁香婷婷综合网| 日韩精品中文字幕一区二区三区 | 国产午夜精品久久| 日本免费在线视频不卡一不卡二| 色综合色狠狠天天综合色| 久久综合久久久久88| 免费观看日韩av| 777久久久精品| 性做久久久久久久久| 91麻豆6部合集magnet| 国产精品视频yy9299一区| 精品无人码麻豆乱码1区2区| 欧美久久久久久久久久| 夜夜嗨av一区二区三区四季av | 91论坛在线播放| 国产精品第四页| 丁香激情综合五月| 中文字幕乱码日本亚洲一区二区| 国产乱码精品1区2区3区| 久久久久久毛片| 国产寡妇亲子伦一区二区| 久久精品视频一区二区三区| 国产一区欧美一区| 国产午夜三级一区二区三| 国产精品一级黄| 中文成人综合网| 99久久精品一区二区| 一区二区三区欧美视频| 欧美亚洲综合另类| 午夜精品国产更新| 欧美肥胖老妇做爰| 美女一区二区在线观看| 日韩精品中午字幕| 国产剧情一区二区三区| 欧美国产日产图区| 色呦呦日韩精品| 日韩综合在线视频| 欧美电影免费提供在线观看| 精品一区二区免费视频| 久久久久9999亚洲精品| 不卡的电影网站| 亚洲精品免费在线播放| 欧美日韩一区国产| 久久99久久久欧美国产| 国产午夜精品久久| 色妞www精品视频| 五月天一区二区三区| 精品国产一区二区三区av性色 | 菠萝蜜视频在线观看一区| 亚洲男人的天堂一区二区| 欧美日韩国产精品成人| 国产精品资源在线看| 综合av第一页| 91精品国产综合久久香蕉的特点| 久久99最新地址|