Rename deserializer_get_* -> deserialize_*
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
|
||||
#include "globals.h"
|
||||
|
||||
const char *deserializer_get_string_by_id (uint8_t);
|
||||
int deserializer_get_num_by_id (uint8_t);
|
||||
const void *deserializer_get_bytecode (void);
|
||||
const char *deserialize_string_by_id (uint8_t);
|
||||
int deserialize_num_by_id (uint8_t);
|
||||
const void *deserialize_bytecode (void);
|
||||
|
||||
#endif //DESERIALIZER_H
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "bytecode-linux.h"
|
||||
|
||||
const char *
|
||||
deserializer_get_string_by_id (uint8_t id)
|
||||
deserialize_string_by_id (uint8_t id)
|
||||
{
|
||||
uint8_t size = *bytecode_data, *data = bytecode_data, offset;
|
||||
|
||||
@@ -32,7 +32,7 @@ deserializer_get_string_by_id (uint8_t id)
|
||||
}
|
||||
|
||||
int
|
||||
deserializer_get_num_by_id (uint8_t id)
|
||||
deserialize_num_by_id (uint8_t id)
|
||||
{
|
||||
int *num_data;
|
||||
uint8_t str_size, str_offset, *data, num_size;
|
||||
@@ -58,7 +58,7 @@ deserializer_get_num_by_id (uint8_t id)
|
||||
}
|
||||
|
||||
const void *
|
||||
deserializer_get_bytecode (void)
|
||||
deserialize_bytecode (void)
|
||||
{
|
||||
return bytecode_opcodes;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ serializer_dump_strings (const char *strings[], uint8_t size)
|
||||
#ifndef JERRY_NDEBUG
|
||||
for (i = 0; i < size; i++)
|
||||
{
|
||||
JERRY_ASSERT (!__strcmp (strings[i], deserializer_get_string_by_id (i)));
|
||||
JERRY_ASSERT (!__strcmp (strings[i], deserialize_string_by_id (i)));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -110,7 +110,7 @@ serializer_dump_nums (const int nums[], uint8_t size, uint8_t offset, uint8_t st
|
||||
#ifndef JERRY_NDEBUG
|
||||
for (i = 0; i < size; i++)
|
||||
{
|
||||
JERRY_ASSERT (nums[i] == deserializer_get_num_by_id ((uint8_t) (i + strings_num)));
|
||||
JERRY_ASSERT (nums[i] == deserialize_num_by_id ((uint8_t) (i + strings_num)));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -18,19 +18,19 @@
|
||||
TODO (Implement)
|
||||
|
||||
const char *
|
||||
deserializer_get_string_by_id (uint8_t id)
|
||||
deserialize_string_by_id (uint8_t id)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (id);
|
||||
}
|
||||
|
||||
int
|
||||
deserializer_get_num_by_id (uint8_t id)
|
||||
deserialize_num_by_id (uint8_t id)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (id);
|
||||
}
|
||||
|
||||
const void *
|
||||
deserializer_get_bytecode (void)
|
||||
deserialize_bytecode (void)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
}
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ jerry_run( const char *script_source,
|
||||
parser_init ();
|
||||
parser_parse_program ();
|
||||
|
||||
init_int (deserializer_get_bytecode ());
|
||||
init_int (deserialize_bytecode ());
|
||||
run_int ();
|
||||
} /* jerry_run */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user