summaryrefslogtreecommitdiffstats
path: root/codegen
Commit message (Collapse)AuthorAgeFilesLines
* Add option (-p) to use the modulename as a hint to the prefix of functionsJohn Finlay2008-11-031-18/+84
| | | | | | | | | | * codegen/defsgen.py (DefsWriter.write_enum_defs): Add option (-p) to use the modulename as a hint to the prefix of functions and type codes. Provide way to identify untyped enums and flags and print defs for them as well. svn path=/trunk/; revision=975
* Add defsgen to __all__ list. Strip out # directives from enum defintions.John Finlay2008-11-012-0/+6
| | | | | | | | | * codegen/__init__.py (__all__): Add defsgen to __all__ list. * codegen/h2def.py (find_enum_defs): Strip out # directives from enum defintions. (clean_func): Change ' * G_CONST_RETURN * ' to '** ' svn path=/trunk/; revision=974
* Add defsgen.pyJohn Finlay2008-10-311-0/+1
| | | | | | | * codegen/Makefile.am (codegen_PYTHON): Add defsgen.py svn path=/trunk/; revision=973
* Use the passed in prefix as a hint when creating a typecode.John Finlay2008-10-312-14/+29
| | | | | | | | | | | | | | | * codegen/defsgen.py (typecode): Use the passed in prefix as a hint when creating a typecode. (split_prefix,write_enum_defs,_write_obj_helper): Add function to use passed in prefix as a hint when splitting an object name into module and name. * codegen/h2def.py (DefsWriter.write_enum_defs): Make sure the prefix ends with a _ i.e. really handle the GDK_FONT_FONT, GDK_FONT_FONTSET case. svn path=/trunk/; revision=972
* Bug 551056 – make codegen not import when corresponding argument typesPaul Pogonyshev2008-09-082-7/+16
| | | | | | | | | | | | | | | | | | 2008-09-08 Paul Pogonyshev <pogonyshev@gmx.net> Bug 551056 – make codegen not import when corresponding argument types are not registered * codegen/override.py (import_pat): Add support for optional 'for' clause. (Overrides.__parse_override): Handle it. * codegen/codegen.py (SourceWriter.write_imports) (SourceWriter.write_object_imports): Adapt for changes in get_imports() return value. (is_registered_object): New function. svn path=/trunk/; revision=967
* add G_TYPE_CLOSURE boxed type in codegenGian Mario Tagliaretti2008-09-011-0/+1
| | | | svn path=/trunk/; revision=960
* More cleanups.Johan Dahlin2008-08-021-33/+38
| | | | svn path=/trunk/; revision=919
* PEP8ifyJohan Dahlin2008-08-021-69/+78
| | | | svn path=/trunk/; revision=918
* More refactoring. Avoid duplication, add xml string templatesJohan Dahlin2008-08-021-67/+62
| | | | svn path=/trunk/; revision=917
* further cleanupsJohan Dahlin2008-08-021-243/+255
| | | | svn path=/trunk/; revision=915
* Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it runJohan Dahlin2008-08-022-108/+106
| | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * codegen/docgen.py: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run on gio. * codegen/definitions.py: Make property iterable * gio/gio.defs: Include the gio-types.defs file. svn path=/trunk/; revision=914
* Rename from 'pygtk-codegen-2.0.in'.Paul Pogonyshev2008-07-152-2/+2
| | | | | | | | | | | | 2008-07-15 Paul Pogonyshev <pogonyshev@gmx.net> * codegen/pygobject-codegen-2.0.in: Rename from 'pygtk-codegen-2.0.in'. * configure.ac: * codegen/Makefile.am: Update accordingly. svn path=/trunk/; revision=813
* Bug 450659 – h2def.py - export 'typedef struct' object definitions notJohan Dahlin2008-07-141-1/+1
| | | | | | | | | | | | | 2008-07-15 Johan Dahlin <johan@gnome.org> Bug 450659 – h2def.py - export 'typedef struct' object definitions not working * codegen/h2def.py: Patch by Lauro Moura svn path=/trunk/; revision=807
* Map GSeekType to an intJohan Dahlin2008-07-141-0/+1
| | | | | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> * codegen/argtypes.py: Map GSeekType to an int * gio/gfileinfo.override: * gio/ginputstream.override: * gio/goutputstream.override: Add comments for missing API svn path=/trunk/; revision=798
* New class. (MethodDefBase.__init__): Make 'self.ret' a 'ReturnType'Paul Pogonyshev2008-07-143-10/+53
| | | | | | | | | | | | | | | | | | 2008-07-14 Paul Pogonyshev <pogonyshev@gmx.net> * codegen/definitions.py (ReturnType): New class. (MethodDefBase.__init__): Make 'self.ret' a 'ReturnType' instance, not string. Accept 'optional' flag. * codegen/argtypes.py (ArgMatcher.get_reverse_ret): Test if 'ptype' has true 'optional' attribute and copy it to 'props' then. * codegen/reversewrapper.py (ReturnType.support_optional): New class field, False by default. (GObjectReturn.support_optional, GObjectReturn.write_decl) (GObjectReturn.write_conversion): Support optional return. svn path=/trunk/; revision=796
* Add 'codegendir' variable. Make 'codegendir' refer to PyGObject's codegen,Paul Pogonyshev2008-07-131-1/+1
| | | | | | | | | | | 2008-07-14 Paul Pogonyshev <pogonyshev@gmx.net> * pygobject-2.0.pc.in: Add 'codegendir' variable. * codegen/pygtk-codegen-2.0.in: Make 'codegendir' refer to PyGObject's codegen, not PyGTK's one --- the latter will be removed (first part of bug #542821). svn path=/trunk/; revision=795
* clean_func(): Strip GSEAL out, to avoid us thinking that there are manyMurray Cumming2008-07-131-2/+6
| | | | | | | | | | | | | | | 2008-07-08 Murray Cumming <murrayc@murrayc.com> * codegen/h2def.py: clean_func(): Strip GSEAL out, to avoid us thinking that there are many functions called GSEAL (merge from PyGTK). 2008-01-29 Olivier Crete <tester@tester.ca> * codegen/h2def.py (DefsWriter.__init__): Fix copy-paste typos (merge from PyGTK). svn path=/trunk/; revision=794
* Update link to defs format discussionJohan Dahlin2008-04-211-1/+1
| | | | | | | | | 2008-04-21 Johan Dahlin <johan@gnome.org> * codegen/h2def.py: Update link to defs format discussion svn path=/trunk/; revision=778
* Add goffset to the int64 arg typeJohan Dahlin2008-04-061-0/+1
| | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * codegen/argtypes.py (arg): Add goffset to the int64 arg type svn path=/trunk/; revision=757
* Import codegen from pygtk. Add initial gio and gio.unix bindings.Johan Dahlin2008-01-1923-0/+7730
2008-01-19 Johan Dahlin <johan@gnome.org> * Makefile.am: * codegen/Makefile.am: * codegen/README.defs: * codegen/__init__.py: * codegen/argtypes.py: * codegen/code-coverage.py: * codegen/codegen.py: * codegen/createdefs.py: * codegen/definitions.py: * codegen/defsconvert.py: * codegen/defsgen.py: * codegen/defsparser.py: * codegen/docextract.py: * codegen/docextract_to_xml.py: * codegen/docgen.py: * codegen/h2def.py: * codegen/mergedefs.py: * codegen/missingdefs.py: * codegen/mkskel.py: * codegen/override.py: * codegen/pygtk-codegen-2.0.in: * codegen/reversewrapper.py: * codegen/scanvirtuals.py: * codegen/scmexpr.py: * configure.ac: * gio/Makefile.am: * gio/__init__.py: * gio/gio-types.defs: * gio/gio.defs: * gio/gio.override: * gio/giomodule.c: (init_gio): * gio/unix-types.defs: * gio/unix.defs: * gio/unix.override: * gio/unixmodule.c: (initunix): Import codegen from pygtk. Add initial gio and gio.unix bindings. svn path=/trunk/; revision=730