From ad8213f35523cbb07f418ae275af448a47cc0288 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sun, 25 May 2025 22:37:57 -0300 Subject: linux Makefile + fix most compilation problems I wanted to see if the compiler had any problems with the code so far and added a few stub definitions so that each file would properly compile. We still fail when linking but we're able to to find and fix compile time errors. --- src/config.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/config.cc') diff --git a/src/config.cc b/src/config.cc index e3e3c85..d08b791 100644 --- a/src/config.cc +++ b/src/config.cc @@ -1,4 +1,7 @@ #include "config.hh" +#include "script.hh" + +#include "stubs.hh" char BINPATH[4096]; char DATAPATH[4096]; @@ -254,16 +257,16 @@ void ReadConfig(void){ }else if(strcmp(Identifier, "querymanager") == 0){ Script.readSymbol('{'); do{ - if(NumberOfQueryManager >= NARRAY(QUERY_MANAGER)){ + if(NumberOfQueryManagers >= NARRAY(QUERY_MANAGER)){ Script.error("Cannot handle more query managers"); } Script.readSymbol('('); - strcpy(QUERY_MANAGER[NumberOfQueryManager].Host, Script.readString()); + strcpy(QUERY_MANAGER[NumberOfQueryManagers].Host, Script.readString()); Script.readSymbol(','); - QUERY_MANAGER[NumberOfQueryManager].Port = Script.readNumber(); + QUERY_MANAGER[NumberOfQueryManagers].Port = Script.readNumber(); Script.readSymbol(','); - strcpy(QUERY_MANAGER[NumberOfQueryManager].Password, Script.readString()); - DisguisePassword(QUERY_MANAGER[NumberOfQueryManager].Password, PasswordKey); + strcpy(QUERY_MANAGER[NumberOfQueryManagers].Password, Script.readString()); + DisguisePassword(QUERY_MANAGER[NumberOfQueryManagers].Password, PasswordKey); Script.readSymbol(')'); NumberOfQueryManagers += 1; }while(Script.readSpecial() != '}'); -- cgit v1.2.3