[Mesa-dev] [PATCH 2/2] glcpp: Replace multi-line comment with a space (even as part of macro definition)

Carl Worth cworth at cworth.org
Thu Dec 19 16:33:17 PST 2013


Carl Worth <cworth at cworth.org> writes:
> Given those considerations, and given that the SKIP-state manipulation already
> involves a code block at the top of the lexer function, before any rules, it
> seems best to me to go with the implementation here which adds a similar
> pre-rule code block for the NEWLINE_CATCHUP.

Since, apparently, that commit message wasn't long enough already, I
just amended my commit locally to add:

  Finally, this commit also changes the expected output of a few, existing glcpp
  tests. The change here is that the space character resulting from the
  multi-line comment is now emitted before the newlines corresponding to that
  comment. (Previously, the newlines were emitted first, and the space character
  afterward.)

  Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72686

The updates to these tests do look a bit odd if you just read the
patch. I've tried to review those whitespace-only patch hunks fairly
carefully, but don't take my word for it.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131219/e5d23d4b/attachment.pgp>


More information about the mesa-dev mailing list