Add --directsvg option

This commit is contained in:
hooper114 2009-02-22 17:21:11 +00:00
parent 4d78bdd070
commit 94038468be

View File

@ -144,6 +144,7 @@ int main(int argc, char **argv)
{"box", 0, 0, 0}, {"box", 0, 0, 0},
{"directeps", 0, 0, 0}, {"directeps", 0, 0, 0},
{"directpng", 0, 0, 0}, {"directpng", 0, 0, 0},
{"directsvg", 0, 0, 0},
{"barcode=", 1, 0, 'b'}, {"barcode=", 1, 0, 'b'},
{"height=", 1, 0, 0}, {"height=", 1, 0, 0},
{"whitesp=", 1, 0, 'w'}, {"whitesp=", 1, 0, 'w'},
@ -185,6 +186,10 @@ int main(int argc, char **argv)
my_symbol->output_options += BARCODE_STDOUT; my_symbol->output_options += BARCODE_STDOUT;
strncpy(my_symbol->outfile, "dummy.png", 10); strncpy(my_symbol->outfile, "dummy.png", 10);
} }
if(!strcmp(long_options[option_index].name, "directsvg")) {
my_symbol->output_options += BARCODE_STDOUT;
strncpy(my_symbol->outfile, "dummy.svg", 10);
}
if(!strcmp(long_options[option_index].name, "gs1")) { if(!strcmp(long_options[option_index].name, "gs1")) {
my_symbol->input_mode = GS1_MODE; my_symbol->input_mode = GS1_MODE;
} }