diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-08-07 19:08:41 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-08-07 19:08:41 +0000 |
commit | e48dcbaf154cdc028aa3f743673f554404a4bbf6 (patch) | |
tree | 16a256f0df73d8848cedc09c1232a10f7d234d97 /epan/dtd_grammar.lemon | |
parent | 553c56569950e68fa9f2ca620325e1921814dfdc (diff) |
Replace deprecated glib functions.
set DG_DISABLE_DEPRECATED for windows build.
svn path=/trunk/; revision=38394
Diffstat (limited to 'epan/dtd_grammar.lemon')
-rw-r--r-- | epan/dtd_grammar.lemon | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dtd_grammar.lemon b/epan/dtd_grammar.lemon index 5a2529e1ab..98d9678a5d 100644 --- a/epan/dtd_grammar.lemon +++ b/epan/dtd_grammar.lemon @@ -99,7 +99,7 @@ doctype ::= TAG_START DOCTYPE_KW NAME(Name) OPEN_BRACKET dtd_parts CLOSE_BRACKET bd->proto_root = Name->text; - g_strdown(bd->proto_name); + g_ascii_strdown(bd->proto_name, -1); for( i = 0; i< bd->elements->len; i++) { dtd_named_list_t* el = g_ptr_array_index(bd->elements,i); @@ -123,7 +123,7 @@ dtd_parts ::= attlist(Attlist). { g_ptr_array_add(bd->attributes,Attlist); } %type attlist { dtd_named_list_t* } attlist(A) ::= TAG_START ATTLIST_KW NAME(B) attrib_list(TheList) TAG_STOP. { - g_strdown(B->text); + g_ascii_strdown(B->text, -1); A = dtd_named_list_new(B->text,TheList); g_free(B->location); g_free(B); @@ -131,7 +131,7 @@ attlist(A) ::= TAG_START ATTLIST_KW NAME(B) attrib_list(TheList) TAG_STOP. { %type element { dtd_named_list_t* } element(A) ::= TAG_START ELEMENT_KW NAME(B) sub_elements(C) TAG_STOP. { - g_strdown(B->text); + g_ascii_strdown(B->text, -1); A = dtd_named_list_new(B->text,C); g_free(B->location); g_free(B); @@ -144,7 +144,7 @@ attrib_list(A) ::= attrib(B). { A = g_ptr_array_new(); g_ptr_array_add(A,B); } %type attrib { gchar* } attrib(A) ::= NAME(B) att_type att_default. { A = B->text; - g_strdown(A); + g_ascii_strdown(A, -1); g_free(B->location); g_free(B); } @@ -190,28 +190,28 @@ element_list(A) ::= element_list(B) PIPE sub_elements(C). { A = g_ptr_array_jo %type element_child { gchar* } element_child(A) ::= NAME(B). { A = B->text; - g_strdown(A); + g_ascii_strdown(A, -1); g_free(B->location); g_free(B); } element_child(A) ::= NAME(B) STAR. { A = B->text; - g_strdown(A); + g_ascii_strdown(A, -1); g_free(B->location); g_free(B); } element_child(A) ::= NAME(B) QUESTION. { A = B->text; - g_strdown(A); + g_ascii_strdown(A, -1); g_free(B->location); g_free(B); } element_child(A) ::= NAME(B) PLUS. { A = B->text; - g_strdown(A); + g_ascii_strdown(A, -1); g_free(B->location); g_free(B); } |