/usr/include/clips/msgcom.h is in libclips-dev 6.24-3.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | /*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.20 01/31/02 */
/* */
/* */
/*******************************************************/
/*************************************************************/
/* Purpose: */
/* */
/* Principal Programmer(s): */
/* Brian L. Donnell */
/* */
/* Contributing Programmer(s): */
/* */
/* Revision History: */
/* */
/*************************************************************/
#ifndef _H_msgcom
#define _H_msgcom
#ifndef _H_object
#include "object.h"
#endif
#ifndef _H_msgpass
#include "msgpass.h"
#endif
#define MESSAGE_HANDLER_DATA 32
struct messageHandlerData
{
ENTITY_RECORD HandlerGetInfo;
ENTITY_RECORD HandlerPutInfo;
SYMBOL_HN *INIT_SYMBOL;
SYMBOL_HN *DELETE_SYMBOL;
SYMBOL_HN *CREATE_SYMBOL;
#if DEBUGGING_FUNCTIONS
unsigned WatchHandlers;
unsigned WatchMessages;
#endif
char *hndquals[4];
SYMBOL_HN *SELF_SYMBOL;
SYMBOL_HN *CurrentMessageName;
HANDLER_LINK *CurrentCore;
HANDLER_LINK *TopOfCore;
HANDLER_LINK *NextInCore;
};
#define MessageHandlerData(theEnv) ((struct messageHandlerData *) GetEnvironmentData(theEnv,MESSAGE_HANDLER_DATA))
#ifdef LOCALE
#undef LOCALE
#endif
#ifdef _MSGCOM_SOURCE_
#define LOCALE
#else
#define LOCALE extern
#endif
#define INIT_STRING "init"
#define DELETE_STRING "delete"
#define PRINT_STRING "print"
#define CREATE_STRING "create"
#if ENVIRONMENT_API_ONLY
#define FindDefmessageHandler(theEnv,a,b,c) EnvFindDefmessageHandler(theEnv,a,b,c)
#define GetDefmessageHandlerName(theEnv,a,b) EnvGetDefmessageHandlerName(theEnv,a,b)
#define GetDefmessageHandlerPPForm(theEnv,a,b) EnvGetDefmessageHandlerPPForm(theEnv,a,b)
#define GetDefmessageHandlerType(theEnv,a,b) EnvGetDefmessageHandlerType(theEnv,a,b)
#define GetDefmessageHandlerWatch(theEnv,a,b) EnvGetDefmessageHandlerWatch(theEnv,a,b)
#define GetNextDefmessageHandler(theEnv,a,b) EnvGetNextDefmessageHandler(theEnv,a,b)
#define IsDefmessageHandlerDeletable(theEnv,a,b) EnvIsDefmessageHandlerDeletable(theEnv,a,b)
#define ListDefmessageHandlers(theEnv,a,b,c) EnvListDefmessageHandler(theEnv,a,b,c)
#define PreviewSend(theEnv,a,b,c) EnvPreviewSend(theEnv,a,b,c)
#define SetDefmessageHandlerWatch(theEnv,a,b,c) EnvSetDefmessageHandlerWatch(theEnv,a,b,c)
#define UndefmessageHandler(theEnv,a,b) EnvUndefmessageHandler(theEnv,a,b)
#else
#define FindDefmessageHandler(a,b,c) EnvFindDefmessageHandler(GetCurrentEnvironment(),a,b,c)
#define GetDefmessageHandlerName(a,b) EnvGetDefmessageHandlerName(GetCurrentEnvironment(),a,b)
#define GetDefmessageHandlerPPForm(a,b) EnvGetDefmessageHandlerPPForm(GetCurrentEnvironment(),a,b)
#define GetDefmessageHandlerType(a,b) EnvGetDefmessageHandlerType(GetCurrentEnvironment(),a,b)
#define GetDefmessageHandlerWatch(a,b) EnvGetDefmessageHandlerWatch(GetCurrentEnvironment(),a,b)
#define GetNextDefmessageHandler(a,b) EnvGetNextDefmessageHandler(GetCurrentEnvironment(),a,b)
#define IsDefmessageHandlerDeletable(a,b) EnvIsDefmessageHandlerDeletable(GetCurrentEnvironment(),a,b)
#define ListDefmessageHandlers(a,b,c) EnvListDefmessageHandlers(GetCurrentEnvironment(),a,b,c)
#define PreviewSend(a,b,c) EnvPreviewSend(GetCurrentEnvironment(),a,b,c)
#define SetDefmessageHandlerWatch(a,b,c) EnvSetDefmessageHandlerWatch(GetCurrentEnvironment(),a,b,c)
#define UndefmessageHandler(a,b) EnvUndefmessageHandler(GetCurrentEnvironment(),a,b)
#endif
LOCALE void SetupMessageHandlers(void *);
LOCALE char *EnvGetDefmessageHandlerName(void *,void *,unsigned);
LOCALE char *EnvGetDefmessageHandlerType(void *,void *,unsigned);
LOCALE unsigned EnvGetNextDefmessageHandler(void *,void *,unsigned);
LOCALE HANDLER *GetDefmessageHandlerPointer(void *,unsigned);
#if DEBUGGING_FUNCTIONS
LOCALE unsigned EnvGetDefmessageHandlerWatch(void *,void *,unsigned);
LOCALE void EnvSetDefmessageHandlerWatch(void *,int,void *,unsigned);
#endif
LOCALE unsigned EnvFindDefmessageHandler(void *,void *,char *,char *);
LOCALE int EnvIsDefmessageHandlerDeletable(void *,void *,unsigned);
LOCALE void UndefmessageHandlerCommand(void *);
LOCALE int EnvUndefmessageHandler(void *,void *,unsigned);
#if DEBUGGING_FUNCTIONS
LOCALE void PPDefmessageHandlerCommand(void *);
LOCALE void ListDefmessageHandlersCommand(void *);
LOCALE void PreviewSendCommand(void *);
LOCALE char *EnvGetDefmessageHandlerPPForm(void *,void *,unsigned);
LOCALE void EnvListDefmessageHandlers(void *,char *,void *,int);
LOCALE void EnvPreviewSend(void *,char *,void *,char *);
LOCALE long DisplayHandlersInLinks(void *,char *,PACKED_CLASS_LINKS *,unsigned);
#endif
#endif
|