summaryrefslogtreecommitdiff
path: root/tools/enum.pl
Commit message (Collapse)AuthorAgeFilesLines
* gmmproc: Update enum.pl and h2def.py for new glib deprecation macrosKjell Ahlstedt2019-07-081-11/+28
| | | | | | | | | | | * tools/enum.pl: Don't replace MY_ENUMERATOR = '}' with MY_ENUMERATOR = ']'. Remove *_DEPRECATED_TYPE_IN_* and *_DEPRECATED_ENUMERATOR_IN_* when enum definitions are parsed. * tools/defs_gen/h2def.py: When parsing function declarations: Remove G_GNUC_BEGIN_IGNORE_DEPRECATIONS, G_GNUC_END_IGNORE_DEPRECATIONS and G_DECLARE_INTERFACE(*). Update the removals of *_DEPRECATED* and *_AVAILABLE_IN* so the new *_DEPRECATED_TYPE* and friends won't affect the result.
* gmmproc: Fix _WRAP_ENUM for enumerators with apostrophesKjell Ahlstedt2017-06-131-15/+28
| | | | | | | * tools/enum.pl: Handle enumerator values like 'B', 1u << 2, (gint)(1u << 31). Suppress repeated long warnings. * tools/pm/Output.pm: Handle enumerator values like 'B'. (1u << 2 and (gint)(1u << 31) require no fix.)
* Remove trailing whitespace.Murray Cumming2016-05-161-3/+3
|
* enums.pl: fixed multi-argument defines as enum valuesloganek2013-08-021-2/+28
|
* tools: Recursive whitespace cleanup in folder.José Alburquerque2011-06-051-1/+1
|
* Updated enum.pl script.Krzesimir Nowak2010-03-081-153/+390
| | | | | | | | | | | * tools/enum.pl: Updated to work with `use strict' and `use warnings', prints original enums in comments above every enum defs, added --omit-deprecated (just omits everything deprecated) option, handles most of enums and flags (especially flags!) properly, generates proper nicks for enums with one value, prints warnings to stderr about several stuff, uses some primitive heuristics to detect whether an enum is enum or flags. It is a better hack, but still a hack.
* Strip directory from filenames in enum.pl outputDaniel Elstner2009-08-241-11/+10
| | | | | | | | | * tools/enum.pl: Use File::Spec module. Reduce the backslashitis in a number of regular expressions by replacing the slash used as the delimiter with a less troublesome character. (parse): Only print the basename component of the filename. (process): Put \Q...\E quoting escapes around a variable reference within a regular expression to protect meta-characters.
* add start of Socket classJonathon Jongsma2009-06-201-0/+0
|
* Fix --module option in enum.pl to workSiavash Safi2009-05-191-1/+1
|
* Handle possible parenthesis when matching enum values declared as shiftedMarko Anastasov2008-01-201-1/+1
| | | | | | | | | 2008-01-20 Marko Anastasov <marko@marko.anastasov.name> * tools/enum.pl: Handle possible parenthesis when matching enum values declared as shifted ones. Bug #498621. svn path=/trunk/; revision=528
* Ignore whitespace in front of an enum typedef. This fixes parsing ofDaniel Elstner2006-11-271-1/+1
| | | | | | | | | | * tools/enum.pl (parse): Ignore whitespace in front of an enum typedef. This fixes parsing of HildonTelephoneEditorFormat in hildon-libs. * tools/pm/Enum.pm (parse_values): Check whether the enumeration constants actually have a common module prefix before attempting to remove it. This fixes the incorrect parsing of inconsistently named enums in hildon-libs.
* Break the loop if the length of the common prefix reaches zero. This fixesDaniel Elstner2006-11-271-1/+4
| | | | | | | * tools/enum.pl (form_names): Break the loop if the length of the common prefix reaches zero. This fixes the infinite loop when processing the inconsistently named enumeration constants of the Hildon libraries.
* Initial revisionMurray Cumming2003-01-071-0/+230