[Vala] [patch] G.Scanner
- From: Xavier Bestel <xavier bestel free fr>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] [patch] G.Scanner
- Date: Tue, 27 Oct 2009 17:55:15 +0100
Hi,
could someone apply that please ?
Thanks,
Xav
--- /usr/share/vala/vapi/glib-2.0.vapi.orig 2009-10-20 19:22:51.000000000 +0200
+++ /usr/share/vala/vapi/glib-2.0.vapi 2009-10-21 17:10:01.000000000 +0200
@@ -2125,13 +2125,17 @@
public TokenValue next_value;
public uint next_line;
public uint next_position;
- public Scanner (ScannerConfig? config_templ);
+ public Scanner (ScannerConfig? config_templ = null);
public void input_file (int input_fd);
public void sync_file_offset ();
public void input_text (string text, uint text_len);
public TokenType peek_next_token ();
public TokenType get_next_token ();
public bool eof ();
+ public int cur_line ();
+ public int cur_position ();
+ public TokenType cur_token ();
+ public TokenValue cur_value ();
public uint set_scope (uint scope_id);
public void scope_add_symbol (uint scope_id, string symbol, void* value);
public void scope_foreach_symbol (uint scope_id, HFunc func);
@@ -2213,6 +2217,7 @@
}
[SimpleType]
+ [CCode (destroy_function = "")]
public struct TokenValue {
[CCode (cname="v_symbol")]
public void* symbol;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]