diff options
author | Leslie Giles <Leslie.Giles@riftio.com> | 2017-11-03 13:51:20 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-12-19 18:51:39 +0000 |
commit | 017e172150de75238c521b7c87f224aa8316026b (patch) | |
tree | be8cf54335e95ad40ba04a57ee188512652920c3 /girepository/gitypelib.c | |
parent | fe3c8e24e4684f9a4440c599c2a6b141281aaaf2 (diff) | |
download | gobject-introspection-017e172150de75238c521b7c87f224aa8316026b.tar.gz |
Increase MAX_NAME_LEN
There is no real limit on the length of an identifier, and some
toolchains easily hit the current limit of 200 characters.
According to this answer on StackOverflow, 2048 seems to be the limit on
MSVC and ICC:
https://stackoverflow.com/questions/6007568/what-is-max-length-for-an-c-c-identifier-on-common-build-systems
So let's use that.
https://bugzilla.gnome.org/show_bug.cgi?id=764791
Diffstat (limited to 'girepository/gitypelib.c')
-rw-r--r-- | girepository/gitypelib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index aaa83559..d9e924f6 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -467,7 +467,7 @@ is_aligned (guint32 offset) return offset == ALIGN_VALUE (offset, 4); } -#define MAX_NAME_LEN 200 +#define MAX_NAME_LEN 2048 static const char * get_string (GITypelib *typelib, guint32 offset, GError **error) |