summaryrefslogtreecommitdiff
path: root/codegen/valagirwriter.vala
Commit message (Collapse)AuthorAgeFilesLines
...
* girwriter: Do not write generic type parametersJürg Billeter2010-07-121-0/+4
| | | | Fixes bug 624109.
* girwriter: Write version 1.1Jürg Billeter2010-07-121-1/+1
|
* girwriter: Fix closure attribute for delegate targetsAbderrahim Kitouni2010-06-291-2/+2
| | | | | The code was assuming that data_type would be a Delegate for a DelegateType while it is null.
* GIR writer: Fix crash on struct creation methodsLuca Bruno2010-06-161-1/+2
| | | | Fixes bug 621495.
* Fix printf format in GIRWriterJürg Billeter2010-03-211-1/+1
|
* Fix crash when opening file failsJürg Billeter2010-02-071-1/+5
| | | | Based on patch by pancake, fixes bug 606837.
* Fix GIR writing to only add <include> lines for API dependenciesRob Taylor2010-02-031-208/+193
| | | | | | This refactors GIRWriter quite a bit so we can collect the GIR namespace dependencies when writing the type names, so only namespaces that are actually used get <include> lines.
* GIR Namespace supportRob Taylor2010-02-011-8/+74
| | | | | | | | | | | | | | | | | | This patch introduces two new CCode annotations for use in VAPI files, gir_namespace and gir_version. This allows us to correctly map vala namespaces to gobject-introspection namespaces when generating GIR files. The mapping is actually done on a SourceFile level. This allows us to work around cases where one vala namespace maps into multiple GIR namespaces (in particular, GLib vs GLib and GObject). In the absense of annotations, the old 'guess it' method will be applied. This commit also adds annotations to some core vapis. Fixes bug 584683.
* GIR writer: Write user_data parameter for delegatesAbderrahim Kitouni2010-01-171-2/+13
|
* GIR writer: Write parent_instace and priv fieldsAbderrahim Kitouni2010-01-171-0/+18
|
* GIR writer: Write virtual signal handlersAbderrahim Kitouni2010-01-171-0/+13
|
* GIR writer: Fix cname for vfunc <callback> elementAbderrahim Kitouni2010-01-171-1/+2
|
* GIR writer: Embed <callback> inside <field> for virtual methodsAbderrahim Kitouni2010-01-171-0/+6
| | | | See gobject-introspection commit f8693bda.
* GIR writer: Add parent_class to the class structAbderrahim Kitouni2010-01-171-0/+9
|
* GIR writer: Always include GLib and GObjectAbderrahim Kitouni2010-01-171-0/+9
|
* Do not use Gee namespace to avoid conflict with libgeeJürg Billeter2009-10-121-5/+4
|
* GIR writer: Fix name and c:type written for delegate parametersJürg Billeter2009-09-271-0/+4
|
* GIR writer: Fix generation of array and delegate parametersJan Hudec2009-09-271-70/+66
| | | | | | | | | | | | | | | Array and delegate parameters correspond to multiple parameters at the C level. GObject-introspection expects them them to be written separately, with special attributes refering to the main ones. Since implicit output arguments must be generated for return values, writing params and return values was combined to common methods. They were always used together, so the main downside is the method now takes long list of arguments to cover all the cases. Note that only default argument positions are supported. Signed-off-by: Jan Hudec <bulb@ucw.cz>
* GIR writer: Fix generation of async methodsJan Hudec2009-09-271-7/+21
| | | | | | | | | | | | | GObject-Introspection does not have any special support for async methods, so we need to write them out as two entries corresponding to the .begin and .end submethods respectively. To avoid code duplication, the Vala.GirWriter.write_signature method is split in two. The inner one takes all attributes that differ between sync and async.begin/end methods as additional arguments and is called twice for the async methods. Signed-off-by: Jan Hudec <bulb@ucw.cz>
* GIR writer: Fix generation of implemented interfacesJan Hudec2009-09-141-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | The list of implemented interfaces is expected as <implements name="Interface1" /> <implements name="Interface2" /> ... by gobject-introspection library (as of 0.6.3), but was written as <implements> <implements name="Interface1" /> <implements name="Interface2" /> ... </implements> by Vala.GIRWriter. Note, that vapigen expects the same format as gobject-introspection, so it was not able to read vala-written .girs before the change and is able to read them properly now. Fixes bug 584576. Signed-off-by: Jan Hudec <bulb@ucw.cz>
* girwriter: Make sure the default constructor is called newJohn Carr2009-09-021-1/+7
|
* GIR writer: add c:prefix support for namespacesMark Lee2009-07-281-1/+6
| | | | | Emit a c:prefix attribute for namespaces, if the cprefix exists, fixes bug 583862.
* GIR writer: Fix g-i names for base typesDidier 'Ptitjes2009-07-031-4/+4
| | | | Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
* GIR writer: Generate <package/> tagDidier 'Ptitjes2009-05-171-1/+8
| | | | Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
* GIR writer: Generate correct GIR namespace name and versionDidier 'Ptitjes2009-05-171-1/+1
| | | | Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
* Add --gir option to enable GIR generationDidier 'Ptitjes2009-05-171-1/+8
| | | | Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
* Rename gobject directory to codegenJürg Billeter2009-05-091-0/+839