[Glade-devel] [PATCH] renaming reserved C++ keywords

Tristan Van Berkom schrieb:
On Sun, 2006-12-10 at 18:08 +0100, Oliver Nittka wrote:
Tristan Van Berkom wrote:

If so, then sure I'll accept such a patch.

Please find it attached.

Here's what actually changed:

- Many occurrences of "class" renamed to "klass", especially the member
"class" of the struct _GladeProperty, which, in turn, led to many
renamings whenever an instance of that type was used.

- Many functions had an argument named "new". changed that to e.g.
"new_widget" or "new_object", depending on its type. if there also was
an argument named "old",it was renamed accordingly (so that the
function e.g. reads
(GtkWidget *old_widget, GtkWidget *new_widget)
 instead of
(GtkWidget *old, GtkWidget *new_widget)

- Renamed member "virtual" of struct _GladePropertyClass
(glade-property-class.h) to "virt" and also renamed it wherever an
instance of type GladePropertyClass was used.

When one of the above keywords appeared in a comment, it was only
renamed if it explicitely referred to a variable or an argument, e.g. in
doxygen comments.

This patch applies cleanly to the current cvs HEAD. Glade compiles and
runs without me noticing anything strange.

Hope you like it :-)

  -- o
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glade3-cxxnames.patch.gz
Type: application/x-gzip
Size: 22178 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/glade-devel/attachments/20061212/1ea33157/attachment-0001.gz 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]