mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-08 03:08:02 +02:00
Don't used C reserved identifiers
Seems incredibly unlikely this would ever be an issue, but it's easy enough to fix it. I fear for the Glib/GObject world where this is a standard design pattern. https://www.securecoding.cert.org/confluence/display/seccode/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier Freedesktop #70690 (https://bugs.freedesktop.org/show_bug.cgi?id=70690)
This commit is contained in:
parent
abdbaba3e0
commit
e1d44d2362
1 changed files with 6 additions and 6 deletions
12
pkg.h
12
pkg.h
|
|
@ -45,17 +45,17 @@ typedef enum
|
|||
ALWAYS_MATCH
|
||||
} ComparisonType;
|
||||
|
||||
typedef struct _Flag Flag;
|
||||
typedef struct _Package Package;
|
||||
typedef struct _RequiredVersion RequiredVersion;
|
||||
typedef struct Flag_ Flag;
|
||||
typedef struct Package_ Package;
|
||||
typedef struct RequiredVersion_ RequiredVersion;
|
||||
|
||||
struct _Flag
|
||||
struct Flag_
|
||||
{
|
||||
FlagType type;
|
||||
char *arg;
|
||||
};
|
||||
|
||||
struct _RequiredVersion
|
||||
struct RequiredVersion_
|
||||
{
|
||||
char *name;
|
||||
ComparisonType comparison;
|
||||
|
|
@ -63,7 +63,7 @@ struct _RequiredVersion
|
|||
Package *owner;
|
||||
};
|
||||
|
||||
struct _Package
|
||||
struct Package_
|
||||
{
|
||||
char *key; /* filename name */
|
||||
char *name; /* human-readable name */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue