Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/generate_phpdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
# map a Python gtype to PHP argument type names
gtype_to_php_arg = {
GValue.gbool_type: 'bool',
GValue.gint_type: 'integer',
GValue.gint_type: 'int',
GValue.gdouble_type: 'float',
GValue.gstr_type: 'string',
GValue.refstr_type: 'string',
GValue.genum_type: 'string',
GValue.gflags_type: 'integer',
GValue.gflags_type: 'int',
GValue.gobject_type: 'string',
GValue.image_type: 'Image',
GValue.array_int_type: 'integer[]|integer',
GValue.array_int_type: 'int[]|int',
GValue.array_double_type: 'float[]|float',
GValue.array_image_type: 'Image[]|Image',
GValue.blob_type: 'string',
Expand All @@ -39,12 +39,12 @@
# php result type names are different, annoyingly, and very restricted
gtype_to_php_result = {
GValue.gbool_type: 'bool',
GValue.gint_type: 'integer',
GValue.gint_type: 'int',
GValue.gdouble_type: 'float',
GValue.gstr_type: 'string',
GValue.refstr_type: 'string',
GValue.genum_type: 'string',
GValue.gflags_type: 'integer',
GValue.gflags_type: 'int',
GValue.gobject_type: 'string',
GValue.image_type: 'Image',
GValue.array_int_type: 'array',
Expand Down
Loading
Loading