summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeslie Giles <Leslie.Giles@riftio.com>2017-11-03 13:51:20 -0400
committerEmmanuele Bassi <ebassi@gnome.org>2017-12-19 18:51:39 +0000
commit017e172150de75238c521b7c87f224aa8316026b (patch)
treebe8cf54335e95ad40ba04a57ee188512652920c3
parentfe3c8e24e4684f9a4440c599c2a6b141281aaaf2 (diff)
downloadgobject-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
-rw-r--r--girepository/gitypelib.c2
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)