summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2004-07-31 09:14:06 +0000
committerKevin E Martin <kem@kem.org>2004-07-31 09:14:06 +0000
commit383b6b59864098b03d991628ff5933d997793ea1 (patch)
tree8c09ab41d2a62542369fb50bc2ac440429d7e54d /os
parentd690556d496c7331bd112903a0c9e6553c7d3342 (diff)
Add "Extensions" section support to configuration parser
Diffstat (limited to 'os')
-rw-r--r--os/utils.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/os/utils.c b/os/utils.c
index eccb2b37a..e232165a0 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.3 2004/06/19 21:56:01 gisburn Exp $ */
+/* $XdotOrg: xc/programs/Xserver/os/utils.c,v 1.4 2004/07/31 04:23:21 kem Exp $ */
/* $Xorg: utils.c,v 1.5 2001/02/09 02:05:24 xorgcvs Exp $ */
/*
@@ -142,6 +142,10 @@ Bool PanoramiXOneExposeRequest = FALSE;
Bool noXevieExtension = TRUE;
#endif
+#ifdef COMPOSITE
+Bool noCompositeExtension = TRUE;
+#endif
+
int auditTrailLevel = 1;
Bool Must_have_memory = FALSE;
@@ -177,6 +181,7 @@ extern char dispatchExceptionAtReset;
/* Extension enable/disable in miinitext.c */
extern Bool EnableDisableExtension(char *name, Bool enable);
+extern void EnableDisableExtensionError(char *name, Bool enable);
OsSigHandlerPtr
OsSignal(sig, handler)
@@ -1011,12 +1016,22 @@ ProcessCommandLine(int argc, char *argv[])
#endif
else if ( strcmp( argv[i], "+extension") == 0)
{
- if (++i >= argc || !EnableDisableExtension(argv[i], TRUE))
+ if (++i < argc)
+ {
+ if (!EnableDisableExtension(argv[i], TRUE))
+ EnableDisableExtensionError(argv[i], TRUE);
+ }
+ else
UseMsg();
}
else if ( strcmp( argv[i], "-extension") == 0)
{
- if (++i >= argc || !EnableDisableExtension(argv[i], FALSE))
+ if (++i < argc)
+ {
+ if (!EnableDisableExtension(argv[i], FALSE))
+ EnableDisableExtensionError(argv[i], FALSE);
+ }
+ else
UseMsg();
}
else