From a972dbb9bd731a439d009bd51e36981c41a06232 Mon Sep 17 00:00:00 2001 From: scuri Date: Tue, 20 Oct 2009 18:12:26 +0000 Subject: *** empty log message *** --- src/pdflib/pdcore/pc_optparse.h | 70 ++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 33 deletions(-) (limited to 'src/pdflib/pdcore/pc_optparse.h') diff --git a/src/pdflib/pdcore/pc_optparse.h b/src/pdflib/pdcore/pc_optparse.h index ac9e6f2..7c2f680 100644 --- a/src/pdflib/pdcore/pc_optparse.h +++ b/src/pdflib/pdcore/pc_optparse.h @@ -10,7 +10,7 @@ | | *---------------------------------------------------------------------------*/ -/* $Id: pc_optparse.h,v 1.1 2008/10/17 06:10:43 scuri Exp $ +/* $Id: pc_optparse.h,v 1.2 2009/10/20 18:12:26 scuri Exp $ * * Definitions for option parser routines * @@ -196,7 +196,7 @@ struct pdc_defopt_s { const char *name; /* name of option keyword */ pdc_opttype type; /* type of option */ - int flags; /* flags (see below) */ + unsigned int flags; /* flags (see below) */ int minnum; /* permitted minimal number of values */ int maxnum; /* permitted maximal number of values */ double minval; /* minimal permitted value / length of string */ @@ -208,49 +208,51 @@ struct pdc_defopt_s {NULL, pdc_booleanlist, 0L, 0, 0, 0.0, 0.0, NULL} #define PDC_OPT_NONE (0) /* no flag specified */ -#define PDC_OPT_NOZERO (1L<<0) /* zero value not allowed */ -#define PDC_OPT_NOSPACES (1L<<1) /* white spaces in strings not allowed */ -#define PDC_OPT_REQUIRED (1L<<2) /* option is required */ -#define PDC_OPT_BUILDOR (1L<<3) /* build an OR bit pattern by keycodes */ -#define PDC_OPT_INTLIST (1L<<4) /* keylist is list of allowed integers */ -#define PDC_OPT_IGNOREIF1 (1L<<5) /* option is ignored if previous option is +#define PDC_OPT_NOZERO (1U<<0) /* zero value not allowed */ +#define PDC_OPT_NOSPACES (1U<<1) /* white spaces in strings not allowed */ +#define PDC_OPT_REQUIRED (1U<<2) /* option is required */ +#define PDC_OPT_BUILDOR (1U<<3) /* build an OR bit pattern by keycodes */ +#define PDC_OPT_INTLIST (1U<<4) /* keylist is list of allowed integers */ +#define PDC_OPT_IGNOREIF1 (1U<<5) /* option is ignored if previous option is * specified */ -#define PDC_OPT_IGNOREIF2 (1L<<6) /* option is ignored if either of +#define PDC_OPT_IGNOREIF2 (1U<<6) /* option is ignored if either of * previous two options is specified */ -#define PDC_OPT_UNSUPP (1L<<8) /* option is not supported in this +#define PDC_OPT_UNSUPP (1U<<8) /* option is not supported in this * configuration */ -#define PDC_OPT_REQUIRIF1 (1L<<9) /* option is required if previous option is +#define PDC_OPT_REQUIRIF1 (1U<<9) /* option is required if previous option is * specified */ -#define PDC_OPT_REQUIRIF2 (1L<<10) /* option is required if either of +#define PDC_OPT_REQUIRIF2 (1U<<10) /* option is required if either of * previous two options is specified */ -#define PDC_OPT_EVENNUM (1L<<11) /* array has even number of elements */ -#define PDC_OPT_ODDNUM (1L<<12) /* array has odd number of elements */ +#define PDC_OPT_EVENNUM (1U<<11) /* array has even number of elements */ +#define PDC_OPT_ODDNUM (1U<<12) /* array has odd number of elements */ -/* member "compatibility" of pdc_clientdata_s must be specified (1L<<13) ... */ -#define PDC_OPT_PDC_1_3 (1L<