| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
A Python script that can replace the Perl script tools/enum.pl.
Why? Just because I've got fond of Python.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|