[vala/switch-to-gir: 20/24] girparser: Rename array_length_pos to array_length_idx in metadata.



commit 219ff78bb6b93cc92e755181364a5d5632df3f22
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Nov 20 09:56:38 2010 +0100

    girparser: Rename array_length_pos to array_length_idx in metadata.

 vala/valagirparser.vala                |    6 +++---
 vapi/packages/gio-2.0/Gio-2.0.metadata |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index b580d69..d2fdcaa 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -63,7 +63,7 @@ public class Vala.GirParser : CodeVisitor {
 		REPLACEMENT,
 		DEPRECATED_SINCE,
 		ARRAY,
-		ARRAY_LENGTH_POS,
+		ARRAY_LENGTH_IDX,
 		DEFAULT,
 		OUT,
 		REF,
@@ -1681,8 +1681,8 @@ public class Vala.GirParser : CodeVisitor {
 				ctype = null;
 			}
 
-			if (type is ArrayType && metadata.has_argument (ArgumentType.ARRAY_LENGTH_POS)) {
-				array_length_idx = metadata.get_integer (ArgumentType.ARRAY_LENGTH_POS);
+			if (type is ArrayType && metadata.has_argument (ArgumentType.ARRAY_LENGTH_IDX)) {
+				array_length_idx = metadata.get_integer (ArgumentType.ARRAY_LENGTH_IDX);
 			}
 
 			if (transfer == "full" || transfer == "container" || destroy != null) {
diff --git a/vapi/packages/gio-2.0/Gio-2.0.metadata b/vapi/packages/gio-2.0/Gio-2.0.metadata
index a151503..2d34c33 100644
--- a/vapi/packages/gio-2.0/Gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/Gio-2.0.metadata
@@ -18,7 +18,7 @@ AppLaunchContext
 	.get_display.files type_arguments="File"
 	.get_startup_notify_id.files type_arguments="File"
 ApplicationCommandLine.get_platform_data nullable
-BufferedInputStream.peek.buffer type="uint8[]" array_length_pos=2
+BufferedInputStream.peek.buffer type="uint8[]" array_length_idx=2
 BufferedInputStream.peek_buffer type="unowned uint8[]"
 	.count skip
 



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