From: ken Date: Fri, 21 Oct 2016 17:37:32 +0000 (-0700) Subject: use real CLOPEN and CLCLOSE, replaced temp macros X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=commitdiff_plain;h=8d1a4c90d36332714c8ff93d09ba6a9f3a5ae716 use real CLOPEN and CLCLOSE, replaced temp macros --- diff --git a/src/apc/scanner.c b/src/apc/scanner.c index 86c096e..0d51ffe 100644 --- a/src/apc/scanner.c +++ b/src/apc/scanner.c @@ -121,8 +121,6 @@ int scanner #define ERR_DEPTH "Fatal: Maximum directory depth of " $(DL_STACKSIZE) \ " exceeded during directory scan\n" #define ERR_DL "Fatal: Directory List Stack Corruption %x\n", DL_LEN() -#define TOK_CLOPEN 0x55, 1 //TODO -#define TOK_CLCLOSE 0x56, 1 //TODO () { struct dirent* direntp; struct DIR* DIRp; @@ -144,7 +142,7 @@ int scanner DL_PUSH(opendir(CWDSTR)); if (DL_CURDIR() == NULL) //open the cwd goto libfail; - lexer_pushtok(TOK_CLOPEN); //Push "Open Directory" token + lexer_pushtok(CLOPEN, 0); //Push "Open Directory" token return dredge_current_depth(); //Filter and sort the current depth } else if (DL_LEN() >= 0) //Any dirs left? (Including root) @@ -152,7 +150,7 @@ int scanner goto libfail; if (DL_LEN() == -1) //If we just popped root, return 0; //we're done - lexer_pushtok(TOK_CLCLOSE); //Else push "Close Directory" token, + lexer_pushtok(CLCLOSE, 0); //Else push "Close Directory" token, if (!chdir("..")) //move up a directory and goto parse; //start over }