fixed some const char*/char* confusion.

SVN revision: 29277
This commit is contained in:
tilman 2007-03-31 10:28:20 +00:00 committed by tilman
parent df673740c9
commit 1a4dbaa145
2 changed files with 10 additions and 10 deletions

View File

@ -93,14 +93,14 @@ extern "C" {
EAPI Embryo_Program *embryo_program_const_new(void *data, int size);
EAPI Embryo_Program *embryo_program_load(char *file);
EAPI void embryo_program_free(Embryo_Program *ep);
EAPI void embryo_program_native_call_add(Embryo_Program *ep, char *name, Embryo_Cell (*func) (Embryo_Program *ep, Embryo_Cell *params));
EAPI void embryo_program_native_call_add(Embryo_Program *ep, const char *name, Embryo_Cell (*func) (Embryo_Program *ep, Embryo_Cell *params));
EAPI void embryo_program_vm_reset(Embryo_Program *ep);
EAPI void embryo_program_vm_push(Embryo_Program *ep);
EAPI void embryo_program_vm_pop(Embryo_Program *ep);
EAPI void embryo_swap_16(unsigned short *v);
EAPI void embryo_swap_32(unsigned int *v);
EAPI Embryo_Function embryo_program_function_find(Embryo_Program *ep, char *name);
EAPI Embryo_Cell embryo_program_variable_find(Embryo_Program *ep, char *name);
EAPI Embryo_Function embryo_program_function_find(Embryo_Program *ep, const char *name);
EAPI Embryo_Cell embryo_program_variable_find(Embryo_Program *ep, const char *name);
EAPI int embryo_program_variable_count_get(Embryo_Program *ep);
EAPI Embryo_Cell embryo_program_variable_get(Embryo_Program *ep, int num);
EAPI void embryo_program_error_set(Embryo_Program *ep, int error);
@ -110,7 +110,7 @@ extern "C" {
EAPI const char *embryo_error_string_get(int error);
EAPI int embryo_data_string_length_get(Embryo_Program *ep, Embryo_Cell *str_cell);
EAPI void embryo_data_string_get(Embryo_Program *ep, Embryo_Cell *str_cell, char *dst);
EAPI void embryo_data_string_set(Embryo_Program *ep, char *src, Embryo_Cell *str_cell);
EAPI void embryo_data_string_set(Embryo_Program *ep, const char *src, Embryo_Cell *str_cell);
EAPI Embryo_Cell *embryo_data_address_get(Embryo_Program *ep, Embryo_Cell addr);
EAPI Embryo_Cell embryo_data_heap_push(Embryo_Program *ep, int cells);
EAPI void embryo_data_heap_pop(Embryo_Program *ep, Embryo_Cell down_to);
@ -120,7 +120,7 @@ extern "C" {
EAPI void embryo_program_max_cycle_run_set(Embryo_Program *ep, int max);
EAPI int embryo_program_max_cycle_run_get(Embryo_Program *ep);
EAPI int embryo_parameter_cell_push(Embryo_Program *ep, Embryo_Cell cell);
EAPI int embryo_parameter_string_push(Embryo_Program *ep, char *str);
EAPI int embryo_parameter_string_push(Embryo_Program *ep, const char *str);
EAPI int embryo_parameter_cell_array_push(Embryo_Program *ep, Embryo_Cell *cells, int num);
#ifdef __cplusplus

View File

@ -371,7 +371,7 @@ embryo_program_free(Embryo_Program *ep)
* @ingroup Embryo_Func_Group
*/
EAPI void
embryo_program_native_call_add(Embryo_Program *ep, char *name, Embryo_Cell (*func) (Embryo_Program *ep, Embryo_Cell *params))
embryo_program_native_call_add(Embryo_Program *ep, const char *name, Embryo_Cell (*func) (Embryo_Program *ep, Embryo_Cell *params))
{
Embryo_Func_Stub *func_entry;
Embryo_Header *hdr;
@ -560,7 +560,7 @@ embryo_swap_32(unsigned int *v)
* @ingroup Embryo_Func_Group
*/
EAPI Embryo_Function
embryo_program_function_find(Embryo_Program *ep, char *name)
embryo_program_function_find(Embryo_Program *ep, const char *name)
{
int first, last, mid, result;
char pname[sNAMEMAX + 1];
@ -604,7 +604,7 @@ embryo_program_function_find(Embryo_Program *ep, char *name)
* @ingroup Embryo_Public_Variable_Group
*/
EAPI Embryo_Cell
embryo_program_variable_find(Embryo_Program *ep, char *name)
embryo_program_variable_find(Embryo_Program *ep, const char *name)
{
int first, last, mid, result;
char pname[sNAMEMAX + 1];
@ -863,7 +863,7 @@ embryo_data_string_get(Embryo_Program *ep, Embryo_Cell *str_cell, char *dst)
* @ingroup Embryo_Data_String_Group
*/
EAPI void
embryo_data_string_set(Embryo_Program *ep, char *src, Embryo_Cell *str_cell)
embryo_data_string_set(Embryo_Program *ep, const char *src, Embryo_Cell *str_cell)
{
int i;
Embryo_Header *hdr;
@ -2272,7 +2272,7 @@ embryo_parameter_cell_push(Embryo_Program *ep, Embryo_Cell cell)
* @ingroup Embryo_Parameter_Group
*/
EAPI int
embryo_parameter_string_push(Embryo_Program *ep, char *str)
embryo_parameter_string_push(Embryo_Program *ep, const char *str)
{
Embryo_Param *pr;
char *str_dup;