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

📄 utility.h

📁 NASA 开发使用的一个专家系统
💻 H
字号:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.05  04/09/97            */   /*                                                     */   /*                 UTILITY HEADER FILE                 */   /*******************************************************//*************************************************************//* Purpose: Provides a set of utility functions useful to    *//*   other modules. Primarily these are the functions for    *//*   handling periodic garbage collection and appending      *//*   string data.                                            *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#ifndef _H_utility#define _H_utility#ifdef LOCALE#undef LOCALE#endifstruct callFunctionItem  {   char *name;   VOID (*func)(VOID_ARG);   int priority;   struct callFunctionItem *next;  };  #ifdef _UTILITY_SOURCE_#define LOCALE#else#define LOCALE extern#endif#if ANSI_COMPILER     LOCALE VOID                           PeriodicCleanup(BOOLEAN,BOOLEAN);   LOCALE BOOLEAN                        AddCleanupFunction(char *,VOID (*)(void),int);   LOCALE BOOLEAN                        AddPeriodicFunction(char *,VOID (*)(void),int);   LOCALE BOOLEAN                        RemoveCleanupFunction(char *);   LOCALE BOOLEAN                        RemovePeriodicFunction(char *);   LOCALE char                          *AppendStrings(char *,char *);   LOCALE char                          *StringPrintForm(char *);   LOCALE char                          *AppendToString(char *,char *,int *,int *);   LOCALE char                          *AppendNToString(char *,char *,int,int *,int *);   LOCALE char                          *ExpandStringWithChar(int,char *,int *,int *,int);   LOCALE struct callFunctionItem       *AddFunctionToCallList(char *,int,VOID (*)(void),                                                               struct callFunctionItem *);   LOCALE struct callFunctionItem       *RemoveFunctionFromCallList(char *,                                                             struct callFunctionItem *,                                                             int *);   LOCALE void                           YieldTime(void);#else    LOCALE VOID                           PeriodicCleanup();   LOCALE BOOLEAN                        AddCleanupFunction();   LOCALE BOOLEAN                        AddPeriodicFunction();   LOCALE BOOLEAN                        RemoveCleanupFunction();   LOCALE BOOLEAN                        RemovePeriodicFunction();   LOCALE char                          *AppendStrings();   LOCALE char                          *StringPrintForm();   LOCALE char                          *AppendToString();   LOCALE char                          *AppendNToString();   LOCALE char                          *ExpandStringWithChar();   LOCALE struct callFunctionItem       *AddFunctionToCallList();   LOCALE struct callFunctionItem       *RemoveFunctionFromCallList();   LOCALE void                           YieldTime();#endif #ifndef _UTILITY_SOURCE_   extern unsigned long               EphemeralItemCount;   extern unsigned long               EphemeralItemSize;#if ANSI_COMPILER   extern VOID                      (*YieldTimeFunction)(void);#else   extern VOID                      (*YieldTimeFunction)();#endif#endif#endif

⌨️ 快捷键说明

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