From 02926e26ab742ae7953dac2ef8223cd77fafe3c5 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 12 Jul 2011 11:31:43 +0400 Subject: [PATCH] Makefile --- c/tex_parser/Makefile | 6 ++++-- c/tex_parser/tex_parser.c | 6 +++--- c/tex_parser/tex_parser.geany | 11 +++++------ c/tex_parser/tex_parser.h | 6 +++--- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/c/tex_parser/Makefile b/c/tex_parser/Makefile index 17bc7c2..abb4a39 100644 --- a/c/tex_parser/Makefile +++ b/c/tex_parser/Makefile @@ -4,8 +4,10 @@ # No need to call make clean if You make with other mode, # because the Makefile containes rules for automatically clean. # Some usage examples: -# CFLAGS="-march=core2 -mtune=core2" make -# LDFLAGS="-lexpat" make mode=profile +# make # default mode is debug +# CFLAGS="-O2 -march=core2 -mtune=core2 --msse4.1 mfpmath=sse -fomit-frame-pointer -pipe" LDFLAGS="-Wl,-O1 -Wl,-ass-needed" make mode=develop +# CFLAGS="-O2 -march=amdfam10 -mtune=amdfam10 -msse4a --mfpmath=sse -fomit-frame-pointer -pipe" LDFLAGS="-Wl,-O1 -Wl,--as-needed" make mode=profile +# CFLAGS="-O2 -march=k6-2 -mtune=k6-2 -m3dnow --mfpmath=387 -fomit-frame-pointer -pipe" LDFLAGS="-Wl,-O1 -Wl,--as-needed" make mode=release # Report bugs to #_________________________________ diff --git a/c/tex_parser/tex_parser.c b/c/tex_parser/tex_parser.c index 02a3679..cdddc4a 100644 --- a/c/tex_parser/tex_parser.c +++ b/c/tex_parser/tex_parser.c @@ -157,9 +157,9 @@ void tex_parse(const char *source, size_t len, struct tex_struct_s **tex_struct, #endif where_stack[tex_level--] = IN_UNDEF; - //~ if (tex_level && where_stack[tex_level - 1] == IN_TAG_BEGIN - //~ && !strcmp(param, TEX_PARAM_TABLE)) - //~ where_stack[tex_level++] = IN_TABLE;//?????????????????????? + /*if (tex_level && where_stack[tex_level - 1] == IN_TAG_BEGIN + && !strcmp(param, TEX_PARAM_TABLE)) + where_stack[tex_level++] = IN_TABLE;*/ } else if (c == '\\') { // new tag zclear(&tag); diff --git a/c/tex_parser/tex_parser.geany b/c/tex_parser/tex_parser.geany index 5468cd2..1e8e15d 100644 --- a/c/tex_parser/tex_parser.geany +++ b/c/tex_parser/tex_parser.geany @@ -16,12 +16,11 @@ long_line_behaviour=1 long_line_column=72 [files] -current_page=4 -FILE_NAME_0=21;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser_test.c;0 -FILE_NAME_1=298;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser.c;0 -FILE_NAME_2=0;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser.h;0 -FILE_NAME_3=133;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser_tags.h;0 -FILE_NAME_4=276;Make;0;16;1;1;1;/home/kolan/dev/c/tex_parser/Makefile;0 +current_page=3 +FILE_NAME_0=259;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser_test.c;0 +FILE_NAME_1=3895;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser.c;0 +FILE_NAME_2=3453;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser.h;0 +FILE_NAME_3=579;C;0;16;1;1;1;/home/kolan/dev/c/tex_parser/tex_parser_tags.h;0 [build-menu] NF_00_LB=_Сделать diff --git a/c/tex_parser/tex_parser.h b/c/tex_parser/tex_parser.h index 4251586..d6aa2b0 100644 --- a/c/tex_parser/tex_parser.h +++ b/c/tex_parser/tex_parser.h @@ -37,9 +37,9 @@ enum tex_parser_error { * array dimensions. */ struct tex_table_row_s { - char *over_line; // \hline, \cline{4-5} etc. - char **cells; // cells devided by & - char *under_line; // \hline, \cline{4-5} etc. + char *over_line; + char **cells; + char *under_line; }; /**