138 #define VARIABLE_SYMBOL_TYPE 0
139 #define IDENTIFIER_SYMBOL_TYPE 1
140 #define SYM_CONSTANT_SYMBOL_TYPE 2
141 #define INT_CONSTANT_SYMBOL_TYPE 3
142 #define FLOAT_CONSTANT_SYMBOL_TYPE 4
299 #define common var.common_symbol_info
379 #define symbol_add_ref(x) {(x)->common.reference_count++;}
380 #define symbol_remove_ref(thisAgent, x) { \
381 (x)->common.reference_count--; \
382 if ((x)->common.reference_count == 0) \
383 deallocate_symbol(thisAgent, x); \
388 #ifdef DEBUG_SYMBOL_REFCOUNTS
394 (x)->
common.reference_count++;
395 uint64_t refCount = (x)->common.reference_count ;
396 #ifdef DEBUG_SYMBOL_REFCOUNTS
399 OutputDebugString(
":+ ");
400 OutputDebugString(_itoa(refCount, buf, 10));
401 OutputDebugString(
"\n");
402 #endif // DEBUG_SYMBOL_REFCOUNTS
408 (x)->
common.reference_count--;
409 uint64_t refCount = (x)->common.reference_count ;
410 #ifdef DEBUG_SYMBOL_REFCOUNTS
413 OutputDebugString(
":- ");
414 OutputDebugString(_itoa(refCount, buf, 10));
415 OutputDebugString(
"\n");
416 #endif // DEBUG_SYMBOL_REFCOUNTS
417 if ((x)->
common.reference_count == 0)