CVS log for xc/programs/Xserver/hw/xfree86/parser/Video.c

(logo)

Help

(back) Up to [XFree86 CVS] / xc / programs / Xserver / hw / xfree86 / parser

Request diff between arbitrary revisions


Default branch: MAIN
Bookmark a link to: HEAD / (download)

Revision 1.16 / (view) - annotate - [select for diffs] , Wed Aug 9 19:53:16 2006 UTC (6 years, 9 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_8_0-bindist, xf-4_8_0, xf-4_8-branch, xf-4_7_99_9, xf-4_7_99_8, xf-4_7_99_7, xf-4_7_99_6, xf-4_7_99_5, xf-4_7_99_4, xf-4_7_99_31, xf-4_7_99_30, xf-4_7_99_3, xf-4_7_99_29, xf-4_7_99_28, xf-4_7_99_27, xf-4_7_99_26, xf-4_7_99_25, xf-4_7_99_24, xf-4_7_99_23, xf-4_7_99_22, xf-4_7_99_21, xf-4_7_99_20, xf-4_7_99_2, xf-4_7_99_19, xf-4_7_99_18, xf-4_7_99_17, xf-4_7_99_16, xf-4_7_99_15, xf-4_7_99_14, xf-4_7_99_13, xf-4_7_99_12, xf-4_7_99_11, xf-4_7_99_10, xf-4_7_99_1, xf-4_7_0, xf-4_7-branch, xf-4_6_99_9, xf-4_6_99_8, xf-4_6_99_7, xf-4_6_99_6, xf-4_6_99_29, xf-4_6_99_28, xf-4_6_99_27, xf-4_6_99_26, xf-4_6_99_25, xf-4_6_99_24, xf-4_6_99_23, xf-4_6_99_22, xf-4_6_99_21, xf-4_6_99_20, xf-4_6_99_19, xf-4_6_99_18, xf-4_6_99_17, xf-4_6_99_16, xf-4_6_99_15, xf-4_6_99_14, xf-4_6_99_13, xf-4_6_99_12, xf-4_6_99_11, xf-4_6_99_10, HEAD
Changes since 1.15: +10 -10 lines
Diff to previous 1.15
  63. Fix a case where X server audit messages do not get printed (David Dawes).
  62. Initialise the allocator even earlier in the X server startup, and use
      it for the logging functions (David Dawes).
  61. Parser option handling cleanups/fixes:
       - Ensure that option data is allocated by the parser, rather than
         externally allocated or static.
       - Free replaced option data.
       - Make xf86ParseOption's handling of multiple options of the same
         name consistent with all other cases (last occurrence is used).
       - Fix a bug in the handling of the Keyboard section "xleds" keyword.
      (David Dawes).

Revision 1.15 / (view) - annotate - [select for diffs] , Wed Jan 26 05:31:50 2005 UTC (8 years, 3 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_6_99_5, xf-4_6_99_4, xf-4_6_99_3, xf-4_6_99_2, xf-4_6_99_1, xf-4_6_0, xf-4_6-branch, xf-4_5_99_904, xf-4_5_99_903, xf-4_5_99_902, xf-4_5_99_901, xf-4_5_99_9, xf-4_5_99_8, xf-4_5_99_7, xf-4_5_99_6, xf-4_5_99_5, xf-4_5_99_4, xf-4_5_99_3, xf-4_5_99_22, xf-4_5_99_21, xf-4_5_99_20, xf-4_5_99_2, xf-4_5_99_19, xf-4_5_99_18, xf-4_5_99_17, xf-4_5_99_16, xf-4_5_99_15, xf-4_5_99_14, xf-4_5_99_13, xf-4_5_99_12, xf-4_5_99_11, xf-4_5_99_10, xf-4_5_99_1, xf-4_5_0, xf-4_5-branch, xf-4_4_99_903, xf-4_4_99_902, xf-4_4_99_901, xf-4_4_99_22
Changes since 1.14: +62 -5 lines
Diff to previous 1.14
 283. First phase of dynamic configuration (David Dawes, S. Lussos,
      Michael Dawes, J. D. Darling, X-Oz Technologies).

Revision 1.14 / (view) - annotate - [select for diffs] , Fri Feb 13 23:58:50 2004 UTC (9 years, 3 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_4_99_9, xf-4_4_99_8, xf-4_4_99_7, xf-4_4_99_6, xf-4_4_99_5, xf-4_4_99_4, xf-4_4_99_3, xf-4_4_99_21, xf-4_4_99_20, xf-4_4_99_2, xf-4_4_99_19, xf-4_4_99_18, xf-4_4_99_17, xf-4_4_99_16, xf-4_4_99_15, xf-4_4_99_14, xf-4_4_99_13, xf-4_4_99_12, xf-4_4_99_11, xf-4_4_99_10, xf-4_4_99_1, xf-4_4_0, xf-4_4-branch, xf-4_3_99_903
Changes since 1.13: +40 -20 lines
Diff to previous 1.13
 802. Licence update.
(except client-side libraries)

Revision 1.13 / (view) - annotate - [select for diffs] , Sun Aug 24 16:37:08 2003 UTC (9 years, 9 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_3_99_902, xf-4_3_99_901, xf-4_3_99_16, xf-4_3_99_15, xf-4_3_99_14, xf-4_3_99_13, xf-4_3_99_12, xf-4_3_99_11
Changes since 1.12: +27 -1 lines
Diff to previous 1.12
Add/update copyright and license notices.

Revision 1.12 / (view) - annotate - [select for diffs] , Sat Jan 4 20:20:23 2003 UTC (10 years, 4 months ago) by paulo
Branch: MAIN
CVS Tags: xf-4_3_99_9, xf-4_3_99_8, xf-4_3_99_7, xf-4_3_99_6, xf-4_3_99_5, xf-4_3_99_4, xf-4_3_99_3, xf-4_3_99_2, xf-4_3_99_10, xf-4_3_99_1, xf-4_3_0_2, xf-4_3_0_1, xf-4_3_0, xf-4_3-branch, xf-4_2_99_902, xf-4_2_99_901, xf-4_2_99_4
Changes since 1.11: +1 -5 lines
Diff to previous 1.11
   Almost revert patch that added EOL_TOKEN, now everything is handled
in scan.c. Thanks to David Dawes for suggesting a very simpler way to
handle comments.
   The addition of EOL_TOKEN had it's merits, but it is better to have
the libxf68config parser completely backwards compatible, and the previous
patch showed some problems when reading XF86Config files generated by
hand.
   It doesn't always generate an identical file when writting back some
files generated by hand, but no comments/contents are lost, and, once the
file is written one time with libxf86config, subsequent reads and writes
will generate the same contents.

Revision 1.11 / (view) - annotate - [select for diffs] , Wed Jan 1 19:22:22 2003 UTC (10 years, 4 months ago) by paulo
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10
o Added a new EOL_TOKEN to the parser, that is generated every time a new
  line is read from the config file, and most times just ignored, but is
  useful for configurations that may wish to know if all options are in
  the same line.
o This patch also doesn't allow '#' in identifiers, before the patch, the
  parser could get confused with input like "EndSection# comment".
o Fix potencial problem in xf86cfg, when changing inplace an option value,
  it was also freeing it's comment but not setting the comment field to
  NULL.

  This is the second version of a patch to fix a problem described by
Mike Harris:

--
For example, if the original file contains:

# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
        #Option "XkbOptions"    ""
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules" "xfree86"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
        #Option "XkbVariant"    ""

After reading in with libxf86config and writing back out, it
looks like:

# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
        #Option "XkbOptions"    ""
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules" "xfree86"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"    #Option "XkbVariant"    ""


The '#Option "XkbVariant"    ""' part moved to the previous
line.
--

  Note that comments aren't guaranteed to be restored to the exact
format before being read by libxf86config, particularly, if an
explanation should be done for a given section, the comment must
be inside the section, for example:

--
# comment
Section "InputDevice"
...
--

when saving the file with libxf86config, '# comment' will be placed
in the start of the file, while:

--
Section "InputDevice"
# comment
...
--

will be correctly restored.

Revision 1.10 / (view) - annotate - [select for diffs] , Mon Aug 6 19:51:15 2001 UTC (11 years, 9 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_2_99_3, xf-4_2_99_2, xf-4_2_99_1, xf-4_2_1_2, xf-4_2_1_1, xf-4_2_1, xf-4_2_0_1, xf-4_2_0-bindist-1, xf-4_2_0-bindist, xf-4_2_0, xf-4_2-branch, xf-4_1_99_7, xf-4_1_99_6, xf-4_1_99_5, xf-4_1_99_4, xf-4_1_99_3, xf-4_1_99_2, xf-4_1_99_1, Domain-branch
Changes since 1.9: +3 -1 lines
Diff to previous 1.9
 178. Fix some more mi build warnings (David Dawes).
 177. Fix some mi build warnings (#4716-4719,4721-4724, Adam Sulmicki).
 176. Port for Linux/SuperH (Jornada680/690 and SEGA Dreamcast) (#4680, 4681,
      ISHIKAWA Mutsumi).
 175. Support for mouse wheel emulation (#A.506, Henry T. So).

Revision 1.9 / (view) - annotate - [select for diffs] , Mon Jul 2 14:38:34 2001 UTC (11 years, 10 months ago) by paulo
Branch: MAIN
Changes since 1.8: +8 -8 lines
Diff to previous 1.8
These changes should make the parser behaviour identical do before my
previous commit and still keep saving comments.

Revision 1.8 / (view) - annotate - [select for diffs] , Sat Jun 30 03:00:24 2001 UTC (11 years, 10 months ago) by paulo
Branch: MAIN
Changes since 1.7: +17 -52 lines
Diff to previous 1.7
Summary:

Changed parser to read and restore comments.
Basically it will save all global comments and when rewriting the file,
write then at the top of the file. Example:
--
# comment
Section ..
--
is correctly written, but
--
# comment 1
Section ...
# comment 2
--
is written back as:
--
# comment 1
# comment 2
Section ...
--
the same happens to comments inside a section.

Comments for "Option", "Load" (Section Modules),
"LoadDriver" (Section Modules), and "Buffers" (Section DRI) will be
appended to the end of the line.

Notes:

o When the token COMMENT is returned, val.str is not a newly allocated string,
  so it should be used as an argument to xf86addComment.
o Comments generated by xf86addComment are guaranteed to start with '#', with
  optional leading ' ' or '\t', and also guaranteed to end with an '\n'.
o xf86parseOption and xf86printOptionList are helper functions, to avoid
  too much duplicated code, and also correctly handle comments for options.

Wishlist:

o It could also be written in a new way, to save from where a global comment
  came, so that it can be restored "before" printing the associated "Section".
  The same may be done inside "Section"s.
o It may be also be changed to store comments like:
	Identifier	"ident"		# some comment
  but that would require a comment field for every structure field.
o It may even be changed to add blank lines as comments, but would need the
  previous wishlists implemented.

Revision 1.7 / (view) - annotate - [select for diffs] , Wed Feb 21 23:37:04 2001 UTC (12 years, 3 months ago) by paulo
Branch: MAIN
CVS Tags: xf-4_1_0_2, xf-4_1_0_1, xf-4_1_0-bindist, xf-4_1_0, xf-4_1-branch, xf-4_0_99_902, xf-4_0_99_901, xf-4_0_99_900, xf-4_0_99_3, xf-4_0_99_2
Changes since 1.6: +7 -1 lines
Diff to previous 1.6
monitor-cfg.c: fixed bug when parsing several sync ranges fields separated
	       by commas.
parser/Monitor.c: changed the parser to allow muliple sync ranges in the
		  same line, and separated by commas, as specified in the
		  XF86Config man page.
parser/*.{c,h}: added check for duplicated Identifier lines.

Thanks to Andrew Ritger for pointing the problem in sync ranges parsing and
to Andy Isaacson for pointing the problem of multiple Identifier lines.

Revision 1.6 / (view) - annotate - [select for diffs] , Thu Nov 30 20:45:34 2000 UTC (12 years, 5 months ago) by paulo
Branch: MAIN
CVS Tags: xf-4_0_99_1, xf-4_0_3b, xf-4_0_3a, xf-4_0_3, xf-4_0_2c, xf-4_0_2b, xf-4_0_2a, xf-4_0_2-branch, xf-4_0_2-bindist, xf-4_0_2, xf-4_0_1h, xf-4_0_1Zc, xf-4_0_1Zb, xf-4_0_1Za, xf-4_0_1Z, pre-R651-import
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
DRI.c modified to print the dri_mode field, and to call xf86freeBuffersList
      from xf86freeDRI.
Device.c modified to print the dev_screen field as a number instead of a string.
Screen.c modified to print the disp_weight, displ_black and disp_white fields.
	 The fields are being printed with the format 0x%04x, comments or
	 corrections on this are welcome.
Vendor.c modified to correct tabulations in subsection, to call
	 xf86freeVendorSubList from xf86freeVendorList and to test the
	 vs_name subfield, and free it if not NULL.
Video.c modified to correct tabulations for VideoPort subsection.
read.c modified to add a call to xf86freeVendorList and xf86freeDRI in
       xf86freeConfig.

Revision 1.5 / (view) - annotate - [select for diffs] , Tue Nov 28 16:10:40 2000 UTC (12 years, 5 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_0_1g
Changes since 1.4: +2 -1 lines
Diff to previous 1.4
1000. Fix parser not dup'ing a string (#4272, Paulo Cesar Pereira de Andrade).
 999. Improve direct fifo writes for the glint/permedia3 pixmapwrite hook
      when using FIFO disconnect (#4271, Sven Luther).
 998. Fix a sprite problem with the "xwin" server (#4269, Suhaib M. Siddiqi).
 997. Fix a confusing local typedef for "wchar_t' in xc/lib/X11/lcUTF8.c
      (#4268, Bruno Haible).
 996. Allow ProjectVar to override "/var" when set (based on #4266,
      Bruno Haible).

Revision 1.4 / (view) - annotate - [select for diffs] , Fri Oct 20 13:59:03 2000 UTC (12 years, 7 months ago) by alanh
Branch: MAIN
CVS Tags: xf-4_0_1f, xf-4_0_1e, xf-4_0_1d
Changes since 1.3: +35 -35 lines
Diff to previous 1.3
 775. Pass depth/bpp correctly, scan all fb devices, misc fb fixes.
      (#4179, Michel Danzer).
 774. Add generic Vesa driver, fixes for xf86cfg plus changes to parser to
      reflect xf86cfg changes (#4174,#4175, Paulo Cesar Pereira de Andrade).

Revision 1.3 / (view) - annotate - [select for diffs] , Sun May 30 13:04:26 1999 UTC (13 years, 11 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_0g, xf-4_0f, xf-4_0e, xf-4_0d, xf-4_0c, xf-4_0b, xf-4_0a, xf-4_0_1c, xf-4_0_1b, xf-4_0_1a, xf-4_0_1-bindist, xf-4_0_1, xf-4_0Z, xf-4_0-bindist, xf-4_0, xf-3_9_18b, xf-3_9_18a, xf-3_9_18Za, xf-3_9_18Z, xf-3_9_18, xf-3_9_17f, xf-3_9_17e, xf-3_9_17d, xf-3_9_17c, xf-3_9_17b, xf-3_9_17a, xf-3_9_17Z, xf-3_9_17, xf-3_9_16f, xf-3_9_16e, xf-3_9_16d, xf-3_9_16c, xf-3_9_16b, xf-3_9_16a, xf-3_9_16Za, xf-3_9_16Z, xf-3_9_16, xf-3_9_15d, xf-3_9_15c, xf-3_9_15b, xf-3_9_15a, xf-3_9_15, xf-3_9Py, xf-3_9Px, xf-3_9Pw, xf-3_9Pv, xf-3_9Pu, xf-3_9Pt, xf-3_9Ps, xf-3_9Pr, xf-3_9Pq, xf-3_9Pp
Changes since 1.2: +4 -2 lines
Diff to previous 1.2
rework the config file searching and allow "safe" relative paths to be
specified by non-root users.
Fix the XINPUT mouse map change

Revision 1.2 / (view) - annotate - [select for diffs] , Sun May 23 13:38:08 1999 UTC (14 years ago) by dawes
Branch: MAIN
CVS Tags: xf-3_9Po
Changes since 1.1: +2 -2 lines
Diff to previous 1.1
Enable the new input code (NewInput) by default in xfree86.cf.
Add compatibilty support for interpreting "Pointer" sections as
"InputDevice" sections in the reworked input device code.

Revision 1.1 / (view) - annotate - [select for diffs] , Sun Mar 7 11:40:43 1999 UTC (14 years, 2 months ago) by dawes
Branch: MAIN
CVS Tags: xf-3_9Pn, xf-3_9Pm, xf-3_9Pl, xf-3_9Pk, xf-3_9Pj, xf-3_9Pi, xf-3_9Phb, xf-3_9Pha, xf-3_9Ph-branch, xf-3_9Ph, xf-3_9Pg, xf-3_9Pf, xf-3_9Pe, xf-3_9Pd
#2520-2527

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Diffs between and
Type of Diff should be a

View only Branch:
Sort log by:

Powered by
ViewCVS 0.9.2