projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
78ec1b2
)
removed debug messages
author
ken
<ken@mihrtec.com>
Sun, 15 Jan 2017 00:31:13 +0000
(16:31 -0800)
committer
ken
<ken@mihrtec.com>
Sun, 15 Jan 2017 00:31:13 +0000
(16:31 -0800)
src/scanner.c
patch
|
blob
|
history
diff --git
a/src/scanner.c
b/src/scanner.c
index
abf472e
..
d9aa426
100644
(file)
--- a/
src/scanner.c
+++ b/
src/scanner.c
@@
-96,24
+96,20
@@
int scanner_scandir
goto scan_next_dirent;
switch (direntp->d_type)
{ case DT_REG:
goto scan_next_dirent;
switch (direntp->d_type)
{ case DT_REG:
- printf("lexfile %s\n",direntp->d_name);
lexer_lexfile((uint8_t*)direntp->d_name);
goto scan_next_dirent;
case DT_DIR:
lexer_lexdir((uint8_t*)direntp->d_name); //lex the dirname
lexer_lexfile((uint8_t*)direntp->d_name);
goto scan_next_dirent;
case DT_DIR:
lexer_lexdir((uint8_t*)direntp->d_name); //lex the dirname
- printf("lexdir %s\n",direntp->d_name);
if (chdir(direntp->d_name)) //change to the specified dir
goto libfail;
errno = 0;
if ((cdirp = opendir(".")) == NULL || errno) //open it
goto libfail;
if (chdir(direntp->d_name)) //change to the specified dir
goto libfail;
errno = 0;
if ((cdirp = opendir(".")) == NULL || errno) //open it
goto libfail;
- printf("Scanner entered [%s]\n",direntp->d_name);
if(scanner_scandir(cdirp)) //scan the directory
goto libfail;
if (chdir("..")) //return to the parent dir
goto libfail;
lexer_closedir(); //push "Close Directory" token
if(scanner_scandir(cdirp)) //scan the directory
goto libfail;
if (chdir("..")) //return to the parent dir
goto libfail;
lexer_closedir(); //push "Close Directory" token
- printf("Scanner returned\n");
goto scan_next_dirent; //continue scan
case DT_UNKNOWN:
warnx("unknown file %s: ignoring", direntp->d_name);
goto scan_next_dirent; //continue scan
case DT_UNKNOWN:
warnx("unknown file %s: ignoring", direntp->d_name);