Skip to content

Commit

Permalink
allow utf8 to be char**
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Jul 22, 2024
1 parent 60613fe commit 05ef31b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/girepository-1.0/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ git clone https://github.com/gtk-rs/gir-files.git && cd gir-files
git checkout ${gir_version}
# utf8
sed -i 's/type name="utf8" c:type="gchar"/type name="gchar" c:type="gchar"/g' GLib-2.0.gir
sed -i '237,$s#<type name="utf8" c:type="gchar\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
sed -i 's#<type name="utf8" c:type="const gchar\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
sed -i 's#<type name="utf8" c:type="const gchar\* const\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
sed -i 's#<type name="utf8" c:type="const char\* const\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
# sed -i '237,$s#<type name="utf8" c:type="gchar\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
# sed -i 's#<type name="utf8" c:type="const gchar\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
# sed -i 's#<type name="utf8" c:type="const gchar\* const\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
# sed -i 's#<type name="utf8" c:type="const char\* const\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' GLib-2.0.gir
sed -i 's/type name="utf8" c:type="char"/type name="gchar" c:type="char"/g' HarfBuzz-0.0.gir
sed -i 's#<type name="utf8" c:type="const char\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' HarfBuzz-0.0.gir
# sed -i 's#<type name="utf8" c:type="const char\*\*"/>#<array c:type="const char \*\*"> <type name="utf8"/> </array>#g' HarfBuzz-0.0.gir
# introspectable="0"
sed -i 's/field name="priority" introspectable="0"/field name="priority"/g' GLib-2.0.gir
sed -i 's/enumeration name="ThreadPriority" introspectable="0" deprecated="1"/enumeration name="ThreadPriority"/g' GLib-2.0.gir
Expand Down

0 comments on commit 05ef31b

Please sign in to comment.