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