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

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

?? cstrnutl.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  07/01/05            */   /*                                                     */   /*             CONSTRAINT UTILITY MODULE               */   /*******************************************************//*************************************************************//* Purpose: Utility routines for manipulating, initializing, *//*   creating, copying, and comparing constraint records.    *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Brian Donnell                                        *//*                                                           *//* Revision History:                                         *//*      6.24: Added allowed-classes slot facet.              *//*                                                           *//*************************************************************/#define _CSTRNUTL_SOURCE_#include <stdio.h>#define _STDIO_INCLUDED_#include <stdlib.h>#include "setup.h"#include "constant.h"#include "envrnmnt.h"#include "memalloc.h"#include "router.h"#include "extnfunc.h"#include "scanner.h"#include "multifld.h"#include "argacces.h"#include "cstrnutl.h"/************************************************//* GetConstraintRecord: Creates and initializes *//*   the values of a constraint record.         *//************************************************/globle struct constraintRecord *GetConstraintRecord(  void *theEnv)  {   CONSTRAINT_RECORD *constraints;   unsigned i;   constraints = get_struct(theEnv,constraintRecord);   for (i = 0 ; i < sizeof(CONSTRAINT_RECORD) ; i++)     { ((char *) constraints)[i] = '\0'; }   SetAnyAllowedFlags(constraints,TRUE);   constraints->multifieldsAllowed = FALSE;   constraints->singlefieldsAllowed = TRUE;   constraints->anyRestriction = FALSE;   constraints->symbolRestriction = FALSE;   constraints->stringRestriction = FALSE;   constraints->floatRestriction = FALSE;   constraints->integerRestriction = FALSE;   constraints->classRestriction = FALSE;   constraints->instanceNameRestriction = FALSE;   constraints->classList = NULL;   constraints->restrictionList = NULL;   constraints->minValue = GenConstant(theEnv,SYMBOL,SymbolData(theEnv)->NegativeInfinity);   constraints->maxValue = GenConstant(theEnv,SYMBOL,SymbolData(theEnv)->PositiveInfinity);   constraints->minFields = GenConstant(theEnv,INTEGER,SymbolData(theEnv)->Zero);   constraints->maxFields = GenConstant(theEnv,SYMBOL,SymbolData(theEnv)->PositiveInfinity);   constraints->bucket = -1;   constraints->count = 0;   constraints->multifield = NULL;   constraints->next = NULL;   return(constraints);  }/********************************************************//* SetAnyAllowedFlags: Sets the allowed type flags of a *//*   constraint record to allow all types. If passed an *//*   argument of TRUE, just the "any allowed" flag is   *//*   set to TRUE. If passed an argument of FALSE, then  *//*   all of the individual type flags are set to TRUE.  *//********************************************************/globle void SetAnyAllowedFlags(  CONSTRAINT_RECORD *theConstraint,  int justOne)  {   int flag1, flag2;   if (justOne)     {      flag1 = TRUE;      flag2 = FALSE;     }   else     {      flag1 = FALSE;      flag2 = TRUE;     }   theConstraint->anyAllowed = flag1;   theConstraint->symbolsAllowed = flag2;   theConstraint->stringsAllowed = flag2;   theConstraint->floatsAllowed = flag2;   theConstraint->integersAllowed = flag2;   theConstraint->instanceNamesAllowed = flag2;   theConstraint->instanceAddressesAllowed = flag2;   theConstraint->externalAddressesAllowed = flag2;   theConstraint->voidAllowed = flag2;   theConstraint->factAddressesAllowed = flag2;  }/*****************************************************//* CopyConstraintRecord: Copies a constraint record. *//*****************************************************/globle struct constraintRecord *CopyConstraintRecord(  void *theEnv,  CONSTRAINT_RECORD *sourceConstraint)  {   CONSTRAINT_RECORD *theConstraint;   if (sourceConstraint == NULL) return(NULL);   theConstraint = get_struct(theEnv,constraintRecord);   theConstraint->anyAllowed = sourceConstraint->anyAllowed;   theConstraint->symbolsAllowed = sourceConstraint->symbolsAllowed;   theConstraint->stringsAllowed = sourceConstraint->stringsAllowed;   theConstraint->floatsAllowed = sourceConstraint->floatsAllowed;   theConstraint->integersAllowed = sourceConstraint->integersAllowed;   theConstraint->instanceNamesAllowed = sourceConstraint->instanceNamesAllowed;   theConstraint->instanceAddressesAllowed = sourceConstraint->instanceAddressesAllowed;   theConstraint->externalAddressesAllowed = sourceConstraint->externalAddressesAllowed;   theConstraint->voidAllowed = sourceConstraint->voidAllowed;   theConstraint->multifieldsAllowed = sourceConstraint->multifieldsAllowed;   theConstraint->singlefieldsAllowed = sourceConstraint->singlefieldsAllowed;   theConstraint->factAddressesAllowed = sourceConstraint->factAddressesAllowed;   theConstraint->anyRestriction = sourceConstraint->anyRestriction;   theConstraint->symbolRestriction = sourceConstraint->symbolRestriction;   theConstraint->stringRestriction = sourceConstraint->stringRestriction;   theConstraint->floatRestriction = sourceConstraint->floatRestriction;   theConstraint->integerRestriction = sourceConstraint->integerRestriction;   theConstraint->classRestriction = sourceConstraint->classRestriction;   theConstraint->instanceNameRestriction = sourceConstraint->instanceNameRestriction;   theConstraint->classList = CopyExpression(theEnv,sourceConstraint->classList);   theConstraint->restrictionList = CopyExpression(theEnv,sourceConstraint->restrictionList);   theConstraint->minValue = CopyExpression(theEnv,sourceConstraint->minValue);   theConstraint->maxValue = CopyExpression(theEnv,sourceConstraint->maxValue);   theConstraint->minFields = CopyExpression(theEnv,sourceConstraint->minFields);   theConstraint->maxFields = CopyExpression(theEnv,sourceConstraint->maxFields);   theConstraint->bucket = -1;   theConstraint->count = 0;   theConstraint->multifield = CopyConstraintRecord(theEnv,sourceConstraint->multifield);   theConstraint->next = NULL;   return(theConstraint);  }#if (! RUN_TIME) && (! BLOAD_ONLY)/**************************************************************//* SetAnyRestrictionFlags: Sets the restriction type flags of *//*   a constraint record to indicate there are restriction on *//*   all types. If passed an argument of TRUE, just the       *//*   "any restriction" flag is set to TRUE. If passed an      *//*   argument of FALSE, then all of the individual type       *//*   restriction flags are set to TRUE.                       *//**************************************************************/globle void SetAnyRestrictionFlags(  CONSTRAINT_RECORD *theConstraint,  int justOne)  {   int flag1, flag2;   if (justOne)     {      flag1 = TRUE;      flag2 = FALSE;     }   else     {      flag1 = FALSE;      flag2 = TRUE;     }   theConstraint->anyRestriction = flag1;   theConstraint->symbolRestriction = flag2;   theConstraint->stringRestriction = flag2;   theConstraint->floatRestriction = flag2;   theConstraint->integerRestriction = flag2;   theConstraint->instanceNameRestriction = flag2;  }/*****************************************************//* SetConstraintType: Given a constraint type and a  *//*   constraint, sets the allowed type flags for the *//*   specified type in the constraint to TRUE.       *//*****************************************************/globle int SetConstraintType(  int theType,  CONSTRAINT_RECORD *constraints)  {   int rv = TRUE;   switch(theType)     {      case UNKNOWN_VALUE:         rv = constraints->anyAllowed;         constraints->anyAllowed = TRUE;         break;      case SYMBOL:         rv = constraints->symbolsAllowed;         constraints->symbolsAllowed = TRUE;         break;      case STRING:         rv = constraints->stringsAllowed;         constraints->stringsAllowed = TRUE;         break;      case SYMBOL_OR_STRING:         rv = (constraints->stringsAllowed | constraints->symbolsAllowed);         constraints->symbolsAllowed = TRUE;         constraints->stringsAllowed = TRUE;         break;      case INTEGER:         rv = constraints->integersAllowed;         constraints->integersAllowed = TRUE;         break;      case FLOAT:         rv = constraints->floatsAllowed;         constraints->floatsAllowed = TRUE;         break;      case INTEGER_OR_FLOAT:         rv = (constraints->integersAllowed | constraints->floatsAllowed);         constraints->integersAllowed = TRUE;         constraints->floatsAllowed = TRUE;         break;      case INSTANCE_ADDRESS:         rv = constraints->instanceAddressesAllowed;         constraints->instanceAddressesAllowed = TRUE;         break;      case INSTANCE_NAME:         rv = constraints->instanceNamesAllowed;         constraints->instanceNamesAllowed = TRUE;         break;      case INSTANCE_OR_INSTANCE_NAME:         rv = (constraints->instanceNamesAllowed | constraints->instanceAddressesAllowed);         constraints->instanceNamesAllowed = TRUE;         constraints->instanceAddressesAllowed = TRUE;         break;      case EXTERNAL_ADDRESS:         rv = constraints->externalAddressesAllowed;         constraints->externalAddressesAllowed = TRUE;         break;      case RVOID:         rv = constraints->voidAllowed;         constraints->voidAllowed = TRUE;         break;      case FACT_ADDRESS:         rv = constraints->factAddressesAllowed;         constraints->factAddressesAllowed = TRUE;         break;      case MULTIFIELD:         rv = constraints->multifieldsAllowed;         constraints->multifieldsAllowed = TRUE;         break;     }   if (theType != UNKNOWN_VALUE) constraints->anyAllowed = FALSE;   return(rv);  }#endif /* (! RUN_TIME) && (! BLOAD_ONLY) *//*************************************************************//* CompareNumbers: Given two numbers (which can be integers, *//*   floats, or the symbols for positive/negative infinity)  *//*   returns the relationship between the numbers (greater   *//*   than, less than or equal).                              *//*************************************************************/globle int CompareNumbers(  void *theEnv,  int type1,  void *vptr1,  int type2,  void *vptr2)  {   /*============================================*/   /* Handle the situation in which the values   */   /* are exactly equal (same type, same value). */   /*============================================*/   if (vptr1 == vptr2) return(EQUAL);   /*=======================================*/   /* Handle the special cases for positive */   /* and negative infinity.                */   /*=======================================*/   if (vptr1 == SymbolData(theEnv)->PositiveInfinity) return(GREATER_THAN);   if (vptr1 == SymbolData(theEnv)->NegativeInfinity) return(LESS_THAN);   if (vptr2 == SymbolData(theEnv)->PositiveInfinity) return(LESS_THAN);   if (vptr2 == SymbolData(theEnv)->NegativeInfinity) return(GREATER_THAN);   /*=======================*/   /* Compare two integers. */   /*=======================*/   if ((type1 == INTEGER) && (type2 == INTEGER))     {      if (ValueToLong(vptr1) < ValueToLong(vptr2))        { return(LESS_THAN); }      else if (ValueToLong(vptr1) > ValueToLong(vptr2))        { return(GREATER_THAN); }      return(EQUAL);     }   /*=====================*/   /* Compare two floats. */   /*=====================*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲综合色| 日韩一区二区电影| 亚洲国产成人av网| 2020国产精品| 在线观看国产日韩| 成人免费三级在线| 麻豆精品一区二区| 亚洲一区二区在线观看视频| 国产色91在线| 精品日韩欧美在线| 日本高清成人免费播放| 国产精品白丝jk黑袜喷水| 丝袜国产日韩另类美女| 中文字幕在线不卡视频| 久久综合久久99| 在线不卡的av| 91行情网站电视在线观看高清版| 国产成人精品亚洲日本在线桃色| 日本午夜精品一区二区三区电影 | 在线观看成人免费视频| 国产白丝网站精品污在线入口| 日韩精品成人一区二区在线| 一区二区三区影院| 亚洲欧洲日产国码二区| 欧美国产禁国产网站cc| 欧美变态tickle挠乳网站| 欧美视频完全免费看| 日本精品一级二级| 91国偷自产一区二区三区观看| 成人激情视频网站| 国产成a人亚洲| 国产精品一区二区黑丝| 国产麻豆成人传媒免费观看| 狠狠色狠狠色综合日日91app| 日韩和欧美一区二区三区| 一区二区三区日韩精品| 伊人婷婷欧美激情| 亚洲精品久久久蜜桃| 亚洲欧美激情插 | 欧美视频日韩视频| 精品视频一区 二区 三区| 在线观看国产精品网站| 欧美日韩国产bt| 91精品啪在线观看国产60岁| 欧美一区二区在线不卡| 日韩精品一区二区三区视频播放 | 国模一区二区三区白浆 | 99精品在线观看视频| 不卡在线视频中文字幕| 9l国产精品久久久久麻豆| www.亚洲激情.com| 色8久久精品久久久久久蜜| 在线观看av一区二区| 欧美三级在线视频| 欧美一二区视频| 久久一日本道色综合| 国产日韩精品一区二区三区| 亚洲国产高清不卡| 亚洲欧美欧美一区二区三区| 亚洲最快最全在线视频| 亚洲一本大道在线| 久久成人免费电影| 成人自拍视频在线| 91福利社在线观看| 欧美一区二区三区在| 久久久亚洲午夜电影| 亚洲欧美综合色| 亚洲国产成人精品视频| 蜜桃在线一区二区三区| 国产精品99久久久久久宅男| 91蜜桃网址入口| 在线电影一区二区三区| 精品福利视频一区二区三区| 中文字幕日韩av资源站| 日韩精品欧美精品| 国产一区二区女| 色综合久久中文字幕| 欧美肥妇free| 国产精品每日更新在线播放网址| 一区二区三区美女| 国产综合久久久久影院| 色一情一乱一乱一91av| 日韩精品最新网址| 国产欧美日韩另类视频免费观看| 亚洲欧美福利一区二区| 久久精品国产秦先生| 91理论电影在线观看| 日韩视频在线你懂得| 国产精品传媒在线| 免费精品99久久国产综合精品| 从欧美一区二区三区| 欧美一区三区四区| 亚洲最新在线观看| 国产福利一区二区三区视频在线| 欧美日韩色一区| 国产精品免费看片| 午夜精品福利一区二区三区蜜桃| 国产91清纯白嫩初高中在线观看 | 亚洲一二三四久久| 国产很黄免费观看久久| 欧美精品第1页| 国产精品久线在线观看| 久久精工是国产品牌吗| 91片黄在线观看| 精品国产一区二区三区久久影院 | 欧美精品第一页| 亚洲精选视频在线| 成人性生交大片免费看中文网站| 91精品国产色综合久久不卡电影 | 99久久精品国产麻豆演员表| 欧美日韩一区小说| 国产精品久久久久久久久久久免费看| 麻豆精品新av中文字幕| 欧美日韩国产另类不卡| 亚洲精品免费一二三区| 成人网男人的天堂| 久久久久国色av免费看影院| 男男视频亚洲欧美| 欧美三级午夜理伦三级中视频| 国产欧美精品一区aⅴ影院| 久99久精品视频免费观看| 制服丝袜av成人在线看| 亚洲成人福利片| 91国在线观看| 日韩久久一区二区| 9l国产精品久久久久麻豆| 中文字幕av一区二区三区免费看| 国产一区二区三区久久悠悠色av| 日韩免费观看高清完整版在线观看| 亚洲福利视频一区| 日本精品视频一区二区| 亚洲永久免费av| 91久久精品网| 亚洲亚洲精品在线观看| 欧美浪妇xxxx高跟鞋交| 天堂一区二区在线| 欧美一区二区视频在线观看2020| 午夜久久久久久久久久一区二区| 欧美午夜视频网站| 亚洲高清视频在线| 欧美日韩高清一区| 偷窥少妇高潮呻吟av久久免费| 91在线视频在线| 亚洲免费在线观看| 欧美图片一区二区三区| 亚洲成a人v欧美综合天堂下载| 欧美日韩亚洲另类| 天使萌一区二区三区免费观看| 69成人精品免费视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩美女视频一区二区在线观看| 精品一区二区三区免费视频| 精品国产乱码久久久久久浪潮| 国产经典欧美精品| 国产精品毛片大码女人| 91精品办公室少妇高潮对白| 午夜久久久久久| 日韩欧美中文字幕精品| 国产在线视频一区二区| 国产精品护士白丝一区av| 色老汉av一区二区三区| 午夜精品一区二区三区免费视频| 欧美不卡一区二区三区四区| www.日韩大片| 日日噜噜夜夜狠狠视频欧美人 | 亚洲免费在线观看| 91精品国产综合久久香蕉麻豆| 国产一区二区三区在线观看免费视频 | 99久久er热在这里只有精品15| 亚洲综合一区二区三区| 日韩欧美电影一二三| 成人av电影在线| 三级影片在线观看欧美日韩一区二区 | 99国产精品视频免费观看| 亚洲高清中文字幕| 精品国产自在久精品国产| 99久久婷婷国产精品综合| 青青草97国产精品免费观看| 国产精品视频线看| 欧美精品乱码久久久久久按摩 | 欧美视频一区二区在线观看| 日本成人中文字幕在线视频| 欧美激情在线观看视频免费| 欧美日韩国产一级| 国产91在线|亚洲| 亚洲成人午夜影院| 久久精品一区二区三区不卡牛牛| 91福利视频在线| 国产精品1024| 蜜臀av一区二区| 亚洲综合视频网| 国产精品午夜春色av| 日韩女优毛片在线| 欧美亚洲动漫精品| 国产成人av资源| 免费在线观看精品| 亚洲一二三区视频在线观看| 中文乱码免费一区二区| 欧美变态凌虐bdsm| 欧美精品少妇一区二区三区|