aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-18 21:18:36 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-18 21:18:36 +0000
commit41e9c6754701dc768a07ad9f1b2e14b984b364e9 (patch)
tree700b9253fa864de30a75294862feec2d72a3e0bb
parent2441dad315cdf050995e5b1fb48bf9e871fe791c (diff)
downloaddm-41e9c6754701dc768a07ad9f1b2e14b984b364e9.tar.gz
dm-41e9c6754701dc768a07ad9f1b2e14b984b364e9.zip
dm.c removed default output of data structures. changed file read mode from r+ to r
-rw-r--r--dm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dm.c b/dm.c
index 51f8482..9419e4c 100644
--- a/dm.c
+++ b/dm.c
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
}
- fdm = fopen( datamach_file, "r+" );
+ fdm = fopen( datamach_file, "r" );
if ( fdm )
{
fseek( fdm, 0, SEEK_SET );
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
return -1;
}
- fin = fopen( input_file, "r+" );
+ fin = fopen( input_file, "r" );
if (fin)
{
fseek( fin, 0, SEEK_SET );
@@ -262,9 +262,9 @@ int main(int argc, char **argv)
ast = ast_syntax( tl );
//printf("ast = 0x%08x\n", ast);
- print_ast( ast );
+ //print_ast( ast );
ast2tb( ast, mt );
- mt_print( mt );
+ //mt_print( mt );
match( mt, binbuf, binbuf_size );