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
This commit is contained in:
Leslie Giles 2017-11-03 13:51:20 -04:00 committed by Emmanuele Bassi
parent ac76bbb53b
commit 5ecbc70a05

View File

@ -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)