After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 498621 - Handle possible parenthesis when matching enum values
Handle possible parenthesis when matching enum values
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-11-20 22:39 UTC by Marko Anastasov
Modified: 2008-01-20 17:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed regexp patch (916 bytes, patch)
2007-11-20 22:40 UTC, Marko Anastasov
none Details | Review

Description Marko Anastasov 2007-11-20 22:39:38 UTC
enum.pl should be able to detect enumerations with values enclosed in parenthesis, such as:

typedef enum  {
  G_FILE_MONITOR_FLAGS_NONE = 0,
  G_FILE_MONITOR_FLAGS_MONITOR_MOUNTS = (1<<0)
} GFileMonitorFlags;

A one-line change solves the problem for me, and it is, I believe, harmless.
Comment 1 Marko Anastasov 2007-11-20 22:40:13 UTC
Created attachment 99413 [details] [review]
proposed regexp patch
Comment 2 Murray Cumming 2007-11-30 11:05:38 UTC
Looks good to me. Thanks. Please apply to any branches (and trunk) that you like.
Comment 3 Murray Cumming 2008-01-20 17:56:07 UTC
Applied to svn trunk. Thanks.