Browse Source

Rename some internal functions to avoid namespace pollution

master
Gavan Fantom 17 years ago
parent
commit
5fbc625840
  1. 10
      src/lsi/abi.h
  2. 10
      src/lsi/abispec
  3. 10
      src/lsi/vm.c

10
src/lsi/abi.h

@ -7,11 +7,11 @@ typedef int (*vm_intfn)(void);
* included in the ABI function table
*/
int vm_intfn_nop(void);
int vm_intfn_global_store(void);
int vm_intfn_global_load(void);
int vm_intfn_global_array_store(void);
int vm_intfn_global_array_load(void);
int vm_intfn___nop(void);
int vm_intfn___global_store(void);
int vm_intfn___global_load(void);
int vm_intfn___global_array_store(void);
int vm_intfn___global_array_load(void);
int vm_intfn_printint(void);
int vm_intfn_printreal(void);
int vm_intfn_printstr(void);

10
src/lsi/abispec

@ -2,11 +2,11 @@
/* Function assignments */
function nop
function global_store
function global_load
function global_array_store
function global_array_load
function __nop
function __global_store
function __global_load
function __global_array_store
function __global_array_load
function printint
function printreal
function printstr

10
src/lsi/vm.c

@ -84,7 +84,7 @@ char *stack_getstr(struct vm_thread *thread, int len, int count);
void stack_poke(struct vm_thread *thread, int count, stkentry value);
void stack_pokereal(struct vm_thread *thread, int count, float value);
int vm_intfn_nop(void)
int vm_intfn___nop(void)
{
/* Do nothing */
return 1;
@ -95,7 +95,7 @@ int vm_intfn_nop(void)
* The compiler does not allocate space for a return value.
* They also change the stack pointer.
*/
int vm_intfn_global_store(void)
int vm_intfn___global_store(void)
{
int len, next, value;
struct hashentry *hashptr;
@ -130,7 +130,7 @@ gstoreout:
return 1;
}
int vm_intfn_global_load(void)
int vm_intfn___global_load(void)
{
int len, next, value;
struct hashentry *hashptr;
@ -163,7 +163,7 @@ gloadout:
return 1;
}
int vm_intfn_global_array_store(void)
int vm_intfn___global_array_store(void)
{
int len, next, value, index;
struct hashentry *hashptr;
@ -210,7 +210,7 @@ gstorearrayout:
return 1;
}
int vm_intfn_global_array_load(void)
int vm_intfn___global_array_load(void)
{
int len, next, value, index;
struct hashentry *hashptr;

Loading…
Cancel
Save