GNU PROLOG with UTF8 support
Macros | Functions
atom_c.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "engine_pl.h"
#include "bips_pl.h"
Include dependency graph for atom_c.c:

Macros

#define ATOM_CONCAT_ALT   X1_2461746F6D5F636F6E6361745F616C74
 
#define SUB_ATOM_ALT   X1_247375625F61746F6D5F616C74
 
#define CURRENT_ATOM_ALT   X1_2463757272656E745F61746F6D5F616C74
 
#define MALLOC_STR(n)
 
#define DEREF_LG(lg_word, lg)
 

Functions

static Bool Compute_Next_BLA (int mask, AtomInf *patom, AtomInf *psub_atom, int b, int l, int a, int *b1, int *l1, int *a1)
 
static int Create_Malloc_Atom (char *str)
 
static Bool String_To_Number (char *str, WamWord number_word)
 
 Prolog_Prototype (ATOM_CONCAT_ALT, 0)
 
 Prolog_Prototype (SUB_ATOM_ALT, 0)
 
 Prolog_Prototype (CURRENT_ATOM_ALT, 0)
 
Bool Pl_Atom_Length_2 (WamWord atom_word, WamWord length_word)
 
Bool Pl_New_Atom_2 (WamWord prefix_word, WamWord atom_word)
 
Bool Pl_Atom_Concat_3 (WamWord atom1_word, WamWord atom2_word, WamWord atom3_word)
 
Bool Pl_Atom_Concat_Alt_0 (void)
 
Bool Pl_Sub_Atom_5 (WamWord atom_word, WamWord before_word, WamWord length_word, WamWord after_word, WamWord sub_atom_word)
 
Bool Pl_Sub_Atom_Alt_0 (void)
 
Bool Pl_Atom_Chars_2 (WamWord atom_word, WamWord chars_word)
 
Bool Pl_Atom_Codes_2 (WamWord atom_word, WamWord codes_word)
 
Bool Pl_Number_Atom_2 (WamWord number_word, WamWord atom_word)
 
Bool Pl_Number_Chars_2 (WamWord number_word, WamWord chars_word)
 
Bool Pl_Number_Codes_2 (WamWord number_word, WamWord codes_word)
 
Bool Pl_Char_Code_2 (WamWord char_word, WamWord code_word)
 
Bool Pl_Name_2 (WamWord atomic_word, WamWord codes_word)
 
Bool Pl_Lower_Upper_2 (WamWord lower_word, WamWord upper_word)
 
Bool Pl_Current_Atom_2 (WamWord atom_word, WamWord hide_word)
 
Bool Pl_Current_Atom_Alt_0 (void)
 
void Pl_Atom_Property_6 (WamWord atom_word, WamWord prefix_op_word, WamWord infix_op_word, WamWord postfix_op_word, WamWord needs_quote_word, WamWord needs_scan_word)
 

Macro Definition Documentation

#define ATOM_CONCAT_ALT   X1_2461746F6D5F636F6E6361745F616C74
#define CURRENT_ATOM_ALT   X1_2463757272656E745F61746F6D5F616C74
#define DEREF_LG (   lg_word,
  lg 
)
Value:
DEREF(lg_word, word, tag_mask); \
mask <<= 1; \
if (tag_mask == TAG_INT_MASK) \
{ \
if ((lg = UnTag_INT(word)) < 0) \
mask |= 1; \
} \
else \
{ \
lg = 0; \
if (tag_mask != TAG_REF_MASK) \
} \
lg_word = word
void Pl_Err_Domain(int atom_domain, WamWord term)
Definition: error_supp.c:577
int pl_domain_not_less_than_zero
#define DEREF(start_word, word, tag_mask)
Definition: wam_inst.h:438
int pl_type_integer
int mask
Definition: test_oc.c:7
void Pl_Err_Type(int atom_type, WamWord term)
Definition: error_supp.c:561
#define MALLOC_STR (   n)
Value:
if (n<0) \
return FALSE; \
str = (char *) Malloc(n + 1)
#define Malloc(size)
Definition: cpt_string.c:50
#define FALSE
Definition: bool.h:49
#define SUB_ATOM_ALT   X1_247375625F61746F6D5F616C74

Function Documentation

static Bool Compute_Next_BLA ( int  mask,
AtomInf patom,
AtomInf psub_atom,
int  b,
int  l,
int  a,
int *  b1,
int *  l1,
int *  a1 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int Create_Malloc_Atom ( char *  str)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Bool Pl_Atom_Chars_2 ( WamWord  atom_word,
WamWord  chars_word 
)

Here is the call graph for this function:

Bool Pl_Atom_Codes_2 ( WamWord  atom_word,
WamWord  codes_word 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Bool Pl_Atom_Concat_3 ( WamWord  atom1_word,
WamWord  atom2_word,
WamWord  atom3_word 
)

Here is the call graph for this function:

Bool Pl_Atom_Concat_Alt_0 ( void  )

Here is the call graph for this function:

Bool Pl_Atom_Length_2 ( WamWord  atom_word,
WamWord  length_word 
)

Here is the call graph for this function:

void Pl_Atom_Property_6 ( WamWord  atom_word,
WamWord  prefix_op_word,
WamWord  infix_op_word,
WamWord  postfix_op_word,
WamWord  needs_quote_word,
WamWord  needs_scan_word 
)

Here is the call graph for this function:

Bool Pl_Char_Code_2 ( WamWord  char_word,
WamWord  code_word 
)

Here is the call graph for this function:

Bool Pl_Current_Atom_2 ( WamWord  atom_word,
WamWord  hide_word 
)

Here is the call graph for this function:

Bool Pl_Current_Atom_Alt_0 ( void  )

Here is the call graph for this function:

Bool Pl_Lower_Upper_2 ( WamWord  lower_word,
WamWord  upper_word 
)

Here is the call graph for this function:

Bool Pl_Name_2 ( WamWord  atomic_word,
WamWord  codes_word 
)

Here is the call graph for this function:

Bool Pl_New_Atom_2 ( WamWord  prefix_word,
WamWord  atom_word 
)

Here is the call graph for this function:

Bool Pl_Number_Atom_2 ( WamWord  number_word,
WamWord  atom_word 
)

Here is the call graph for this function:

Bool Pl_Number_Chars_2 ( WamWord  number_word,
WamWord  chars_word 
)

Here is the call graph for this function:

Bool Pl_Number_Codes_2 ( WamWord  number_word,
WamWord  codes_word 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Bool Pl_Sub_Atom_5 ( WamWord  atom_word,
WamWord  before_word,
WamWord  length_word,
WamWord  after_word,
WamWord  sub_atom_word 
)

Here is the call graph for this function:

Bool Pl_Sub_Atom_Alt_0 ( void  )

Here is the call graph for this function:

Prolog_Prototype ( ATOM_CONCAT_ALT  ,
 
)
Prolog_Prototype ( SUB_ATOM_ALT  ,
 
)
Prolog_Prototype ( CURRENT_ATOM_ALT  ,
 
)
static Bool String_To_Number ( char *  str,
WamWord  number_word 
)
static

Here is the call graph for this function:

Here is the caller graph for this function: