deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Copyright (c) 1997 Metro Link Incorporated
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * copy of this software and associated documentation files (the "Software"),
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * to deal in the Software without restriction, including without limitation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and/or sell copies of the Software, and to permit persons to whom the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Software is furnished to do so, subject to the following conditions:
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * The above copyright notice and this permission notice shall be included in
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * all copies or substantial portions of the Software.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * SOFTWARE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Except as contained in this notice, the name of the Metro Link shall not be
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * used in advertising or otherwise to promote the sale, use or other dealings
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * in this Software without prior written authorization from Metro Link.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Copyright (c) 1997-2002 by The XFree86 Project, Inc.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * copy of this software and associated documentation files (the "Software"),
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * to deal in the Software without restriction, including without limitation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and/or sell copies of the Software, and to permit persons to whom the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Software is furnished to do so, subject to the following conditions:
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * The above copyright notice and this permission notice shall be included in
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * all copies or substantial portions of the Software.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * OTHER DEALINGS IN THE SOFTWARE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Except as contained in this notice, the name of the copyright holder(s)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * and author(s) shall not be used in advertising or otherwise to promote
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * the sale, use or other dealings in this Software without prior written
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * authorization from the copyright holder(s) and author(s).
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * These definitions are used through out the configuration file parser, but
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * they should not be visible outside of the parser.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsynctypedef struct
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define TestFree(a) if (a) { xf86conffree (a); a = NULL; }
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define parsePrologue(typeptr,typerec) typeptr ptr; \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncif( (ptr=(typeptr)xf86confcalloc(1,sizeof(typerec))) == NULL ) { return NULL; } \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define parsePrologueVoid(typeptr,typerec) int token; typeptr ptr; \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncif( (ptr=(typeptr)xf86confcalloc(1,sizeof(typerec))) == NULL ) { return; } \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ptr->field = (type) xf86addListItem ((glp) ptr->field, (glp) p);\
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync xf86parseError (a, b); CLEANUP (ptr); return NULL; \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync } while (0)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * These are defines for error messages to promote consistency.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * error messages are preceded by the line number, section and file name,
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * so these messages should be about the specific keyword and syntax in error.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * To help limit namespace polution, end each with _MSG.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * limit messages to 70 characters if possible.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Option keyword requires 1 or 2 quoted strings to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"\"%s\" is not a valid keyword in this section."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"\"%s\" is not a valid section name."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Unexpected EOF. Missing EndSection keyword?"
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The %s keyword requires a quoted string to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The %s keyword requires a number to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The %s keyword requires a positive integer to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The ZAxisMapping keyword requires 2 positive numbers or X or Y to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The AutoRepeat keyword requires 2 numbers (delay and rate) to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The XLeds keyword requries one or more numbers to follow it."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The DacSpeed keyword must be followed by a list of up to %d numbers."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The DisplaySize keyword must be followed by the width and height in mm."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The HorizSync keyword must be followed by a list of numbers or ranges."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The VertRefresh keyword must be followed by a list of numbers or ranges."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Viewport keyword must be followed by an X and Y value."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Virtual keyword must be followed by a width and height value."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Weight keyword must be followed by red, green and blue values."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Black keyword must be followed by red, green and blue values."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The White keyword must be followed by red, green and blue values."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Screen keyword must be followed by an optional number, a screen name\n" \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"\tin quotes, and optional position/layout information."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Invalid Screen line."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The InputDevice keyword must be followed by an input device name in quotes."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Inactive keyword must be followed by a Device name in quotes."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined Screen \"%s\" referenced by ServerLayout \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined Monitor \"%s\" referenced by Screen \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined Modes Section \"%s\" referenced by Monitor \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined Device \"%s\" referenced by Screen \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined VideoAdaptor \"%s\" referenced by Screen \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"VideoAdaptor \"%s\" already referenced by Screen \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined Device \"%s\" referenced by ServerLayout \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Undefined InputDevice \"%s\" referenced by ServerLayout \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"This section must have an Identifier line."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"This section must have only one of either %s line."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Device section \"%s\" must have a Driver line."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"InputDevice section \"%s\" must have a Driver line."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"gamma correction value(s) expected\n either one value or three r/g/b values."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"The Group keyword must be followed by either a group name in quotes or\n" \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"\ta numerical group id."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Multiple \"%s\" lines."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/* Warning messages */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Ignoring obsolete keyword \"%s\"."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync"Keyword \"%s\" is now an Option flag in the ServerFlags section."
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#endif /* _Configint_h_ */