From 863ed65a0fcf85b996f5baa5a38050217b9eae04 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 16 Apr 2015 18:41:42 +0200 Subject: [PATCH] epp: fix annotate. --- src/bin/edje/edje_cc_parse.c | 2 +- src/bin/edje/epp/cpplib.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c index 71d3a319c4..4e2884318f 100644 --- a/src/bin/edje/edje_cc_parse.c +++ b/src/bin/edje/edje_cc_parse.c @@ -979,7 +979,7 @@ compile(void) inc, def, clean_file, EINA_VERSION_MAJOR, EINA_VERSION_MINOR); else if (annotate) - snprintf(buf, sizeof(buf), "%s -anotate -a %s %s -I%s %s -o %s" + snprintf(buf, sizeof(buf), "%s -annotate -a %s %s -I%s %s -o %s" " -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d", buf2, watchfile ? watchfile : "/dev/null", file_in, inc, def, clean_file, diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c index 310401247c..b8e0ff2d64 100644 --- a/src/bin/edje/epp/cpplib.c +++ b/src/bin/edje/epp/cpplib.c @@ -500,7 +500,7 @@ unsigned char is_hor_space[256]; /* table to tell if c is horizontal or vertical space. */ static unsigned char is_space[256]; -static int anotate = 0; +static int annotate = 0; /* Initialize syntactic classifications of characters. */ @@ -6612,9 +6612,9 @@ cpp_handle_options(cpp_reader * pfile, int argc, char **argv) opts->watchfile = argv[i]; } } - else if (!strcmp(argv[i], "-anotate")) + else if (!strcmp(argv[i], "-annotate")) { - anotate = 1; + annotate = 1; } break; } @@ -7494,7 +7494,7 @@ using_file(const char *filename, const char type) if (!options.watchfile) return; f = fopen(options.watchfile, "a"); if (!f) return; - if (anotate) + if (annotate) { fprintf(f, "%c: %s\n", type, filename); }