[gobject-introspection] Increase MAX_NAME_LEN



commit 017e172150de75238c521b7c87f224aa8316026b
Author: Leslie Giles <Leslie Giles riftio com>
Date:   Fri Nov 3 13:51:20 2017 -0400

    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

 girepository/gitypelib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index aaa8355..d9e924f 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]