hw/xfree86/parser/xf86tokens.h | 1 +
6 files changed, 47 insertions(+), 9 deletions(-)
-Index: xorg-server-trusty-matchseat/hw/xfree86/common/xf86Config.c
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/common/xf86Config.c 2014-09-11 10:50:39.823851011 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/common/xf86Config.c 2014-09-11 10:55:16.098992439 -0300
-@@ -232,6 +232,18 @@
+--- a/hw/xfree86/common/xf86Config.c
++++ b/hw/xfree86/common/xf86Config.c
+@@ -233,6 +233,18 @@ xf86ValidateFontPath(char *path)
return tmp_path;
}
/*
* use the datastructure that the parser provides and pick out the parts
* that we need at this point
-@@ -1600,8 +1612,11 @@
+@@ -1604,8 +1616,11 @@ configLayout(serverLayoutPtr servlayoutp
* config file, or - if it is NULL - configScreen autogenerates one for
* us */
if (!count) {
0, X_CONFIG)) {
free(slp[0].screen);
free(slp);
-@@ -1841,7 +1856,7 @@
+@@ -1845,7 +1860,7 @@ configScreen(confScreenPtr screenp, XF86
* set it to NULL so that the section can be autoconfigured later */
screenp->device = xnfcalloc(1, sizeof(GDevRec));
if ((!conf_screen->scrn_device) && (xf86configptr->conf_device_lst)) {
xf86Msg(X_DEFAULT, "No device specified for screen \"%s\".\n"
"\tUsing the first device section listed.\n", screenp->id);
}
-@@ -2374,6 +2389,7 @@
+@@ -2378,6 +2393,7 @@ xf86HandleConfigFile(Bool autoconfig)
char *scanptr;
Bool singlecard = 0;
Bool implicit_layout = FALSE;
if (!autoconfig) {
char *filename, *dirname, *sysdirname;
-@@ -2449,14 +2465,17 @@
+@@ -2453,14 +2469,17 @@ xf86HandleConfigFile(Bool autoconfig)
*/
/* First check if a layout section is present, and if it is valid. */
xf86configptr)) {
xf86Msg(X_ERROR, "Unable to determine the screen layout\n");
return CONFIG_PARSE_ERROR;
-@@ -2471,16 +2490,13 @@
+@@ -2475,16 +2494,13 @@ xf86HandleConfigFile(Bool autoconfig)
if (optlist && xf86FindOption(optlist, "defaultserverlayout"))
dfltlayout =
xf86SetStrOption(optlist, "defaultserverlayout", NULL);
xf86Msg(X_ERROR, "Unable to determine the screen layout\n");
return CONFIG_PARSE_ERROR;
}
-Index: xorg-server-trusty-matchseat/hw/xfree86/parser/Device.c
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/parser/Device.c 2014-09-11 10:48:54.272129993 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/parser/Device.c 2014-09-11 10:55:16.094992284 -0300
-@@ -72,6 +72,7 @@
+--- a/hw/xfree86/parser/Device.c
++++ b/hw/xfree86/parser/Device.c
+@@ -72,6 +72,7 @@ xf86ConfigSymTabRec DeviceTab[] = {
{RAMDAC, "ramdac"},
{DACSPEED, "dacspeed"},
{CLOCKS, "clocks"},
{OPTION, "option"},
{VIDEORAM, "videoram"},
{BIOSBASE, "biosbase"},
-@@ -217,6 +218,11 @@
+@@ -217,6 +218,11 @@ xf86parseDeviceSection(void)
Error(NUMBER_MSG, "TextClockFreq");
ptr->dev_textclockfreq = (int) (val.realnum * 1000.0 + 0.5);
break;
case OPTION:
ptr->dev_option_lst = xf86parseOption(ptr->dev_option_lst);
break;
-Index: xorg-server-trusty-matchseat/hw/xfree86/parser/Layout.c
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/parser/Layout.c 2014-09-11 10:48:54.272129993 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/parser/Layout.c 2014-09-11 10:55:16.094992284 -0300
-@@ -71,6 +71,7 @@
+--- a/hw/xfree86/parser/Layout.c
++++ b/hw/xfree86/parser/Layout.c
+@@ -71,6 +71,7 @@ static xf86ConfigSymTabRec LayoutTab[] =
{ENDSECTION, "endsection"},
{SCREEN, "screen"},
{IDENTIFIER, "identifier"},
{INACTIVE, "inactive"},
{INPUTDEVICE, "inputdevice"},
{OPTION, "option"},
-@@ -110,6 +111,11 @@
+@@ -110,6 +111,11 @@ xf86parseLayoutSection(void)
ptr->lay_identifier = val.str;
has_ident = TRUE;
break;
case INACTIVE:
{
XF86ConfInactivePtr iptr;
-Index: xorg-server-trusty-matchseat/hw/xfree86/parser/Screen.c
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/parser/Screen.c 2014-09-11 10:48:54.272129993 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/parser/Screen.c 2014-09-11 10:55:16.094992284 -0300
-@@ -199,6 +199,7 @@
+--- a/hw/xfree86/parser/Screen.c
++++ b/hw/xfree86/parser/Screen.c
+@@ -199,6 +199,7 @@ xf86parseDisplaySubSection(void)
static xf86ConfigSymTabRec ScreenTab[] = {
{ENDSECTION, "endsection"},
{IDENTIFIER, "identifier"},
{OBSDRIVER, "driver"},
{MDEVICE, "device"},
{MONITOR, "monitor"},
-@@ -237,6 +238,11 @@
+@@ -237,6 +238,11 @@ xf86parseScreenSection(void)
Error(ONLY_ONE_MSG, "Identifier or Driver");
has_ident = TRUE;
break;
case OBSDRIVER:
if (xf86getSubToken(&(ptr->scrn_comment)) != STRING)
Error(QUOTE_MSG, "Driver");
-Index: xorg-server-trusty-matchseat/hw/xfree86/parser/xf86Parser.h
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/parser/xf86Parser.h 2014-09-11 10:48:54.272129993 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/parser/xf86Parser.h 2014-09-11 10:55:16.094992284 -0300
-@@ -224,6 +224,7 @@
+--- a/hw/xfree86/parser/xf86Parser.h
++++ b/hw/xfree86/parser/xf86Parser.h
+@@ -224,6 +224,7 @@ typedef struct {
int dev_screen;
XF86OptionPtr dev_option_lst;
char *dev_comment;
} XF86ConfDeviceRec, *XF86ConfDevicePtr;
typedef struct {
-@@ -275,6 +276,7 @@
+@@ -275,6 +276,7 @@ typedef struct {
XF86OptionPtr scrn_option_lst;
char *scrn_comment;
int scrn_virtualX, scrn_virtualY;
} XF86ConfScreenRec, *XF86ConfScreenPtr;
typedef struct {
-@@ -366,6 +368,7 @@
+@@ -366,6 +368,7 @@ typedef struct {
XF86ConfInactivePtr lay_inactive_lst;
XF86ConfInputrefPtr lay_input_lst;
XF86OptionPtr lay_option_lst;
char *lay_comment;
} XF86ConfLayoutRec, *XF86ConfLayoutPtr;
-Index: xorg-server-trusty-matchseat/hw/xfree86/parser/xf86tokens.h
-===================================================================
---- xorg-server-trusty-matchseat.orig/hw/xfree86/parser/xf86tokens.h 2014-09-11 10:48:54.272129993 -0300
-+++ xorg-server-trusty-matchseat/hw/xfree86/parser/xf86tokens.h 2014-09-11 10:55:16.094992284 -0300
-@@ -87,6 +87,7 @@
+--- a/hw/xfree86/parser/xf86tokens.h
++++ b/hw/xfree86/parser/xf86tokens.h
+@@ -87,6 +87,7 @@ typedef enum {
VENDOR,
DASH,
COMMA,