216 |
function directly - use mem_repl_word_cast() instead. |
function directly - use mem_repl_word_cast() instead. |
217 |
*/ |
*/ |
218 |
|
|
219 |
|
|
220 |
/* the following are pretty much a monument to Karl. */ |
/* the following are pretty much a monument to Karl. */ |
221 |
|
/* XXX note that they are also referenced in the test suite... */ |
222 |
#if 0 |
#if 0 |
223 |
extern int mem_get_byte(asc_intptr_t from); /**< Returns the byte located at from. */ |
extern int mem_get_byte(POINTER from); /**< Returns the byte located at from. */ |
224 |
#endif |
#endif |
225 |
ASC_DLLSPEC unsigned char mem_get_byte(asc_intptr_t from); /**< Returns the byte located at from. */ |
ASC_DLLSPEC unsigned char mem_get_byte(POINTER from); /**< Returns the byte located at from. */ |
226 |
ASC_DLLSPEC int mem_get_int(asc_intptr_t from); /**< Returns the int located at from. */ |
ASC_DLLSPEC int mem_get_int(POINTER from); /**< Returns the int located at from. */ |
227 |
ASC_DLLSPEC long mem_get_long(asc_intptr_t from); /**< Returns the long located at from. */ |
ASC_DLLSPEC long mem_get_long(POINTER from); /**< Returns the long located at from. */ |
228 |
ASC_DLLSPEC double mem_get_float(asc_intptr_t from); /**< Returns the float located at from. */ |
ASC_DLLSPEC double mem_get_float(POINTER from); /**< Returns the float located at from. */ |
229 |
ASC_DLLSPEC double mem_get_double(asc_intptr_t from); /**< Returns the double located at from. */ |
ASC_DLLSPEC double mem_get_double(POINTER from); /**< Returns the double located at from. */ |
230 |
ASC_DLLSPEC void mem_set_byte(asc_intptr_t from, int b); /**< Sets the byte located at from. */ |
ASC_DLLSPEC void mem_set_byte(POINTER from, int b); /**< Sets the byte located at from. */ |
231 |
ASC_DLLSPEC void mem_set_int(asc_intptr_t from, int i); /**< Sets the int located at from. */ |
ASC_DLLSPEC void mem_set_int(POINTER from, int i); /**< Sets the int located at from. */ |
232 |
ASC_DLLSPEC void mem_set_long(asc_intptr_t from, long l); /**< Sets the long located at from. */ |
ASC_DLLSPEC void mem_set_long(POINTER from, long l); /**< Sets the long located at from. */ |
233 |
ASC_DLLSPEC void mem_set_float(asc_intptr_t from, double f); /**< Sets the float located at from. */ |
ASC_DLLSPEC void mem_set_float(POINTER from, double f); /**< Sets the float located at from. */ |
234 |
ASC_DLLSPEC void mem_set_double(asc_intptr_t from, double d); /**< Sets the double located at from. */ |
ASC_DLLSPEC void mem_set_double(POINTER from, double d); /**< Sets the double located at from. */ |
235 |
|
|
236 |
#define mem_get_unsigned(from) ((unsigned)mem_get_int(from)) |
#define mem_get_unsigned(from) ((unsigned)mem_get_int(from)) |
237 |
/**< Returns the unsigned located at from. */ |
/**< Returns the unsigned located at from. */ |
407 |
it from pool.h. |
it from pool.h. |
408 |
*/ |
*/ |
409 |
|
|
410 |
#define mem_DEBUG FALSE |
#define MEM_DEBUG 1 |
411 |
/**< |
/**< |
412 |
Flag controlling extra checking of the pool management routines. |
Flag controlling extra checking of the pool management routines. |
413 |
Setting mem_DEBUG to TRUE causes the mem_store routines to do |
Setting mem_DEBUG to TRUE causes the mem_store routines to do |
414 |
some RATHER expensive checking. It should be set to FALSE. |
some RATHER expensive checking. It should be set to FALSE. |
415 |
*/ |
*/ |
416 |
|
|
417 |
#define mem_LIGHTENING FALSE |
#define mem_LIGHTENING FALSE |
418 |
/**< |
/**< |
419 |
Flag controlling extent of internal sanity checking. |
Flag controlling extent of internal sanity checking. |