diff options
| author | Steve Price <steve@FreeBSD.org> | 2001-02-26 03:22:33 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 2001-02-26 03:22:33 +0000 |
| commit | 7307f39707a5c477dff31e36d829a224e7683f20 (patch) | |
| tree | 331f744292fa82633fad1659da58a8697775fe14 /graphics/netpbm/files/patch-cq | |
| parent | Update to version 0.13. (diff) | |
Update to version 9.11.
PR: 25323
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes:
svn path=/head/; revision=38725
Diffstat (limited to 'graphics/netpbm/files/patch-cq')
| -rw-r--r-- | graphics/netpbm/files/patch-cq | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-cq b/graphics/netpbm/files/patch-cq new file mode 100644 index 000000000000..fb7f35e05cab --- /dev/null +++ b/graphics/netpbm/files/patch-cq @@ -0,0 +1,42 @@ +--- pbm/pbmtext.c.orig Tue Jan 30 06:33:13 2001 ++++ pbm/pbmtext.c Sat Feb 24 00:00:00 2001 +@@ -14,6 +14,7 @@ + + #include "pbm.h" + #include "pbmfont.h" ++#include "shhopt.h" + + struct cmdline_info { + /* All the information the user supplied in the command line, +@@ -48,12 +49,22 @@ + + unsigned int option_def_index; + ++ /* Create the OptStruct structure describing our options */ ++ #define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\ ++ option_def[option_def_index].shortName = (shortvalue); \ ++ option_def[option_def_index].longName = (longvalue); \ ++ option_def[option_def_index].type = (typevalue); \ ++ option_def[option_def_index].arg = (outputvalue); \ ++ option_def[option_def_index].flags = (flagvalue); \ ++ option_def_index++; \ ++ } + option_def_index = 0; /* incremented by OPTENTRY */ + OPTENTRY(0, "font", OPT_STRING, &cmdline_p->font, 0); + OPTENTRY(0, "builtin", OPT_STRING, &cmdline_p->builtin, 0); + OPTENTRY(0, "dump", OPT_INT, &cmdline_p->dump, 0); + OPTENTRY(0, "space", OPT_FLOAT, &cmdline_p->space, 0); + OPTENTRY(0, "width", OPT_INT, &cmdline_p->width, 0); ++ option_def[option_def_index].type = OPT_END; + + /* Set the defaults */ + cmdline_p->font = NULL; +@@ -65,7 +76,7 @@ + opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */ + opt.allowNegNum = FALSE; /* We have no parms that are negative numbers */ + +- pm_optParseOptions2(&argc, argv, opt, 0); ++ optParseOptions2(&argc, argv, opt, 0); + /* Uses and sets argc, argv, and some of *cmdline_p and others. */ + + if (argc-1 == 0) |
