src/clipsrules/core/conscomp.c File Reference

#include "setup.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "symbol.h"
#include "memalloc.h"
#include "constant.h"
#include "exprnpsr.h"
#include "cstrccom.h"
#include "constrct.h"
#include "argacces.h"
#include "cstrncmp.h"
#include "router.h"
#include "sysdep.h"
#include "utility.h"
#include "modulcmp.h"
#include "envrnmnt.h"
#include "network.h"
#include "dffnxcmp.h"
#include "tmpltcmp.h"
#include "globlcmp.h"
#include "genrccmp.h"
#include "objcmp.h"
#include "conscomp.h"

Include dependency graph for conscomp.c:

Go to the source code of this file.

Defines

#define _CONSCOMP_SOURCE_
#define _STDIO_INCLUDED_
#define EXTRA_FILE_NAME   20
#define PRIMARY_CODES   "ADGHJKMNOQRTUVWXYZ"
#define PRIMARY_LEN   18
#define SECONDARY_CODES   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
#define SECONDARY_LEN   26

Functions

void ConstructsToCCommand (void *)
globle void InitializeConstructCompilerData (void *theEnv)
globle void PrintFunctionReference (void *theEnv, FILE *fp, struct FunctionDefinition *funcPtr)
globle FILE * NewCFile (void *theEnv, char *fileName, char *pathName, char *fileNameBuffer, int id, int version, int reopenOldFile)
globle void PrintHashedExpressionReference (void *theEnv, FILE *theFile, struct expr *theExpression, int imageID, int maxIndices)
globle int ExpressionToCode (void *theEnv, FILE *fp, struct expr *exprPtr)
globle void ConstructsToCCommandDefinition (void *theEnv)
globle struct CodeGeneratorItemAddCodeGeneratorItem (void *theEnv, char *name, int priority, void(*beforeFunction)(void *), void(*initFunction)(void *, FILE *, int, int), int(*generateFunction)(void *, char *, char *, char *, int, FILE *, int, int), int arrayCount)
globle FILE * CloseFileIfNeeded (void *theEnv, FILE *theFile, int *theCount, int *arrayVersion, int maxIndices, int *canBeReopened, struct CodeGeneratorFile *codeFile)
globle FILE * OpenFileIfNeeded (void *theEnv, FILE *theFile, char *fileName, char *pathName, char *fileNameBuffer, int fileID, int imageID, int *fileCount, int arrayVersion, FILE *headerFP, char *structureName, char *structPrefix, int reopenOldFile, struct CodeGeneratorFile *codeFile)
globle void MarkConstructBsaveIDs (void *theEnv, int constructModuleIndex)
globle void ConstructHeaderToCode (void *theEnv, FILE *theFile, struct constructHeader *theConstruct, int imageID, int maxIndices, int moduleCount, char *constructModulePrefix, char *constructPrefix)
globle void ConstructModuleToCode (void *theEnv, FILE *theFile, struct defmodule *theModule, int imageID, int maxIndices, int constructIndex, char *constructPrefix)


Define Documentation

#define _CONSCOMP_SOURCE_

Definition at line 42 of file conscomp.c.

#define _STDIO_INCLUDED_

Definition at line 49 of file conscomp.c.

#define EXTRA_FILE_NAME   20

Definition at line 97 of file conscomp.c.

#define PRIMARY_CODES   "ADGHJKMNOQRTUVWXYZ"

Definition at line 114 of file conscomp.c.

#define PRIMARY_LEN   18

Definition at line 115 of file conscomp.c.

#define SECONDARY_CODES   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Definition at line 116 of file conscomp.c.

#define SECONDARY_LEN   26

Definition at line 117 of file conscomp.c.


Function Documentation

globle struct CodeGeneratorItem* AddCodeGeneratorItem ( void *  theEnv,
char *  name,
int  priority,
void(*)(void *)  beforeFunction,
void(*)(void *, FILE *, int, int)  initFunction,
int(*)(void *, char *, char *, char *, int, FILE *, int, int)  generateFunction,
int  arrayCount 
) [read]

Definition at line 1147 of file conscomp.c.

globle FILE* CloseFileIfNeeded ( void *  theEnv,
FILE *  theFile,
int *  theCount,
int *  arrayVersion,
int  maxIndices,
int *  canBeReopened,
struct CodeGeneratorFile codeFile 
)

Definition at line 1251 of file conscomp.c.

globle void ConstructHeaderToCode ( void *  theEnv,
FILE *  theFile,
struct constructHeader theConstruct,
int  imageID,
int  maxIndices,
int  moduleCount,
char *  constructModulePrefix,
char *  constructPrefix 
)

Definition at line 1482 of file conscomp.c.

globle void ConstructModuleToCode ( void *  theEnv,
FILE *  theFile,
struct defmodule theModule,
int  imageID,
int  maxIndices,
int  constructIndex,
char *  constructPrefix 
)

Definition at line 1542 of file conscomp.c.

globle void ConstructsToCCommand ( void *  theEnv  ) 

Definition at line 176 of file conscomp.c.

globle void ConstructsToCCommandDefinition ( void *  theEnv  ) 

Definition at line 1133 of file conscomp.c.

globle int ExpressionToCode ( void *  theEnv,
FILE *  fp,
struct expr exprPtr 
)

Definition at line 918 of file conscomp.c.

globle void InitializeConstructCompilerData ( void *  theEnv  ) 

Definition at line 137 of file conscomp.c.

globle void MarkConstructBsaveIDs ( void *  theEnv,
int  constructModuleIndex 
)

Definition at line 1448 of file conscomp.c.

globle FILE* NewCFile ( void *  theEnv,
char *  fileName,
char *  pathName,
char *  fileNameBuffer,
int  id,
int  version,
int  reopenOldFile 
)

Definition at line 829 of file conscomp.c.

globle FILE* OpenFileIfNeeded ( void *  theEnv,
FILE *  theFile,
char *  fileName,
char *  pathName,
char *  fileNameBuffer,
int  fileID,
int  imageID,
int *  fileCount,
int  arrayVersion,
FILE *  headerFP,
char *  structureName,
char *  structPrefix,
int  reopenOldFile,
struct CodeGeneratorFile codeFile 
)

Definition at line 1346 of file conscomp.c.

globle void PrintFunctionReference ( void *  theEnv,
FILE *  fp,
struct FunctionDefinition funcPtr 
)

Definition at line 714 of file conscomp.c.

globle void PrintHashedExpressionReference ( void *  theEnv,
FILE *  theFile,
struct expr theExpression,
int  imageID,
int  maxIndices 
)

Definition at line 891 of file conscomp.c.


Generated on Mon Jan 10 22:33:40 2011 by  doxygen 1.5.6