diff options
-rwxr-xr-x | example.tsl | 2 | ||||
-rw-r--r-- | src/program.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/example.tsl b/example.tsl index 092e7e5..076ee30 100755 --- a/example.tsl +++ b/example.tsl @@ -24,7 +24,7 @@ value4 = "hello world" # loadn 0.000000 # mindex # setv "c" -c = value4[0] +#c = value4[0] # loads "hello" # loads "world" diff --git a/src/program.c b/src/program.c index 88f94a4..71b310e 100644 --- a/src/program.c +++ b/src/program.c @@ -48,6 +48,7 @@ static int program_output_temp(char *data, int size, void *userdata) { return 1; } +#if 0 static void tsl_string_to_ref(const TslString *self, TslStringView *result) { result->data = self->data; result->size = self->size; @@ -70,6 +71,7 @@ static TslProgramResult tsl_string_ref_get_item_at_index(const TslStringView *se return TSL_PROGRAM_RESULT_OK; } +#endif static TslProgramResult tsl_value_create_from_stack_value(TslProgram *self, TslValue *dst) { TslStackValue *src = tsl_buffer_pop(&self->stack_values, sizeof(TslStackValue)); @@ -206,12 +208,13 @@ static TslProgramResult tsl_value_create_from_stack_value(TslProgram *self, TslV dst->type = TSL_TYPE_NULL; } return TSL_PROGRAM_RESULT_OK; - } else if(var.type == TSL_TYPE_STRING) { + /*} else if(var.type == TSL_TYPE_STRING) { TslStringView str_ref; tsl_string_to_ref(var.data.string, &str_ref); return tsl_string_ref_get_item_at_index(&str_ref, &key, dst); } else if(var.type == TSL_TYPE_STRING_REF) { return tsl_string_ref_get_item_at_index(&var.data.string_ref, &key, dst); + */ } else { /* TODO: Print type as string */ fprintf(stderr, "Error: Unable to index data of type %d. Expected list or map\n", var.type); |