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

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

?? watch.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  06/05/06            */   /*                                                     */   /*                    WATCH MODULE                     */   /*******************************************************//*************************************************************//* Purpose: Support functions for the watch and unwatch      *//*   commands.                                               *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Brian Donnell                                        *//*                                                           *//* Revision History:                                         *//*      6.23: Changed name of variable log to logName        *//*            because of Unix compiler warnings of shadowed  *//*            definitions.                                   *//*                                                           *//*      6.24: Renamed BOOLEAN macro type to intBool.         *//*                                                           *//*            Added EnvSetWatchItem function.                *//*                                                           *//*************************************************************/#define _WATCH_SOURCE_#include "setup.h"#if DEBUGGING_FUNCTIONS#include <stdio.h>#define _STDIO_INCLUDED_#include <string.h>#include "constant.h"#include "envrnmnt.h"#include "memalloc.h"#include "router.h"#include "argacces.h"#include "extnfunc.h"#include "watch.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/   static struct watchItem       *ValidWatchItem(void *,char *,int *);   static intBool                 RecognizeWatchRouters(void *,char *);   static int                     CaptureWatchPrints(void *,char *,char *);   static void                    DeallocateWatchData(void *);/**********************************************//* InitializeWatchData: Allocates environment *//*    data for watch items.                   *//**********************************************/globle void InitializeWatchData(  void *theEnv)  {   AllocateEnvironmentData(theEnv,WATCH_DATA,sizeof(struct watchData),DeallocateWatchData);  }  /************************************************//* DeallocateWatchData: Deallocates environment *//*    data for watch items.                     *//************************************************/static void DeallocateWatchData(  void *theEnv)  {   struct watchItem *tmpPtr, *nextPtr;   tmpPtr = WatchData(theEnv)->ListOfWatchItems;   while (tmpPtr != NULL)     {      nextPtr = tmpPtr->next;      rtn_struct(theEnv,watchItem,tmpPtr);      tmpPtr = nextPtr;     }  }/*************************************************************//* AddWatchItem: Adds an item to the list of watchable items *//*   that can be set using the watch and unwatch commands.   *//*   Returns FALSE if the item is already in the list,       *//*   otherwise returns TRUE.                                 *//*************************************************************/globle intBool AddWatchItem(  void *theEnv,  char *name,  int code,  unsigned *flag,  int priority,  unsigned (*accessFunc)(void *,int,unsigned,struct expr *),  unsigned (*printFunc)(void *,char *,int,struct expr *))  {   struct watchItem *newPtr, *currentPtr, *lastPtr;   /*================================================================*/   /* Find the insertion point in the watchable items list to place  */   /* the new item. If the item is already in the list return FALSE. */   /*================================================================*/   for (currentPtr = WatchData(theEnv)->ListOfWatchItems, lastPtr = NULL;        currentPtr != NULL;        currentPtr = currentPtr->next)     {      if (strcmp(currentPtr->name,name) == 0) return(FALSE);      if (priority < currentPtr->priority) lastPtr = currentPtr;     }   /*============================*/   /* Create the new watch item. */   /*============================*/   newPtr = get_struct(theEnv,watchItem);   newPtr->name = name;   newPtr->flag = flag;   newPtr->code = code;   newPtr->priority = priority;   newPtr->accessFunc = accessFunc;   newPtr->printFunc = printFunc;   /*=================================================*/   /* Insert the new item in the list of watch items. */   /*=================================================*/   if (lastPtr == NULL)     {      newPtr->next = WatchData(theEnv)->ListOfWatchItems;      WatchData(theEnv)->ListOfWatchItems = newPtr;     }   else     {      newPtr->next = lastPtr->next;      lastPtr->next = newPtr;     }   /*==================================================*/   /* Return TRUE to indicate the item has been added. */   /*==================================================*/   return(TRUE);  }/*****************************************************//* EnvWatch: C access routine for the watch command. *//*****************************************************/globle intBool EnvWatch(  void *theEnv,  char *itemName)  {   return(EnvSetWatchItem(theEnv,itemName,ON,NULL));  }/*********************************************************//* EnvUnwatch: C access routine for the unwatch command. *//*********************************************************/globle intBool EnvUnwatch(  void *theEnv,  char *itemName)  {   return(EnvSetWatchItem(theEnv,itemName,OFF,NULL));  }/***********************************************************************//* EnvSetWatchItem: Sets the state of a specified watch item to either *//*   on or off. Returns TRUE if the item was set, otherwise FALSE.     *//***********************************************************************/globle int EnvSetWatchItem(  void *theEnv,  char *itemName,  unsigned newState,  struct expr *argExprs)  {   struct watchItem *wPtr;   /*======================================================*/   /* If the new state isn't on or off, then return FALSE. */   /*======================================================*/   if ((newState != ON) && (newState != OFF)) return(FALSE);   /*===================================================*/   /* If the name of the watch item to set is all, then */   /* all watch items are set to the new state and TRUE */   /* is returned.                                      */   /*===================================================*/   if (strcmp(itemName,"all") == 0)     {      for (wPtr = WatchData(theEnv)->ListOfWatchItems; wPtr != NULL; wPtr = wPtr->next)        {         /*==============================================*/         /* If no specific arguments are specified, then */         /* set the global flag for the watch item.      */         /*==============================================*/         if (argExprs == NULL) *(wPtr->flag) = newState;         /*=======================================*/         /* Set flags for individual watch items. */         /*=======================================*/         if ((wPtr->accessFunc == NULL) ? FALSE :             ((*wPtr->accessFunc)(theEnv,wPtr->code,newState,argExprs) == FALSE))           {            SetEvaluationError(theEnv,TRUE);            return(FALSE);           }        }      return(TRUE);     }   /*=================================================*/   /* Search for the watch item to be set in the list */   /* of watch items. If found, set the watch item to */   /* its new state and return TRUE.                  */   /*=================================================*/   for (wPtr = WatchData(theEnv)->ListOfWatchItems; wPtr != NULL; wPtr = wPtr->next)     {      if (strcmp(itemName,wPtr->name) == 0)        {         /*==============================================*/         /* If no specific arguments are specified, then */         /* set the global flag for the watch item.      */         /*==============================================*/         if (argExprs == NULL) *(wPtr->flag) = newState;         /*=======================================*/         /* Set flags for individual watch items. */         /*=======================================*/         if ((wPtr->accessFunc == NULL) ? FALSE :             ((*wPtr->accessFunc)(theEnv,wPtr->code,newState,argExprs) == FALSE))           {            SetEvaluationError(theEnv,TRUE);            return(FALSE);           }         return(TRUE);        }     }   /*=================================================*/   /* If the specified item was not found in the list */   /* of watchable items then return FALSE.           */   /*=================================================*/   return(FALSE);  }/******************************************************************//* EnvGetWatchItem: Gets the current state of the specified watch *//*   item. Returns the state of the watch item (0 for off and 1   *//*   for on) if the watch item is found in the list of watch      *//*   items, otherwise -1 is returned.                             *//******************************************************************/globle int EnvGetWatchItem(  void *theEnv,  char *itemName)  {   struct watchItem *wPtr;   for (wPtr = WatchData(theEnv)->ListOfWatchItems; wPtr != NULL; wPtr = wPtr->next)     {       if (strcmp(itemName,wPtr->name) == 0)         { return((int) *(wPtr->flag)); }     }   return(-1);  }/****************************************************************//* ValidWatchItem: Returns TRUE if the specified name is found  *//*   in the list of watch items, otherwise returns FALSE.       *//****************************************************************/static struct watchItem *ValidWatchItem(  void *theEnv,  char *itemName,  int *recognized)  {   struct watchItem *wPtr;   *recognized = TRUE;   if (strcmp(itemName,"all") == 0)     return(NULL);   for (wPtr = WatchData(theEnv)->ListOfWatchItems; wPtr != NULL; wPtr = wPtr->next)     { if (strcmp(itemName,wPtr->name) == 0) return(wPtr); }   *recognized = FALSE;   return(NULL);  }/*************************************************************//* GetNthWatchName: Returns the name associated with the nth *//*   item in the list of watchable items. If the nth item    *//*   does not exist, then NULL is returned.                  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文无字幕一区二区三区| 中文字幕一区二区三区在线不卡| 成人一区二区三区在线观看| 一区二区三区四区乱视频| 精品av综合导航| 在线看国产一区二区| 国产精品1区二区.| 日韩综合小视频| 亚洲免费观看高清完整版在线 | 久久精品国产澳门| 亚洲精品v日韩精品| 中文字幕免费不卡在线| 91精品国产91久久久久久一区二区| 99视频国产精品| 国产成人在线免费| 国内精品伊人久久久久av一坑| 一区二区三区欧美激情| 久久精品一区二区三区不卡牛牛| 91精品在线免费| 欧美在线播放高清精品| 91原创在线视频| 99久久夜色精品国产网站| 国产精品一区二区91| 久久97超碰色| 精品综合免费视频观看| 日韩国产欧美在线观看| 午夜精品福利久久久| 亚洲综合丝袜美腿| 亚洲激情网站免费观看| 亚洲视频中文字幕| 国产精品久久久99| 国产精品剧情在线亚洲| 国产精品高清亚洲| 亚洲青青青在线视频| 亚洲桃色在线一区| 亚洲色图色小说| 亚洲免费大片在线观看| 亚洲视频一区在线观看| 亚洲视频一区在线| 亚洲精品国产成人久久av盗摄| 亚洲欧美一区二区三区极速播放| 综合激情成人伊人| 亚洲欧美国产毛片在线| 亚洲精品国产高清久久伦理二区| 一区二区三区四区在线播放| 亚洲综合色自拍一区| 亚洲成人激情自拍| 日韩高清不卡一区二区三区| 欧美aaaaaa午夜精品| 免费日本视频一区| 国产一区二区看久久| 国产高清久久久| 99国产麻豆精品| 欧美色网站导航| 制服丝袜亚洲网站| 精品日韩在线观看| 日本一区二区三区dvd视频在线 | 日韩一区日韩二区| 亚洲精品视频在线看| 亚洲国产成人高清精品| 偷窥少妇高潮呻吟av久久免费| 青娱乐精品视频在线| 国产伦精品一区二区三区视频青涩| 成人综合在线观看| 在线观看91视频| 日韩欧美你懂的| 中文字幕高清一区| 亚洲麻豆国产自偷在线| 五月婷婷久久丁香| 国产精品一区免费在线观看| av亚洲精华国产精华精华 | 国产女同性恋一区二区| 亚洲裸体在线观看| 欧美aa在线视频| 成人av第一页| 欧美老肥妇做.爰bbww| 精品国产伦理网| 亚洲欧美激情小说另类| 强制捆绑调教一区二区| 成人一区二区三区中文字幕| 欧美日韩国产成人在线91| 精品免费一区二区三区| 中文字幕人成不卡一区| 日韩精品电影一区亚洲| 国产成人午夜精品5599| 欧美中文字幕不卡| 国产欧美一区视频| 亚洲午夜日本在线观看| 成人午夜在线免费| 欧美一区二区三区小说| ...xxx性欧美| 国产乱码字幕精品高清av| 欧美亚男人的天堂| 久久精品人人做| 石原莉奈在线亚洲二区| 99精品桃花视频在线观看| 欧美成人精品高清在线播放| 又紧又大又爽精品一区二区| 国产精品一二三| 91精品国产福利在线观看| 亚洲色图欧美偷拍| 国产成人av影院| 欧美一区二区性放荡片| 亚洲精品菠萝久久久久久久| 国产999精品久久| 91精品婷婷国产综合久久竹菊| 亚洲精品视频免费看| 国产91精品入口| 久久在线免费观看| 免费观看日韩av| 欧美日韩一二三| 亚洲美女屁股眼交| 国产99久久久精品| 亚洲精品一区二区精华| 天堂在线亚洲视频| 欧美中文字幕一区| 亚洲免费在线看| 不卡的电视剧免费网站有什么| 久久综合国产精品| 麻豆免费看一区二区三区| 4438x成人网最大色成网站| 一区二区三区在线免费| a美女胸又www黄视频久久| 日本一区二区视频在线| 国产精品一区二区视频| 日韩精品一区二区三区在线播放| 日韩精品一二三四| 欧美日韩亚洲综合| 午夜久久久久久| 欧美电影一区二区| 日韩vs国产vs欧美| 91精品久久久久久蜜臀| 日日嗨av一区二区三区四区| 精品视频在线免费观看| 亚洲国产精品影院| 欧美日韩性生活| 日韩av午夜在线观看| 日韩久久久久久| 美国精品在线观看| 久久综合国产精品| 国产高清精品在线| 中文字幕制服丝袜成人av| 99久久国产综合精品女不卡| 亚洲天堂中文字幕| 欧美性三三影院| 日韩高清一级片| www激情久久| 国产福利精品一区| 亚洲同性同志一二三专区| 在线免费观看日本一区| 日韩电影在线免费| 精品精品国产高清a毛片牛牛| 韩国视频一区二区| 国产精品久久久久久亚洲伦| 一本一本久久a久久精品综合麻豆| 一区二区三区精品视频| 欧美一区二区三区在线电影| 国产在线精品一区二区不卡了 | 懂色av中文字幕一区二区三区 | 日韩欧美色电影| 国产成人三级在线观看| 中文字幕制服丝袜成人av| 日本久久一区二区三区| 午夜久久久影院| 久久香蕉国产线看观看99| 99re热视频精品| 图片区日韩欧美亚洲| 精品美女一区二区| 91在线视频在线| 天天综合色天天| 中文字幕成人av| 精品视频免费在线| 国产精品中文字幕日韩精品| 亚洲另类在线视频| 日韩一区二区三区电影在线观看 | 在线观看免费成人| 久久国产尿小便嘘嘘尿| 国产精品久线在线观看| 欧美日韩一级视频| 国产精品一区不卡| 亚洲成人久久影院| 欧美高清在线一区二区| 精品视频一区二区不卡| 风间由美一区二区三区在线观看| 亚洲午夜一二三区视频| 国产日韩欧美电影| 久久久久久久久97黄色工厂| 欧美精品欧美精品系列| 欧美日韩一级片网站| 欧美日韩久久久久久| 777奇米四色成人影色区| 日韩免费看的电影| 国产精品久久久久影院色老大| 亚洲视频在线一区| 久久精品国产久精国产| 色婷婷精品久久二区二区蜜臀av| 中文字幕一区二区三区色视频| 51精品国自产在线| 色琪琪一区二区三区亚洲区| 久久国产人妖系列|