CVS log for xc/programs/Xserver/hw/xfree86/parser/xf86Optrec.h

(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)
Current tag: xf-4_1_99_3

Revision 1.10 / (view) - annotate - [select for diffs] , Sat Jun 30 03:00:24 2001 UTC (11 years, 10 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, 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: +4 -3 lines
Diff to previous 1.9
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.

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