Skip to content

Commit

Permalink
Remove unneded commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
oboroc committed Feb 8, 2020
1 parent 3d0daf4 commit f8913f4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/crass.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 16,21 @@ void scan_str(char *str)
yyscan_t scanner;
YY_BUFFER_STATE buf;
crasslex_init(&scanner);
// yylex_init(&scanner);
buf = crass_scan_string(str, scanner);
// buf = yy_scan_string(str, scanner);
crasslex(scanner);
// yylex(scanner);

crass_delete_buffer(buf, scanner);
// yy_delete_buffer(buf, scanner);
crasslex_destroy(scanner);
// yylex_destroy(scanner);
}

void scan_file(FILE* f)
{
/* use reentrant scanner */
yyscan_t scanner;
crasslex_init(&scanner);
// yylex_init(&scanner);
crassset_in(f, scanner);
// yyset_in(f, scanner);
crasslex(scanner);
// yylex(scanner);
crasslex_destroy(scanner);
// yylex_destroy(scanner);
}

int main(int argc, char** argv)
Expand Down

0 comments on commit f8913f4

Please sign in to comment.