Resolved a name clash with the engine

This commit is contained in:
2022-11-07 16:38:39 +00:00
parent 14710dec90
commit 8498864dde
16 changed files with 14 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "literal.h"
#include "opcodes.h"
#include "token_types.h"

View File

@@ -891,7 +891,7 @@ int _index(Interpreter* interpreter, LiteralArray* arguments) {
//else override elements of the array instead
else {
//copy compound to result
snprintf(result, MAX_STRING_LENGTH, AS_STRING(compound));
snprintf(result, MAX_STRING_LENGTH, "%s", AS_STRING(compound));
int assignLength = strlen(AS_STRING(assign));
int min = AS_INTEGER(third) > 0 ? AS_INTEGER(first) : AS_INTEGER(second) - 1;

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "opcodes.h"
#include "ast_node.h"
#include "literal_array.h"

View File

@@ -1,7 +1,7 @@
#include "interpreter.h"
#include "console_colors.h"
#include "common.h"
#include "toy_common.h"
#include "memory.h"
#include "keyword_types.h"
#include "opcodes.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "literal.h"
#include "literal_array.h"
#include "literal_dictionary.h"

View File

@@ -1,6 +1,6 @@
#include "keyword_types.h"
#include "common.h"
#include "toy_common.h"
#include <string.h>

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "token_types.h"
//lexers are bound to a string of code, and return a single token every time scan is called

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include <string.h>

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "literal.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "literal.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#define ALLOCATE(type, count) ((type*)reallocate(NULL, 0, sizeof(type) * (count)))
#define FREE(type, pointer) reallocate(pointer, sizeof(type), 0)

View File

@@ -1,7 +1,5 @@
#include "parser.h"
#include "common.h"
#include "memory.h"
#include "literal.h"
#include "opcodes.h"

View File

@@ -1,6 +1,6 @@
#pragma once
#include "common.h"
#include "toy_common.h"
#include "lexer.h"
#include "ast_node.h"

View File

@@ -1,4 +1,4 @@
#include "common.h"
#include "toy_common.h"
#include <stdio.h>
#include <string.h>