forked from enlightenment/efl
epp: fix annotate.
This commit is contained in:
parent
186cb58238
commit
863ed65a0f
|
@ -979,7 +979,7 @@ compile(void)
|
||||||
inc, def, clean_file,
|
inc, def, clean_file,
|
||||||
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
EINA_VERSION_MAJOR, EINA_VERSION_MINOR);
|
||||||
else if (annotate)
|
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",
|
" -DEFL_VERSION_MAJOR=%d -DEFL_VERSION_MINOR=%d",
|
||||||
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
buf2, watchfile ? watchfile : "/dev/null", file_in,
|
||||||
inc, def, clean_file,
|
inc, def, clean_file,
|
||||||
|
|
|
@ -500,7 +500,7 @@ unsigned char is_hor_space[256];
|
||||||
/* table to tell if c is horizontal or vertical space. */
|
/* table to tell if c is horizontal or vertical space. */
|
||||||
static unsigned char is_space[256];
|
static unsigned char is_space[256];
|
||||||
|
|
||||||
static int anotate = 0;
|
static int annotate = 0;
|
||||||
|
|
||||||
/* Initialize syntactic classifications of characters. */
|
/* Initialize syntactic classifications of characters. */
|
||||||
|
|
||||||
|
@ -6612,9 +6612,9 @@ cpp_handle_options(cpp_reader * pfile, int argc, char **argv)
|
||||||
opts->watchfile = argv[i];
|
opts->watchfile = argv[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!strcmp(argv[i], "-anotate"))
|
else if (!strcmp(argv[i], "-annotate"))
|
||||||
{
|
{
|
||||||
anotate = 1;
|
annotate = 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -7494,7 +7494,7 @@ using_file(const char *filename, const char type)
|
||||||
if (!options.watchfile) return;
|
if (!options.watchfile) return;
|
||||||
f = fopen(options.watchfile, "a");
|
f = fopen(options.watchfile, "a");
|
||||||
if (!f) return;
|
if (!f) return;
|
||||||
if (anotate)
|
if (annotate)
|
||||||
{
|
{
|
||||||
fprintf(f, "%c: %s\n", type, filename);
|
fprintf(f, "%c: %s\n", type, filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue