X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/f3b35b6bbd646fb0e676ef3d64c91b38ff9f9162..e571b0f1645bf296026f09b2c43854b178bc4e31:/xscsize.c diff --git a/xscsize.c b/xscsize.c index 93cac68..f0743c3 100644 --- a/xscsize.c +++ b/xscsize.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: xscsize.c,v 1.2 1998/11/21 22:30:22 mdw Exp $ + * $Id: xscsize.c,v 1.4 1999/08/20 07:31:00 mdw Exp $ * * Return X display size to shell script * @@ -29,6 +29,12 @@ /*----- Revision history --------------------------------------------------* * * $Log: xscsize.c,v $ + * Revision 1.4 1999/08/20 07:31:00 mdw + * Use new `mdwopt' flags in options table. + * + * Revision 1.3 1998/12/11 09:50:05 mdw + * Minor modifications to work with mLib and mgLib. + * * Revision 1.2 1998/11/21 22:30:22 mdw * Support GNU-style long options throughout, and introduce proper help * text to all programs. Update manual pages to match. @@ -46,8 +52,8 @@ #include -#include "mdwopt.h" -#include "quis.h" +#include +#include /*----- Main code ---------------------------------------------------------*/ @@ -80,14 +86,14 @@ int main(int argc, char *argv[]) for (;;) { static struct option opt[] = { - { "help", 0, 0, 'h' }, - { "usage", 0, 0, 'u' }, - { "version", 0, 0, 'v' }, - { "display", required_argument, 0, 'd' }, - { "bourne-shell", 0, 0, 'b' }, - { "c-shell", 0, 0, 'c' }, - { "export", 0, 0, 'x' }, - { 0, 0, 0, 0 } + { "help", 0, 0, 'h' }, + { "usage", 0, 0, 'u' }, + { "version", 0, 0, 'v' }, + { "display", OPTF_ARGREQ, 0, 'd' }, + { "bourne-shell", 0, 0, 'b' }, + { "c-shell", 0, 0, 'c' }, + { "export", 0, 0, 'x' }, + { 0, 0, 0, 0 } }; int i = getopt_long(argc, argv, "huv d:bcx", opt, 0);