src/clipsrules/core/symbol.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "setup.h"
#include "constant.h"
#include "envrnmnt.h"
#include "memalloc.h"
#include "router.h"
#include "utility.h"
#include "argacces.h"
#include "sysdep.h"
#include "symbol.h"

Include dependency graph for symbol.c:

Go to the source code of this file.

Defines

#define _SYMBOL_SOURCE_
#define _STDIO_INCLUDED_
#define FALSE_STRING   "FALSE"
#define TRUE_STRING   "TRUE"
#define POSITIVE_INFINITY_STRING   "+oo"
#define NEGATIVE_INFINITY_STRING   "-oo"
#define AVERAGE_STRING_SIZE   10
#define AVERAGE_BITMAP_SIZE   sizeof(long)
#define NUMBER_OF_LONGS_FOR_HASH   25

Functions

globle void InitializeAtomTables (void *theEnv, struct symbolHashNode **symbolTable, struct floatHashNode **floatTable, struct integerHashNode **integerTable, struct bitMapHashNode **bitmapTable, struct externalAddressHashNode **externalAddressTable)
globle void * EnvAddSymbol (void *theEnv, char *str)
globle SYMBOL_HNFindSymbolHN (void *theEnv, char *str)
globle void * EnvAddDouble (void *theEnv, double number)
globle void * EnvAddLong (void *theEnv, long long number)
globle INTEGER_HNFindLongHN (void *theEnv, long long theLong)
globle void * EnvAddBitMap (void *theEnv, void *vTheBitMap, unsigned size)
globle void * EnvAddExternalAddress (void *theEnv, void *theExternalAddress, unsigned theType)
globle unsigned long HashSymbol (char *word, unsigned long range)
globle unsigned long HashFloat (double number, unsigned long range)
globle unsigned long HashInteger (long long number, unsigned long range)
globle unsigned long HashExternalAddress (void *theExternalAddress, unsigned long range)
globle unsigned long HashBitMap (char *word, unsigned long range, unsigned length)
globle void DecrementSymbolCount (void *theEnv, SYMBOL_HN *theValue)
globle void DecrementFloatCount (void *theEnv, FLOAT_HN *theValue)
globle void DecrementIntegerCount (void *theEnv, INTEGER_HN *theValue)
globle void DecrementBitMapCount (void *theEnv, BITMAP_HN *theValue)
globle void DecrementExternalAddressCount (void *theEnv, EXTERNAL_ADDRESS_HN *theValue)
globle void RemoveEphemeralAtoms (void *theEnv)
globle SYMBOL_HN ** GetSymbolTable (void *theEnv)
globle void SetSymbolTable (void *theEnv, SYMBOL_HN **value)
globle FLOAT_HN ** GetFloatTable (void *theEnv)
globle void SetFloatTable (void *theEnv, FLOAT_HN **value)
globle INTEGER_HN ** GetIntegerTable (void *theEnv)
globle void SetIntegerTable (void *theEnv, INTEGER_HN **value)
globle BITMAP_HN ** GetBitMapTable (void *theEnv)
globle void SetBitMapTable (void *theEnv, BITMAP_HN **value)
globle EXTERNAL_ADDRESS_HN ** GetExternalAddressTable (void *theEnv)
globle void SetExternalAddressTable (void *theEnv, EXTERNAL_ADDRESS_HN **value)
globle void RefreshSpecialSymbols (void *theEnv)
globle struct symbolMatchFindSymbolMatches (void *theEnv, char *searchString, unsigned *numberOfMatches, size_t *commonPrefixLength)
globle void ReturnSymbolMatches (void *theEnv, struct symbolMatch *listOfMatches)
globle void ClearBitString (void *vTheBitMap, unsigned length)
globle SYMBOL_HNGetNextSymbolMatch (void *theEnv, char *searchString, size_t searchLength, SYMBOL_HN *prevSymbol, int anywhere, size_t *commonPrefixLength)
globle void SetAtomicValueIndices (void *theEnv, int setAll)
globle void RestoreAtomicValueBuckets (void *theEnv)


Define Documentation

#define _STDIO_INCLUDED_

Definition at line 40 of file symbol.c.

#define _SYMBOL_SOURCE_

Definition at line 37 of file symbol.c.

#define AVERAGE_BITMAP_SIZE   sizeof(long)

Definition at line 66 of file symbol.c.

#define AVERAGE_STRING_SIZE   10

Definition at line 65 of file symbol.c.

#define FALSE_STRING   "FALSE"

Definition at line 60 of file symbol.c.

#define NEGATIVE_INFINITY_STRING   "-oo"

Definition at line 63 of file symbol.c.

#define NUMBER_OF_LONGS_FOR_HASH   25

Definition at line 67 of file symbol.c.

#define POSITIVE_INFINITY_STRING   "+oo"

Definition at line 62 of file symbol.c.

#define TRUE_STRING   "TRUE"

Definition at line 61 of file symbol.c.


Function Documentation

globle void ClearBitString ( void *  vTheBitMap,
unsigned  length 
)

Definition at line 1429 of file symbol.c.

globle void DecrementBitMapCount ( void *  theEnv,
BITMAP_HN theValue 
)

Definition at line 974 of file symbol.c.

globle void DecrementExternalAddressCount ( void *  theEnv,
EXTERNAL_ADDRESS_HN theValue 
)

Definition at line 1008 of file symbol.c.

globle void DecrementFloatCount ( void *  theEnv,
FLOAT_HN theValue 
)

Definition at line 918 of file symbol.c.

globle void DecrementIntegerCount ( void *  theEnv,
INTEGER_HN theValue 
)

Definition at line 946 of file symbol.c.

globle void DecrementSymbolCount ( void *  theEnv,
SYMBOL_HN theValue 
)

Definition at line 884 of file symbol.c.

globle void* EnvAddBitMap ( void *  theEnv,
void *  vTheBitMap,
unsigned  size 
)

Definition at line 598 of file symbol.c.

globle void* EnvAddDouble ( void *  theEnv,
double  number 
)

Definition at line 448 of file symbol.c.

globle void* EnvAddExternalAddress ( void *  theEnv,
void *  theExternalAddress,
unsigned  theType 
)

Definition at line 681 of file symbol.c.

globle void* EnvAddLong ( void *  theEnv,
long long  number 
)

Definition at line 513 of file symbol.c.

globle void* EnvAddSymbol ( void *  theEnv,
char *  str 
)

Definition at line 350 of file symbol.c.

globle INTEGER_HN* FindLongHN ( void *  theEnv,
long long  theLong 
)

Definition at line 575 of file symbol.c.

globle SYMBOL_HN* FindSymbolHN ( void *  theEnv,
char *  str 
)

Definition at line 422 of file symbol.c.

globle struct symbolMatch* FindSymbolMatches ( void *  theEnv,
char *  searchString,
unsigned *  numberOfMatches,
size_t *  commonPrefixLength 
) [read]

Definition at line 1383 of file symbol.c.

globle BITMAP_HN** GetBitMapTable ( void *  theEnv  )  [read]

Definition at line 1327 of file symbol.c.

globle EXTERNAL_ADDRESS_HN** GetExternalAddressTable ( void *  theEnv  )  [read]

Definition at line 1346 of file symbol.c.

globle FLOAT_HN** GetFloatTable ( void *  theEnv  )  [read]

Definition at line 1289 of file symbol.c.

globle INTEGER_HN** GetIntegerTable ( void *  theEnv  )  [read]

Definition at line 1308 of file symbol.c.

globle SYMBOL_HN* GetNextSymbolMatch ( void *  theEnv,
char *  searchString,
size_t  searchLength,
SYMBOL_HN prevSymbol,
int  anywhere,
size_t *  commonPrefixLength 
)

Definition at line 1445 of file symbol.c.

globle SYMBOL_HN** GetSymbolTable ( void *  theEnv  )  [read]

Definition at line 1270 of file symbol.c.

globle unsigned long HashBitMap ( char *  word,
unsigned long  range,
unsigned  length 
)

Definition at line 836 of file symbol.c.

globle unsigned long HashExternalAddress ( void *  theExternalAddress,
unsigned long  range 
)

Definition at line 812 of file symbol.c.

globle unsigned long HashFloat ( double  number,
unsigned long  range 
)

Definition at line 766 of file symbol.c.

globle unsigned long HashInteger ( long long  number,
unsigned long  range 
)

Definition at line 788 of file symbol.c.

globle unsigned long HashSymbol ( char *  word,
unsigned long  range 
)

Definition at line 747 of file symbol.c.

globle void InitializeAtomTables ( void *  theEnv,
struct symbolHashNode **  symbolTable,
struct floatHashNode **  floatTable,
struct integerHashNode **  integerTable,
struct bitMapHashNode **  bitmapTable,
struct externalAddressHashNode **  externalAddressTable 
)

Definition at line 91 of file symbol.c.

globle void RefreshSpecialSymbols ( void *  theEnv  ) 

Definition at line 1367 of file symbol.c.

globle void RemoveEphemeralAtoms ( void *  theEnv  ) 

Definition at line 1172 of file symbol.c.

globle void RestoreAtomicValueBuckets ( void *  theEnv  ) 

Definition at line 1724 of file symbol.c.

globle void ReturnSymbolMatches ( void *  theEnv,
struct symbolMatch listOfMatches 
)

Definition at line 1412 of file symbol.c.

globle void SetAtomicValueIndices ( void *  theEnv,
int  setAll 
)

Definition at line 1619 of file symbol.c.

globle void SetBitMapTable ( void *  theEnv,
BITMAP_HN **  value 
)

Definition at line 1336 of file symbol.c.

globle void SetExternalAddressTable ( void *  theEnv,
EXTERNAL_ADDRESS_HN **  value 
)

Definition at line 1355 of file symbol.c.

globle void SetFloatTable ( void *  theEnv,
FLOAT_HN **  value 
)

Definition at line 1298 of file symbol.c.

globle void SetIntegerTable ( void *  theEnv,
INTEGER_HN **  value 
)

Definition at line 1317 of file symbol.c.

globle void SetSymbolTable ( void *  theEnv,
SYMBOL_HN **  value 
)

Definition at line 1279 of file symbol.c.


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