⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cstrnchk.h

📁 clips源代码
💻 H
字号:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  07/01/05            */   /*                                                     */   /*            CONSTRAINT CHECKING HEADER FILE          */   /*******************************************************//*************************************************************//* Purpose: Provides functions for constraint checking of    *//*   data types.                                             *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*      6.24: Added allowed-classes slot facet.              *//*                                                           *//*            Renamed BOOLEAN macro type to intBool.         *//*                                                           *//*************************************************************/#ifndef _H_cstrnchk#define _H_cstrnchk#ifndef _H_constrnt#include "constrnt.h"#endif#ifndef _H_evaluatn#include "evaluatn.h"#endif#ifdef LOCALE#undef LOCALE#endif#ifdef _CSTRNCHK_SOURCE_#define LOCALE#else#define LOCALE extern#endif#define NO_VIOLATION                    0#define TYPE_VIOLATION                  1#define RANGE_VIOLATION                 2#define ALLOWED_VALUES_VIOLATION        3#define FUNCTION_RETURN_TYPE_VIOLATION  4#define CARDINALITY_VIOLATION           5#define ALLOWED_CLASSES_VIOLATION       6   LOCALE intBool                        CheckCardinalityConstraint(void *,long,CONSTRAINT_RECORD *);   LOCALE intBool                        CheckAllowedValuesConstraint(int,void *,CONSTRAINT_RECORD *);   LOCALE intBool                        CheckAllowedClassesConstraint(void *,int,void *,CONSTRAINT_RECORD *);   LOCALE int                            ConstraintCheckExpressionChain(void *,struct expr *,                                                                     CONSTRAINT_RECORD *);   LOCALE void                           ConstraintViolationErrorMessage(void *,char *,char *,int,int,                                                                      struct symbolHashNode *,                                                                      int,int,CONSTRAINT_RECORD *,                                                                      int);   LOCALE int                            ConstraintCheckValue(void *,int,void *,CONSTRAINT_RECORD *);   LOCALE int                            ConstraintCheckDataObject(void *,DATA_OBJECT *,CONSTRAINT_RECORD *);#if (! BLOAD_ONLY) && (! RUN_TIME)   LOCALE int                            ConstraintCheckExpression(void *,struct expr *,                                                                CONSTRAINT_RECORD *);#endif#if (! RUN_TIME)   LOCALE intBool                        UnmatchableConstraint(struct constraintRecord *);#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -