|
Data Structures |
| struct | compoundInfo_s |
| struct | CompoundInfo |
| struct | CompoundStructType |
| struct | CompoundListType |
| struct | CompoundGroupType |
| struct | CompoundSentinelType |
Defines |
| #define | EXPORT_BORLAND |
| #define | EXPORT_MSCPP |
| #define | STREQ(str1, str2) (strcmp((str1), (str2)) == 0) |
Typedefs |
| typedef compoundInfo_s | compoundInfo_t |
Enumerations |
| enum | CompoundType { compound_sentinel_type,
compound_struct_type,
compound_list_type,
compound_group_type
} |
Functions |
| EXTERN void | printDebug (int level, char *str,...) |
| | Prints out debug messages.
|
| int | iclDecRef (ICLTerm *t) |
| | Decrement the reference count of a term.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_init_const_dyn_array (struct const_dyn_array *da) |
| | Initializes a const dynamic array.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_init_dyn_array (struct dyn_array *da) |
| | Initializes a dynamic array.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsVar (char *t) |
| | Returns TRUE if the term is a variable.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsOperation (char *t) |
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsIclDataQ (char *t, size_t len) |
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsInt (char *t) |
| | Returns TRUE if the term is an integer.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsFloat (char *t) |
| | Returns TRUE if the term is a float.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_stUndoubleQuotes (char *s) |
| | Converts any '' marks inside a string to just '.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_stFixQuotes (char *s) |
| | Converts any '' marks inside a string to just ', and removes any external quote marks around the string.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_stDoubleQuotes (char *s) |
| | Doubles any "'" in the string, to prepare the string to be surrounded by "'".
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_stQuoteForce (char *s) |
| | Adjusts the quotes in a string to be a legal ICL Str.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_stQuote (char *s) |
| | Adjusts the quotes in a string to be a legal ICL Str.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_stTrim (char *s) |
| | Removes leading and trailing spaces and other unprintables.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_stAppend (char **str1, char *str2) |
| | Appends a string onto the end of a first one, adjusting the size of the resulting string if necessary.
|
| compoundInfo_t * | compoundInfo_new () |
| int | compoundInfo_finished (compoundInfo_t *ci) |
| void | compoundInfo_setNumChildren (compoundInfo_t *ci, int n) |
| int | compoundInfo_getCurrentChildNum (compoundInfo_t *ci) |
| void | compoundInfo_setPreAllButFirst (compoundInfo_t *ci, guint8 *s, size_t len) |
| void | compoundInfo_setPostAllButLast (compoundInfo_t *ci, guint8 *s, size_t len) |
| void | compoundInfo_setPreChild (compoundInfo_t *ci, guint8 *s, size_t len) |
| void | compoundInfo_setPostChild (compoundInfo_t *ci, guint8 *s, size_t len) |
| void | compoundInfo_setPostPend (compoundInfo_t *ci, guint8 *s, size_t len) |
| guint8 * | compoundInfo_getPreChild (compoundInfo_t *ci, int i, size_t *len) |
| guint8 * | compoundInfo_getPostChild (compoundInfo_t *ci, int i, size_t *len) |
| guint8 * | compoundInfo_getPostPend (compoundInfo_t *ci, size_t *len) |
| void | compoundInfo_childFinished (compoundInfo_t *ci) |
| int | icl_toWireString (ICLTerm *t, char **termAsString, size_t *termAsStringLen) |
| | You must free termAsString when you are done with it.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewTermFromData (char *data, size_t len) |
| | Create a new IclTerm from the given data.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewTermFromString (char *t) |
| | Returns a pointer to a new structured Icl term given string containing an ICL expression, or NULL if a valid object could not be created.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_NewStringFromTerm (ICLTerm const *t) |
| | Creates a string representation from an ICL term.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_UnquotedStringFromStr (ICLTerm *t) |
| | Get an unquoted string from an IclStr.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_ForcedQuotedStringFromStr (ICLTerm *t) |
| | Get a string from an IclStr, quoting it even if the quotes are not necessary.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_MinimallyQuotedStringFromStr (ICLTerm *t) |
| | Get a minimally quoted string from an IclStr.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | pt (ICLTerm *t) |
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_NewStringStructFromTerm (ICLTerm *t) |
| | Creates a string representation from an ICL term.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_copy_term_nonrec (ICLTerm const *t, struct dyn_array *vars) |
| | Creates a copy of the term, all in new memory.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_CopyTerm (ICLTerm const *t) |
| | Creates a copy of the term, all in new memory.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_CopyListType (ICLListType *list) |
| | Creates a new copy of a ListType list.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewInt (gint64 i) |
| | Creates a new ICL object of type integer.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewFloat (double f) |
| | Creates a new ICL object of type float.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_stIsProperlyQuoted (char *s) |
| | return TRUE if the given string is properly quoted
|
| void | icl_setStrFromProperlyQuoted (char *s, ICLTerm *res) |
| | Assumes we are given s, which we can modify.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewStr (char const *s) |
| | Creates a new ICL object of type string.
|
| ICLTerm * | icl_NewStrNoCopy (char *s) |
| | Creates a new ICL object of type string.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewVar (char *name) |
| | Creates a new ICL object of type variable.
|
| ICLTerm * | icl_NewVarNoCopy (char *name) |
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewStructFromList (char const *functor, ICLTerm *args) |
| | Creates a new ICL object of type structure given args as a list.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewStruct (char const *functor, int arity,...) |
| | Creates a new ICL object of type structure.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_NewCons (ICLTerm *elt, ICLListType *tail) |
| | Returns a new element of ICLListType.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewDataQ (void const *data, size_t dataLen) |
| ICLTerm * | icl_NewDataQNoCopy (void *data, size_t dataLen) |
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewGroup (char startC, char *separator, ICLListType *list) |
| | Creates a new ICL object of type group.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NewList (ICLListType *list) |
| | Creates a new ICL object of type list.
|
| EXPORT_MSCPP void EXPORT_BORLAND | icl_FreeTermSingle (ICLTerm *elt) |
| EXPORT_MSCPP void EXPORT_BORLAND | icl_FreeTerm (ICLTerm *elt) |
| EXPORT_MSCPP void EXPORT_BORLAND | icl_stFree (void *p) |
| | Free a memory pointer (string or term) and set it to NULL afterwards.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsList (ICLTerm const *elt) |
| | Returns TRUE if object is of type List.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsGroup (ICLTerm const *elt) |
| | Returns TRUE if object is of type Group.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsStruct (ICLTerm const *elt) |
| | Returns TRUE if object is of type Struct.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsStr (ICLTerm const *elt) |
| | Returns TRUE if object is of type Str.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsVar (ICLTerm const *elt) |
| | Returns TRUE if object is of type Var.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsInt (ICLTerm const *elt) |
| | Returns TRUE if object is of type Int.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsFloat (ICLTerm const *elt) |
| | Returns TRUE if object is of type Float.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsDataQ (ICLTerm const *elt) |
| EXPORT_MSCPP int EXPORT_BORLAND | icl_IsValid (ICLTerm const *elt) |
| | Returns TRUE if object is valid.
|
| int | icl_IsGround (ICLTerm const *term) |
| EXPORT_MSCPP void *EXPORT_BORLAND | icl_DataQ (ICLTerm const *elt) |
| | Get the data associated with this ICLTerm if it is of type icl_dataq_type.
|
| EXPORT_MSCPP size_t EXPORT_BORLAND | icl_DataQLen (ICLTerm const *elt) |
| EXPORT_MSCPP size_t EXPORT_BORLAND | icl_Len (ICLTerm const *elt) |
| | Returns 0 if invalid.
|
| EXPORT_MSCPP gint64 EXPORT_BORLAND | icl_Int (ICLTerm const *elt) |
| | Returns the value for an ICL int.
|
| EXPORT_MSCPP double EXPORT_BORLAND | icl_Float (ICLTerm const *elt) |
| | Returns the value for an ICL float.
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_Str (ICLTerm const *elt) |
| | Returns the value for an ICL str (minimally quoted), struct (functor), or an ICL var (returns name).
|
| EXPORT_MSCPP char *EXPORT_BORLAND | icl_Functor (ICLTerm const *elt) |
| | Returns the functor for an ICL struct.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_Arguments (ICLTerm const *elt) |
| | Returns a pointer to the list of arguments for an ICL structure.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_GetGroupChars (ICLTerm const *group, char *startC, char **sep) |
| | Returns the start character and separators for a group.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_List (ICLTerm const *elt) |
| | Returns a pointer to the list of elements for an ICL list.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_ListNext (ICLListType const *t) |
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_ListElt (ICLListType const *t) |
| ICLListType * | icl_copy_listtype (ICLListType *l) |
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_ListCopy (ICLTerm const *elt) |
| | Returns a pointer to the list of elements for an ICL list.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_AddToList (ICLTerm *list, ICLTerm *elt, int atEnd) |
| | Adds an object at the beginning or the end of the list or a group.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_ClearList (ICLTerm *list) |
| | Removes all the components of the incoming list.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_SortList (ICLTerm *list, int(*user_function)(ICLTerm *Elt1, ICLTerm *Elt2)) |
| | Sorts the incoming list, using the given sorting function.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_ListHasMoreElements (ICLListType const *l) |
| | Determine if you have iterated to the end of a list.
|
EXPORT_MSCPP ICLListType
*EXPORT_BORLAND | icl_ListNextElement (ICLListType const *l) |
| | Return the next element in a list.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_ListElement (ICLListType const *list) |
| | Return the icl term associated with this list element.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_ListDelete (ICLTerm *list, ICLTerm *elem, ICLTerm **residue) |
| | Return TRUE if list is a list.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_AppendCopy (ICLTerm *list1, ICLTerm const *list2) |
| | Append a copy of list2 to the end of list1.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Append (ICLTerm *list1, ICLTerm *list2) |
| | Append list2 to the end of list1.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Union (ICLTerm *list1, ICLTerm *list2, ICLTerm **dest) |
| | Merges two incoming lists into a third one.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Arity (ICLTerm const *elt) |
| | Return the arity of an incoming term.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_NumTerms (ICLTerm const *elt) |
| | Returns the number of terms in a list (or group) object, or the number of arguments in a structure.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_ListLen (ICLTerm const *elt) |
| | Returns the number of terms in a list (or group) object, or the number of arguments in a structure.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_NthTerm (ICLTerm const *elt, int n) |
| | Returns a pointer to the Nth argument in a structure, or the Nth element of a list or of a group.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_NthTermAsInt (ICLTerm const *elt, int n, int *Value) |
| | Returns the integer value of the nth element in a term.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_ParamValue (char *func, ICLTerm *match, ICLTerm *paramlist, ICLTerm **value) |
| | Searches for a parameter in a parameter list.
|
| EXPORT_MSCPP gint64 EXPORT_BORLAND | icl_ParamValueAsInt (char *func, ICLTerm *paramlist, gint64 *Value) |
| | Returns integer value for a parameter in a parameter list.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Member (ICLTerm const *elt, ICLTerm const *list, ICLTerm **res) |
| | Searches for an element in a list, returning unification.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_match_terms (ICLTerm *t1, ICLTerm *t2, struct dyn_array *vars) |
| | Returns TRUE if Term1 matches Term2, saving variable bindings as it goes (if requested).
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_match_terms_DEBUG (ICLTerm *t1, ICLTerm *t2, struct dyn_array *vars) |
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Unify (ICLTerm const *t1, ICLTerm const *t2, ICLTerm **answer) |
| | Perform true unification and return resulting term.
|
| EXPORT_MSCPP int EXPORT_BORLAND | icl_Unify_DEBUG (ICLTerm *t1, ICLTerm *t2, ICLTerm **answer) |
| EXPORT_MSCPP int EXPORT_BORLAND | icl_WriteTerm (ICLTerm *t) |
| | Writes a term to standard out.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_True () |
| | Convenience functions which return a pointer to a commonly used datastructure.
|
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_False () |
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_Empty () |
| EXPORT_MSCPP ICLTerm *EXPORT_BORLAND | icl_Var () |
| int | icl_list_has_more_elements (ICLListType *l) |
| | Determine if you have iterated to the end of a list.
|
| ICLListType * | icl_list_next_element (ICLListType *l) |
| | Return the next element in a list.
|
| ICLTerm * | icl_list_element (ICLListType *list) |
| | Return the icl term associated with this list element.
|
| int | icl_list_delete (ICLTerm *list, ICLTerm *elem, ICLTerm **residue) |
| | Return TRUE if list is a list.
|
| int | icl_append_to_list (ICLTerm *list1, ICLTerm *list2, ICLTerm **list3) |
| | Append list2 to the end of list1 and place the results in list3.
|
| EXPORT_MSCPP ICLTerm * | icl_GenerateSimpleUnifyingTerm (ICLTerm const *term) |
| | Generate a general unifying term for the given term.
|
| EXPORT_MSCPP int | icl_ReplaceElement (ICLTerm *term, int index, ICLTerm *replacement, int freeReplaced) |
| | Replace the element at the given index with the replacement term.
|
| EXPORT_MSCPP int | icl_ReplaceUnifying (ICLTerm *term, ICLTerm const *selector, ICLTerm const *replacement, int freeReplaced) |
| | Replace elements that unify with the selector with the replacement term.
|
Variables |
| char * | ICLDATAQSTART |
| size_t | ICLDATAQSTARTLEN |