summaryrefslogtreecommitdiff
path: root/src/conscomp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/conscomp.h')
-rw-r--r--src/conscomp.h63
1 files changed, 49 insertions, 14 deletions
diff --git a/src/conscomp.h b/src/conscomp.h
index bbd7e87..153d569 100644
--- a/src/conscomp.h
+++ b/src/conscomp.h
@@ -1,7 +1,7 @@
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
- /* CLIPS Version 6.24 06/05/06 */
+ /* CLIPS Version 6.30 08/16/14 */
/* */
/* CONSTRUCT COMPILER HEADER FILE */
/*******************************************************/
@@ -16,7 +16,38 @@
/* */
/* Revision History: */
/* */
-/* 6.24: Renamed BOOLEAN macro type to intBool. */
+/* 6.23: Modifications to use the system constant */
+/* FILENAME_MAX to check file name lengths. */
+/* DR0856 */
+/* */
+/* Corrected compilation errors for files */
+/* generated by constructs-to-c. DR0861 */
+/* */
+/* 6.24: Used EnvClear rather than Clear in */
+/* InitCImage initialization code. */
+/* */
+/* Added environment parameter to GenClose. */
+/* Added environment parameter to GenOpen. */
+/* */
+/* Removed SHORT_LINK_NAMES code as this option */
+/* is no longer supported. */
+/* */
+/* Support for run-time programs directly passing */
+/* the hash tables for initialization. */
+/* */
+/* 6.30: Added path name argument to constructs-to-c. */
+/* */
+/* Changed integer type/precision. */
+/* */
+/* Removed conditional code for unsupported */
+/* compilers/operating systems (IBM_MCW, MAC_MCW, */
+/* IBM_TBC, IBM_MSC, IBM_ICB, IBM_ZTC, and */
+/* IBM_SC). */
+/* */
+/* Use genstrcpy instead of strcpy. */
+/* */
+/* Added const qualifiers to remove C++ */
+/* deprecation warnings. */
/* */
/*************************************************************/
@@ -45,10 +76,10 @@
struct CodeGeneratorItem
{
- char *name;
+ const char *name;
void (*beforeFunction)(void *);
void (*initFunction)(void *,FILE *,int,int);
- int (*generateFunction)(void *,char *,int,FILE *,int,int);
+ int (*generateFunction)(void *,const char *,const char *,char *,int,FILE *,int,int);
int priority;
char **arrayNames;
int arrayCount;
@@ -56,13 +87,15 @@ struct CodeGeneratorItem
};
struct constructCompilerData
- {
+ {
int ImageID;
FILE *HeaderFP;
int MaxIndices;
FILE *ExpressionFP;
FILE *FixupFP;
- char *FilePrefix;
+ const char *FilePrefix;
+ const char *PathName;
+ char *FileNameBuffer;
intBool ExpressionHeader;
long ExpressionCount;
int ExpressionVersion;
@@ -83,7 +116,9 @@ struct constructCompilerData
struct CodeGeneratorFile
{
- char *filePrefix;
+ const char *filePrefix;
+ const char *pathName;
+ char *fileNameBuffer;
int id,version;
};
@@ -95,21 +130,21 @@ struct CodeGeneratorFile
LOCALE void InitializeConstructCompilerData(void *);
LOCALE void ConstructsToCCommandDefinition(void *);
- LOCALE FILE *NewCFile(void *,char *,int,int,int);
+ LOCALE FILE *NewCFile(void *,const char *,const char *,char *,int,int,int);
LOCALE int ExpressionToCode(void *,FILE *,struct expr *);
LOCALE void PrintFunctionReference(void *,FILE *,struct FunctionDefinition *);
- LOCALE struct CodeGeneratorItem *AddCodeGeneratorItem(void *,char *,int,
+ LOCALE struct CodeGeneratorItem *AddCodeGeneratorItem(void *,const char *,int,
void (*)(void *),
void (*)(void *,FILE *,int,int),
- int (*)(void *,char *,int,FILE *,int,int),int);
+ int (*)(void *,const char *,const char *,char *,int,FILE *,int,int),int);
LOCALE FILE *CloseFileIfNeeded(void *,FILE *,int *,int *,int,int *,struct CodeGeneratorFile *);
- LOCALE FILE *OpenFileIfNeeded(void *,FILE *,char *,int,int,int *,int,FILE *,
- char *,char *,int,struct CodeGeneratorFile *);
+ LOCALE FILE *OpenFileIfNeeded(void *,FILE *,const char *,const char *,char *,int,int,int *,
+ int,FILE *,const char *,char *,int,struct CodeGeneratorFile *);
LOCALE void MarkConstructBsaveIDs(void *,int);
LOCALE void ConstructHeaderToCode(void *,FILE *,struct constructHeader *,int,int,
- int,char *,char *);
+ int,const char *,const char *);
LOCALE void ConstructModuleToCode(void *,FILE *,struct defmodule *,int,int,
- int,char *);
+ int,const char *);
LOCALE void PrintHashedExpressionReference(void *,FILE *,struct expr *,int,int);
#endif