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

📄 msgfun.h

📁 NASA 开发使用的一个专家系统
💻 H
字号:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*               CLIPS Version 6.05  04/09/97          */   /*                                                     */   /*                                                     */   /*******************************************************//*************************************************************//* Purpose: Message-passing support functions                *//*                                                           *//* Principal Programmer(s):                                  *//*      Brian L. Donnell                                     *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#ifndef _H_msgfun#define _H_msgfuntypedef struct handlerSlotReference  {   unsigned short classID;   unsigned slotID;  } HANDLER_SLOT_REFERENCE;#ifndef _H_object#include "object.h"#endif#include "msgpass.h"#define BEGIN_TRACE ">>"#define END_TRACE   "<<"/* =================================================================================   Message-handler types - don't change these values: a string array depends on them   ================================================================================= */#define MAROUND        0#define MBEFORE        1#define MPRIMARY       2#define MAFTER         3#define MERROR         4#define LOOKUP_HANDLER_INDEX   0#define LOOKUP_HANDLER_ADDRESS 1#ifdef LOCALE#undef LOCALE#endif#ifdef _MSGFUN_SOURCE_#define LOCALE#else#define LOCALE extern#endif#if ANSI_COMPILERLOCALE VOID UnboundHandlerErr(void);LOCALE VOID PrintNoHandlerError(char *);LOCALE int CheckHandlerArgCount(void);LOCALE VOID SlotAccessViolationError(char *,BOOLEAN,VOID *);LOCALE VOID SlotVisibilityViolationError(SLOT_DESC *,DEFCLASS *);#if ! RUN_TIMELOCALE VOID NewSystemHandler(char *,char *,char *,int);LOCALE HANDLER *InsertHandlerHeader(DEFCLASS *,SYMBOL_HN *,int);#endif#if (! BLOAD_ONLY) && (! RUN_TIME)LOCALE HANDLER *NewHandler(void);LOCALE int HandlersExecuting(DEFCLASS *);LOCALE int DeleteHandler(DEFCLASS *,SYMBOL_HN *,int,int);LOCALE VOID DeallocateMarkedHandlers(DEFCLASS *);#endifLOCALE int HandlerType(char *,char *);LOCALE int CheckCurrentMessage(char *,int);LOCALE VOID PrintHandler(char *,HANDLER *,int);LOCALE HANDLER *FindHandlerByAddress(DEFCLASS *,SYMBOL_HN *,unsigned);LOCALE int FindHandlerByIndex(DEFCLASS *,SYMBOL_HN *,unsigned);LOCALE int FindHandlerNameGroup(DEFCLASS *,SYMBOL_HN *);LOCALE VOID HandlerDeleteError(char *);#if DEBUGGING_FUNCTIONSLOCALE VOID DisplayCore(char *,HANDLER_LINK *,int);LOCALE HANDLER_LINK *FindPreviewApplicableHandlers(DEFCLASS *,SYMBOL_HN *);LOCALE VOID WatchMessage(char *,char *);LOCALE VOID WatchHandler(char *,HANDLER_LINK *,char *);#endif#elseLOCALE VOID UnboundHandlerErr();LOCALE VOID PrintNoHandlerError();LOCALE int CheckHandlerArgCount();LOCALE VOID SlotAccessViolationError();LOCALE VOID SlotVisibilityViolationError();#if ! RUN_TIMELOCALE VOID NewSystemHandler();LOCALE HANDLER *InsertHandlerHeader();#endif#if (! BLOAD_ONLY) && (! RUN_TIME)LOCALE HANDLER *NewHandler();LOCALE int HandlersExecuting();LOCALE int DeleteHandler();LOCALE VOID DeallocateMarkedHandlers();#endifLOCALE int HandlerType();LOCALE int CheckCurrentMessage();LOCALE VOID PrintHandler();LOCALE HANDLER *FindHandlerByAddress();LOCALE int FindHandlerByIndex();LOCALE int FindHandlerNameGroup();LOCALE VOID HandlerDeleteError();#if DEBUGGING_FUNCTIONSLOCALE VOID DisplayCore();LOCALE HANDLER_LINK *FindPreviewApplicableHandlers();LOCALE VOID WatchMessage();LOCALE VOID WatchHandler();#endif#endif      #ifndef _MSGFUN_SOURCE_extern SYMBOL_HN *INIT_SYMBOL,*DELETE_SYMBOL;extern char *hndquals[];#if DEBUGGING_FUNCTIONSextern int WatchHandlers,WatchMessages;#endif#endif#endif

⌨️ 快捷键说明

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