1    /*******************************************************/
2    /*      "C" Language Integrated Production System      */
3    /*                                                     */
4    /*             CLIPS Version 6.30  08/16/14            */
5    /*                                                     */
6    /*             DEFMODULE PARSER HEADER FILE            */
7    /*******************************************************/
8 
9 /*************************************************************/
10 /* Purpose:                                                  */
11 /*                                                           */
12 /* Principal Programmer(s):                                  */
13 /*      Gary D. Riley                                        */
14 /*                                                           */
15 /* Contributing Programmer(s):                               */
16 /*                                                           */
17 /* Revision History:                                         */
18 /*                                                           */
19 /*      6.24: Renamed BOOLEAN macro type to intBool.         */
20 /*                                                           */
21 /*      6.30: GetConstructNameAndComment API change.         */
22 /*                                                           */
23 /*            Added const qualifiers to remove C++           */
24 /*            deprecation warnings.                          */
25 /*                                                           */
26 /*            Fixed linkage issue when DEFMODULE_CONSTRUCT   */
27 /*            compiler flag is set to 0.                     */
28 /*                                                           */
29 /*************************************************************/
30 
31 #ifndef _H_modulpsr
32 #define _H_modulpsr
33 
34 struct portConstructItem
35   {
36    const char *constructName;
37    int typeExpected;
38    struct portConstructItem *next;
39   };
40 
41 #ifndef _H_symbol
42 #include "symbol.h"
43 #endif
44 #ifndef _H_evaluatn
45 #include "evaluatn.h"
46 #endif
47 #ifndef _H_moduldef
48 #include "moduldef.h"
49 #endif
50 
51 #ifdef LOCALE
52 #undef LOCALE
53 #endif
54 
55 #ifdef _MODULPSR_SOURCE_
56 #define LOCALE
57 #else
58 #define LOCALE extern
59 #endif
60 
61    LOCALE long                           GetNumberOfDefmodules(void *);
62    LOCALE void                           SetNumberOfDefmodules(void *,long);
63    LOCALE void                           AddAfterModuleDefinedFunction(void *,const char *,void (*)(void *),int);
64    LOCALE int                            ParseDefmodule(void *,const char *);
65    LOCALE void                           AddPortConstructItem(void *,const char *,int);
66    LOCALE struct portConstructItem      *ValidPortConstructItem(void *,const char *);
67    LOCALE int                            FindImportExportConflict(void *,const char *,struct defmodule *,const char *);
68 
69 #endif /* _H_modulpsr */
70 
71 
72