Rename some internal functions to avoid namespace pollution
This commit is contained in:
@@ -7,11 +7,11 @@ typedef int (*vm_intfn)(void);
|
|||||||
* included in the ABI function table
|
* included in the ABI function table
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int vm_intfn_nop(void);
|
int vm_intfn___nop(void);
|
||||||
int vm_intfn_global_store(void);
|
int vm_intfn___global_store(void);
|
||||||
int vm_intfn_global_load(void);
|
int vm_intfn___global_load(void);
|
||||||
int vm_intfn_global_array_store(void);
|
int vm_intfn___global_array_store(void);
|
||||||
int vm_intfn_global_array_load(void);
|
int vm_intfn___global_array_load(void);
|
||||||
int vm_intfn_printint(void);
|
int vm_intfn_printint(void);
|
||||||
int vm_intfn_printreal(void);
|
int vm_intfn_printreal(void);
|
||||||
int vm_intfn_printstr(void);
|
int vm_intfn_printstr(void);
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
/* Function assignments */
|
/* Function assignments */
|
||||||
|
|
||||||
function nop
|
function __nop
|
||||||
function global_store
|
function __global_store
|
||||||
function global_load
|
function __global_load
|
||||||
function global_array_store
|
function __global_array_store
|
||||||
function global_array_load
|
function __global_array_load
|
||||||
function printint
|
function printint
|
||||||
function printreal
|
function printreal
|
||||||
function printstr
|
function printstr
|
||||||
|
|||||||
10
src/lsi/vm.c
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_poke(struct vm_thread *thread, int count, stkentry value);
|
||||||
void stack_pokereal(struct vm_thread *thread, int count, float value);
|
void stack_pokereal(struct vm_thread *thread, int count, float value);
|
||||||
|
|
||||||
int vm_intfn_nop(void)
|
int vm_intfn___nop(void)
|
||||||
{
|
{
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
return 1;
|
return 1;
|
||||||
@@ -95,7 +95,7 @@ int vm_intfn_nop(void)
|
|||||||
* The compiler does not allocate space for a return value.
|
* The compiler does not allocate space for a return value.
|
||||||
* They also change the stack pointer.
|
* They also change the stack pointer.
|
||||||
*/
|
*/
|
||||||
int vm_intfn_global_store(void)
|
int vm_intfn___global_store(void)
|
||||||
{
|
{
|
||||||
int len, next, value;
|
int len, next, value;
|
||||||
struct hashentry *hashptr;
|
struct hashentry *hashptr;
|
||||||
@@ -130,7 +130,7 @@ gstoreout:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vm_intfn_global_load(void)
|
int vm_intfn___global_load(void)
|
||||||
{
|
{
|
||||||
int len, next, value;
|
int len, next, value;
|
||||||
struct hashentry *hashptr;
|
struct hashentry *hashptr;
|
||||||
@@ -163,7 +163,7 @@ gloadout:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vm_intfn_global_array_store(void)
|
int vm_intfn___global_array_store(void)
|
||||||
{
|
{
|
||||||
int len, next, value, index;
|
int len, next, value, index;
|
||||||
struct hashentry *hashptr;
|
struct hashentry *hashptr;
|
||||||
@@ -210,7 +210,7 @@ gstorearrayout:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int vm_intfn_global_array_load(void)
|
int vm_intfn___global_array_load(void)
|
||||||
{
|
{
|
||||||
int len, next, value, index;
|
int len, next, value, index;
|
||||||
struct hashentry *hashptr;
|
struct hashentry *hashptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user