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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? prccode.c

?? clips源代碼
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*               CLIPS Version 6.24  06/05/06          */   /*                                                     */   /*                                                     */   /*******************************************************//***************************************************************//* Purpose: Procedural Code Support Routines for Deffunctions, *//*          Generic Function Methods,Message-Handlers          *//*          and Rules                                          *//*                                                             *//* Principal Programmer(s):                                    *//*      Brian L. Donnell                                       *//*                                                             *//* Contributing Programmer(s):                                 *//*                                                             *//* Revision History:                                           *//*      6.23: Correction for FalseSymbol/TrueSymbol. DR0859    *//*                                                             *//*            Changed name of variable log to logName          *//*            because of Unix compiler warnings of shadowed    *//*            definitions.                                     *//*                                                             *//*      6.24: Renamed BOOLEAN macro type to intBool.           *//*                                                             *//*            Added pragmas to remove compilation warnings.    *//*                                                             *//***************************************************************//* =========================================   *****************************************               EXTERNAL DEFINITIONS   =========================================   ***************************************** */#include "setup.h"#ifndef _STDIO_INCLUDED_#include <stdio.h>#define _STDIO_INCLUDED_#endif#include <stdlib.h>#include <ctype.h>#include "memalloc.h"#include "constant.h"#include "envrnmnt.h"#if DEFGLOBAL_CONSTRUCT#include "globlpsr.h"#endif#include "exprnpsr.h"#include "multifld.h"#if OBJECT_SYSTEM#include "object.h"#endif#include "prcdrpsr.h"#include "router.h"#include "utility.h"#define _PRCCODE_SOURCE_#include "prccode.h"/* =========================================   *****************************************               MACROS AND TYPES   =========================================   ***************************************** */typedef struct  {   unsigned firstFlag  : 1;   unsigned first      : 15;   unsigned secondFlag : 1;   unsigned second     : 15;  } PACKED_PROC_VAR;/* =========================================   *****************************************      INTERNALLY VISIBLE FUNCTION HEADERS   =========================================   ***************************************** */static void EvaluateProcParameters(void *,EXPRESSION *,int,char *,char *);static intBool RtnProcParam(void *,void *,DATA_OBJECT *);static intBool GetProcBind(void *,void *,DATA_OBJECT *);static intBool PutProcBind(void *,void *,DATA_OBJECT *);static intBool RtnProcWild(void *,void *,DATA_OBJECT *);static void DeallocateProceduralPrimitiveData(void *);static void ReleaseProcParameters(void *);#if (! BLOAD_ONLY) && (! RUN_TIME)static int FindProcParameter(SYMBOL_HN *,EXPRESSION *,SYMBOL_HN *);static int ReplaceProcBinds(void *,EXPRESSION *,                             int (*)(void *,EXPRESSION *,void *),void *);static EXPRESSION *CompactActions(void *,EXPRESSION *);#endif#if (! DEFFUNCTION_CONSTRUCT) || (! DEFGENERIC_CONSTRUCT)static intBool EvaluateBadCall(void *,void *,DATA_OBJECT *);#endif/* =========================================   *****************************************          EXTERNALLY VISIBLE FUNCTIONS   =========================================   ***************************************** *//****************************************************  NAME         : InstallProcedurePrimitives  DESCRIPTION  : Installs primitive function handlers                 for accessing parameters and local                 variables within the bodies of                 message-handlers, methods, rules and                 deffunctions.  INPUTS       : None  RETURNS      : Nothing useful  SIDE EFFECTS : Primitive entities installed  NOTES        : None ****************************************************/globle void InstallProcedurePrimitives(  void *theEnv)  {   ENTITY_RECORD procParameterInfo = { "PROC_PARAM", PROC_PARAM,0,1,0,NULL,NULL,NULL,                                           RtnProcParam,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL },                     procWildInfo =      { "PROC_WILD_PARAM", PROC_WILD_PARAM,0,1,0,NULL,NULL,NULL,                                           RtnProcWild,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL },                     procGetInfo =       { "PROC_GET_BIND", PROC_GET_BIND,0,1,0,NULL,NULL,NULL,                                           GetProcBind,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL },                     procBindInfo =      { "PROC_BIND", PROC_BIND,0,1,0,NULL,NULL,NULL,                                           PutProcBind,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };#if ! DEFFUNCTION_CONSTRUCT   ENTITY_RECORD deffunctionEntityRecord =                     { "PCALL", PCALL,0,0,1,                       NULL,NULL,NULL,                       EvaluateBadCall,                       NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };#endif#if ! DEFGENERIC_CONSTRUCT   ENTITY_RECORD genericEntityRecord =                     { "GCALL", GCALL,0,0,1,                       NULL,NULL,NULL,                       EvaluateBadCall,                       NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };#endif   AllocateEnvironmentData(theEnv,PROCEDURAL_PRIMITIVE_DATA,sizeof(struct proceduralPrimitiveData),DeallocateProceduralPrimitiveData);   memcpy(&ProceduralPrimitiveData(theEnv)->ProcParameterInfo,&procParameterInfo,sizeof(struct entityRecord));     memcpy(&ProceduralPrimitiveData(theEnv)->ProcWildInfo,&procWildInfo,sizeof(struct entityRecord));     memcpy(&ProceduralPrimitiveData(theEnv)->ProcGetInfo,&procGetInfo,sizeof(struct entityRecord));     memcpy(&ProceduralPrimitiveData(theEnv)->ProcBindInfo,&procBindInfo,sizeof(struct entityRecord));     InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->ProcParameterInfo,PROC_PARAM);   InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->ProcWildInfo,PROC_WILD_PARAM);   InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->ProcGetInfo,PROC_GET_BIND);   InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->ProcBindInfo,PROC_BIND);   ProceduralPrimitiveData(theEnv)->Oldindex = -1;      /* ===============================================      Make sure a default evaluation function is      in place for deffunctions and generic functions      in the event that a binary image containing      these items is loaded into a configuration      that does not support them.      =============================================== */#if ! DEFFUNCTION_CONSTRUCT   memcpy(&ProceduralPrimitiveData(theEnv)->DeffunctionEntityRecord,&deffunctionEntityRecord,sizeof(struct entityRecord));     InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->DeffunctionEntityRecord,PCALL);#endif#if ! DEFGENERIC_CONSTRUCT   memcpy(&ProceduralPrimitiveData(theEnv)->GenericEntityRecord,&genericEntityRecord,sizeof(struct entityRecord));     InstallPrimitive(theEnv,&ProceduralPrimitiveData(theEnv)->GenericEntityRecord,GCALL);#endif   /* =============================================      Install the special empty multifield to      let callers distinguish between no parameters      and zero-length multifield parameters      ============================================= */   ProceduralPrimitiveData(theEnv)->NoParamValue = CreateMultifield2(theEnv,0L);   MultifieldInstall(theEnv,(MULTIFIELD_PTR) ProceduralPrimitiveData(theEnv)->NoParamValue);  }/**************************************************************//* DeallocateProceduralPrimitiveData: Deallocates environment *//*    data for the procedural primitives functionality.       *//**************************************************************/static void DeallocateProceduralPrimitiveData(  void *theEnv)  {   ReturnMultifield(theEnv,(struct multifield *) ProceduralPrimitiveData(theEnv)->NoParamValue);   ReleaseProcParameters(theEnv);  }#if (! BLOAD_ONLY) && (! RUN_TIME)#if DEFFUNCTION_CONSTRUCT || OBJECT_SYSTEM/************************************************************  NAME         : ParseProcParameters  DESCRIPTION  : Parses a parameter list for a                  procedural routine, such as a                  deffunction or message-handler  INPUTS       : 1) The logical name of the input                 2) A buffer for scanned tokens                 3) The partial list of parameters so far                    (can be NULL)                 3) A buffer for a wildcard symbol (if any)                 4) A buffer for a minimum of parameters                 5) A buffer for a maximum of parameters                    (will be set to -1 if there is a wilcard)                 6) A buffer for an error flag                 7) The address of a function to do specialized                    checking on a parameter (can be NULL)                    The function should accept a string and                    return FALSE if the parameter is OK, TRUE                    otherwise.  RETURNS      : A list of expressions containing the                   parameter names  SIDE EFFECTS : Parameters parsed and expressions formed  NOTES        : None ************************************************************/globle EXPRESSION *ParseProcParameters(  void *theEnv,  char *readSource,  struct token *tkn,  EXPRESSION *parameterList,  SYMBOL_HN **wildcard,  int *min,  int *max,  int *error,  int (*checkfunc)(void *,char *))  {   EXPRESSION *nextOne,*lastOne,*check;   int paramprintp = 0;   *wildcard = NULL;   *min = 0;   *error = TRUE;   lastOne = nextOne = parameterList;   while (nextOne != NULL)     {      (*min)++;      lastOne = nextOne;      nextOne = nextOne->nextArg;     }   if (tkn->type != LPAREN)     {      SyntaxErrorMessage(theEnv,"parameter list");      ReturnExpression(theEnv,parameterList);      return(NULL);     }   GetToken(theEnv,readSource,tkn);   while ((tkn->type == SF_VARIABLE) || (tkn->type == MF_VARIABLE))     {      for (check = parameterList ; check != NULL ; check = check->nextArg)        if (check->value == tkn->value)         {          PrintErrorID(theEnv,"PRCCODE",7,FALSE);          EnvPrintRouter(theEnv,WERROR,"Duplicate parameter names not allowed.\n");          ReturnExpression(theEnv,parameterList);          return(NULL);         }      if (*wildcard != NULL)        {         PrintErrorID(theEnv,"PRCCODE",8,FALSE);         EnvPrintRouter(theEnv,WERROR,"No parameters allowed after wildcard parameter.\n");         ReturnExpression(theEnv,parameterList);         return(NULL);        }      if ((checkfunc != NULL) ? (*checkfunc)(theEnv,ValueToString(tkn->value)) : FALSE)        {         ReturnExpression(theEnv,parameterList);         return(NULL);        }      nextOne = GenConstant(theEnv,tkn->type,tkn->value);      if (tkn->type == MF_VARIABLE)        *wildcard = (SYMBOL_HN *) tkn->value;      else        (*min)++;      if (lastOne == NULL)        { parameterList = nextOne; }      else        { lastOne->nextArg = nextOne; }      lastOne = nextOne;      SavePPBuffer(theEnv," ");      paramprintp = 1;      GetToken(theEnv,readSource,tkn);     }   if (tkn->type != RPAREN)     {      SyntaxErrorMessage(theEnv,"parameter list");      ReturnExpression(theEnv,parameterList);      return(NULL);     }   if (paramprintp)     {      PPBackup(theEnv);      PPBackup(theEnv);      SavePPBuffer(theEnv,")");     }   *error = FALSE;   *max = (*wildcard != NULL) ? -1 : *min;   return(parameterList);  }#endif/*************************************************************************  NAME         : ParseProcActions  DESCRIPTION  : Parses the bodies of deffunctions, generic function                 methods and message-handlers.  Replaces parameter                 and local variable references with appropriate                 runtime access functions  INPUTS       : 1) The type of procedure body being parsed                 2) The logical name of the input                 3) A buffer for scanned tokens                 4) A list of expressions containing the names                    of the parameters                 5) The wilcard parameter symbol (NULL if none)                 6) A pointer to a function to parse variables not                    recognized by the standard parser                    The function should accept the variable                    expression and a generic pointer for special                    data (can be NULL) as arguments.  If the variable                    is recognized, the function should modify the                    expression to access this variable.  Return 1                    if recognized, 0 if not, -1 on errors                    This argument can be NULL.                 7) A pointer to a function to handle binds in a                    special way. The function should accept the                    bind function call expression as an argument.                    If the variable is recognized and treated specially,                    the function should modify the expression                    appropriately (including attaching/removing                    any necessary argument expressions).  Return 1                    if recognized, 0 if not, -1 on errors.                    This argument can be NULL.                 8) A buffer for holding the number of local vars                    used by this procedure body.                 9) Special user data buffer to pass to variable                    reference and bind replacement functionsRETURNS      : A packed expression containing the body, NULL on                   errors.SIDE EFFECTS : Variable references replaced with runtime calls                  to access the paramter and local variable arrayNOTES        : None*************************************************************************/globle EXPRESSION *ParseProcActions(  void *theEnv,  char *bodytype,  char *readSource,  struct token *tkn,  EXPRESSION *params,  SYMBOL_HN *wildcard,

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
理论片日本一区| 成人午夜在线免费| 国产高清不卡二三区| 99久久99久久精品免费观看| 欧美精品亚洲二区| 中文字幕一区二| 韩国中文字幕2020精品| 日本韩国欧美一区二区三区| 久久久一区二区三区| 五月激情丁香一区二区三区| 91麻豆国产精品久久| 欧美大片免费久久精品三p| 亚洲最新视频在线播放| 成人综合激情网| 精品国产三级电影在线观看| 午夜免费欧美电影| 一本到不卡免费一区二区| 久久久久久久久久看片| 日韩经典一区二区| 欧美色区777第一页| 国产精品久久久久aaaa| 国产大片一区二区| 欧美精品一区二区三区在线 | 欧美精品一区二区三区在线| 亚洲香蕉伊在人在线观| 色婷婷国产精品综合在线观看| 中文字幕 久热精品 视频在线| 精品一区二区三区欧美| 日韩欧美国产三级| 免费在线观看一区二区三区| 欧美伦理视频网站| 婷婷久久综合九色国产成人 | 91美女在线看| 日韩美女视频19| av亚洲精华国产精华精华 | 国产成人啪免费观看软件| 26uuu国产日韩综合| 秋霞影院一区二区| 欧美一a一片一级一片| 亚洲一区二区3| 欧美色电影在线| 亚洲bt欧美bt精品777| 69堂国产成人免费视频| 午夜精品久久久| 91精品国产入口| 日本亚洲视频在线| 欧美精品一区二区三区四区 | 丝袜美腿亚洲一区| 日韩欧美国产高清| 国产成a人无v码亚洲福利| 久久新电视剧免费观看| 成人免费视频国产在线观看| 国产精品久线在线观看| 精品视频资源站| 免费久久精品视频| 精品久久一二三区| 北岛玲一区二区三区四区| 一区二区三区在线视频观看| 91久久精品一区二区三| 午夜精品一区二区三区免费视频| 91精品国产综合久久精品| 国产一区二区在线电影| 中文字幕字幕中文在线中不卡视频| 欧美在线色视频| 国产在线日韩欧美| 亚洲人成人一区二区在线观看| 欧美日韩精品欧美日韩精品| 国产一区二区网址| 亚洲伊人色欲综合网| 久久新电视剧免费观看| 日本丰满少妇一区二区三区| 美女网站在线免费欧美精品| 亚洲三级电影网站| 精品国产亚洲在线| 欧美羞羞免费网站| 国产精品自在在线| 调教+趴+乳夹+国产+精品| 久久精品夜色噜噜亚洲aⅴ| 欧美在线免费视屏| 丁香一区二区三区| 日本一不卡视频| 亚洲美女少妇撒尿| 久久综合av免费| 欧美精品久久久久久久久老牛影院| 国产精品综合一区二区| 亚洲第一主播视频| 中文字幕一区二区三区在线播放 | 亚洲手机成人高清视频| 欧美一级午夜免费电影| 91美女视频网站| 豆国产96在线|亚洲| 蜜桃在线一区二区三区| 一区二区三区美女| 国产精品久久网站| 久久久一区二区| 日韩欧美成人激情| 欧美肥妇free| 欧美亚州韩日在线看免费版国语版| av电影在线观看一区| 国产98色在线|日韩| 蜜桃精品视频在线| 日韩福利视频导航| 爽爽淫人综合网网站| 亚洲一区在线视频观看| 亚洲免费在线观看视频| 国产精品三级在线观看| 久久综合网色—综合色88| 欧美一区二区三区成人| 欧美日韩第一区日日骚| 欧美私人免费视频| 91亚洲永久精品| eeuss鲁片一区二区三区在线看| 国产一区二区三区最好精华液| 裸体一区二区三区| 日韩 欧美一区二区三区| 亚洲成人免费影院| 亚洲国产一区二区三区青草影视 | 中文字幕av资源一区| 亚洲天堂免费看| 在线视频综合导航| 色婷婷精品久久二区二区蜜臀av| 91在线无精精品入口| 91福利在线导航| 成人白浆超碰人人人人| 成人精品视频一区| 99久久精品国产一区| 99视频在线观看一区三区| 国产成+人+日韩+欧美+亚洲| 成人不卡免费av| 日本高清不卡aⅴ免费网站| 在线看不卡av| 欧美一区二区免费| 日韩欧美激情四射| 久久一留热品黄| 国产欧美在线观看一区| 亚洲欧美一区二区视频| 亚洲综合免费观看高清在线观看| 日韩国产在线一| 国产精品一区2区| 一本在线高清不卡dvd| 欧美日韩精品欧美日韩精品| 欧美精品一区二区三区在线播放 | 欧美日韩成人综合| 欧美一区二区三区在线观看| 欧美大片在线观看一区二区| 国产三级精品在线| 亚洲影院理伦片| 国产毛片精品视频| 91丝袜国产在线播放| 欧美人妇做爰xxxⅹ性高电影| 久久久www成人免费毛片麻豆| 亚洲人午夜精品天堂一二香蕉| 视频一区中文字幕| 成人av影视在线观看| 91精品国产高清一区二区三区| 日本一区二区三区免费乱视频| 一区二区三区在线影院| 激情图片小说一区| 色噜噜久久综合| 久久综合久久久久88| 亚洲曰韩产成在线| 国产精品99久久久久久有的能看 | 日韩三级视频中文字幕| 国产精品久久福利| 午夜精品久久久久久久99樱桃| 国产精品99久久久久久久vr| 欧洲精品一区二区| 中文在线一区二区| 激情伊人五月天久久综合| 欧美在线你懂的| 一区二区三区资源| 国产成人av自拍| 日韩免费视频一区二区| 亚洲午夜久久久久| 国产69精品久久久久777| 欧美一区二区美女| 午夜久久久影院| 在线中文字幕一区| 中文字幕av资源一区| 国产在线日韩欧美| 欧美一级欧美一级在线播放| 亚洲免费色视频| 成人激情动漫在线观看| 久久综合狠狠综合久久综合88 | 欧美日韩不卡在线| 亚洲裸体xxx| 9人人澡人人爽人人精品| www久久久久| 国内外成人在线| 精品免费国产二区三区 | 一区二区国产视频| gogo大胆日本视频一区| 欧美激情一区不卡| 国产激情91久久精品导航| 2欧美一区二区三区在线观看视频| 日本美女一区二区| 91麻豆精品国产自产在线观看一区 | 91麻豆精品国产91久久久资源速度| 亚洲午夜av在线| 欧美精品视频www在线观看|