summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.40.0GOBJECT_INTROSPECTION_1_40_0gnome-3-12baserock/GOBJECT_INTROSPECTION_1_40_0Colin Walters2014-03-251-2/+2
|
* Update glib annotationsGiovanni Campagna2014-03-052-3/+3
| | | | Press the secret code too unlock the hidden bonus: GVariantDict!
* doctool: update testsGiovanni Campagna2014-03-05107-150/+304
|
* docwriter/gjs: fix boolean return valuesGiovanni Campagna2014-03-051-1/+1
| | | | | | | | | | | | | | 'ok' != 'return_value', and we never restore 'Returns:'. At the same time, do the same fix for (out) parameters if the return value is void, so this void my_object_get_foo (MyObject *object, Foo *) is turned into function get_foo() : Foo Returns: ....
* docwriter/gjs: restore documentation for return valuesGiovanni Campagna2014-03-051-2/+4
|
* docwriter/gjs: format GObject.Closure as "Function"Giovanni Campagna2014-03-051-0/+2
| | | | | | | | | | GClosures are represented in gjs as JS functions for in parameters, so it makes sense to use Function in place of the boxed structure (which is also not part of the documentation) Note that GClosures returned from C code are marshalled as boxed types, but this is a gjs bug really, and JS code should never touch them.
* docwriter: format bitfields like enumsGiovanni Campagna2014-03-051-2/+2
| | | | They are enums after all.
* docwriter/gjs: format GObject.Value as "Any"Giovanni Campagna2014-03-051-0/+2
| | | | | | GValues are transparently marshalled by GJS, so you can never use them as boxed (and they are not part of the documentation as such).
* tests: Fix function pointer prototype in regress.hSimon Feltman2014-03-031-1/+1
| | | | | This was causing a "warning: function declaration isn't a prototype" with strict-prototypes enabled.
* tests: Add missing regress documentation test pageSimon Feltman2014-03-021-0/+14
| | | | | | Add missing page needed for tests to run after commit 7027bb256 https://bugzilla.gnome.org/show_bug.cgi?id=725198
* g-ir-compiler: Add support for callback fields on GObjectsSimon Feltman2014-02-279-50/+159
| | | | | | | | | | | | | | | | | Use ParseState enum instead of a boolean for the ParseContexts embedded_type flag. This allows specific tracking of the embedded type currently being parsed which can now either be STATE_STRUCT_FIELD or STATE_CLASS_FIELD (or allow for future expansion). Add ParseState::STATE_NONE as the default for this field. Fix GObject FieldBlob validation to take into account the sizeof CallbackBlobs (copied from the struct validator). Add static g_object_info_get_field_offset which parallels g_struct_info_get_field_offset which is needed since callback fields may vary in size. https://bugzilla.gnome.org/show_bug.cgi?id=725198
* Update glib annotations from git masterRico Tzschichholz2014-02-272-16/+94
|
* scanner: Ignore C11 _Noreturn keywordColin Walters2014-02-271-0/+1
| | | | | | | | | | This shows up in the headers in FreeBSD's stdlib. Now I didn't add anything to regress.h because I think that'd introduce an effective hard dependency on a C11-capable compiler, unless we used #ifdef trickery. But the problem with #ifdef is that the -expected.gir isn't conditional. https://bugzilla.gnome.org/show_bug.cgi?id=724851
* scanner: Make sure .libs directory existsРуслан Ижбулатов2014-02-271-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724882
* PEP8 fixes in shlib.pySimon Feltman2014-02-261-7/+7
| | | | | | | Conform shlibs.py to the PEP8 standard. New additions were causing make check to fail: Fixed E211 whitespace before '(' Fixed E501 line too long (104 > 99 characters)
* doctool: update testsGiovanni Campagna2014-02-26177-314/+1593
|
* docwriter: improve xrefsGiovanni Campagna2014-02-261-7/+17
| | | | | | | | | | | If a xref points to a node that was not visited, because it was not introspectable, don't assume it has no parent. Instead, try to fetch the parent from the node directly. This is still wrong (the xref points nowhere because no page is generated), but it looks less wrong. If OTOH a xref points to a different namespace, generate the link directly, because yelp-build is not capable of translating it.
* girparser: fix parsing of enum methodsGiovanni Campagna2014-02-261-0/+1
| | | | Make sure to set the parent of the function
* docwriter/Gjs: include static methods in the enum pageGiovanni Campagna2014-02-261-0/+8
| | | | | Switch enum from a topic to a guide page, and include links to all static methods.
* docwriter: extend the "node without namespace" filtering to all languagesGiovanni Campagna2014-02-261-8/+8
| | | | | | As the comment says, it's an AST bug, the structure there cannot be reasonably represented in gobject-introspection, and it makes the tests for C and Python crash, so whatever.
* maintransformer: don't pair methods if the symbol prefix does not match with ↵Giovanni Campagna2014-02-264-7/+69
| | | | | | | | | | | a final underscore In cases like g_resources_register() and gdk_events_get_angle(), the c_symbol_prefix of the first parameter (resp. g_resource and gdk_event) is a prefix of the symbol, but the next character is not _, so that should not be considered a method. For backward compatibility reasons, we still generate one, but then it's not included in the documentation (because of moved_to)
* docwriter: don't ignore disguised structuresGiovanni Campagna2014-02-261-2/+4
| | | | | | Unless they have no methods, static methods and constructors (because then they are useless) Fixes GLib.BookmarkFile, GLib.PatternSpec and probably others.
* docwriter/gjs: fix constructorsGiovanni Campagna2014-02-261-12/+13
| | | | | | | | | | We should only look at introspectable constructors when resolving the default and zero args. Also, a disguised structure or one with zero fields can't be allocated directly. In addition, restore availability of all constructors, because we need a page to document the default one, and because some classes have problems with GObject construction.
* docwriter/gjs: include non GObject instantiatable typesGiovanni Campagna2014-02-261-13/+10
| | | | | | Support for fundamental types was just merged in gjs, so just filter out GParamSpec subclasses (because there is only one class in gjs)
* docwriter/gjs: add support for shadowed function namesGiovanni Campagna2014-02-262-5/+17
| | | | | If a function is shadowed, omit it from the documentation, and if a function shadows, uses the new name.
* docwriter/gjs: report arrays of (u)int8 and GBytes as ByteArrayGiovanni Campagna2014-02-261-1/+6
| | | | | The ByteArray class is special in gjs, it's not a normal Array, so make sure it's flagged as such.
* docwriter/gjs: ignore nodes without a namespaceGiovanni Campagna2014-02-261-0/+8
| | | | g-ir-compiler ignores them too, and they cause a crash, so whatever.
* MSVC Builds: Update Introspection Build ProcessChun-wei Fan2014-02-251-10/+5
| | | | | | | | The introspection build on Windows recently received support to deduce the DLL name from the library that is passed into g-ir-scanner, so the library name (without the file name extensions, etc) ought to be passed in for the build of introspection files on Windows, just like the *nix builds of g-i.
* scanner: Make shlib Resolution Work Also With Visual C++Chun-wei Fan2014-02-251-18/+52
| | | | | | | | | | | | | | | | | | | Commit f3fcdf97 introduced shlib resolution for Windows, but it only works with MinGW and would therefore break builds of introspection files for Visual C++. Improve on the situation by adding capabilities to do the same with Visual C++, as the introspection dumper program is still compiled and linked with the Microsoft tool set (only the proprocessor to process the various headers is using GCC/MinGW). This makes use of the dumpbin utility that is shipped with Visual C++, which will query a .lib file, which leads to the DLL that the .lib file will link to. The 'gcc -print-search-dirs' can be replaced on Visual C++ builds by querying the LIB environment variable, as this is what the Visual C++ compiler/linker really looks at during compilation and linkage. https://bugzilla.gnome.org/show_bug.cgi?id=724890
* scanner: Fix shlib resolution on W32Руслан Ижбулатов2014-02-221-3/+52
| | | | | | | | | GI just adds '.dll' to library name and calls it a day. There's a comment about how this function might work, i've used it to implement something better. This requires a compiler that supports -print-search-dirs argument (i.e. gcc) and a dlltool. https://bugzilla.gnome.org/show_bug.cgi?id=724890
* Also add EXEEXT to .pc filesРуслан Ижбулатов2014-02-222-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724888
* scanner: Support __restrict__Руслан Ижбулатов2014-02-221-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724887
* scnaner: Support asm __volatile__Руслан Ижбулатов2014-02-221-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724887
* Fix some PEP8 errors from previous commitsColin Walters2014-02-222-3/+7
|
* Fix a typo (exe -> .exe)Руслан Ижбулатов2014-02-221-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724884
* scanner: Correctly pass linker option --export-all-symbolsРуслан Ижбулатов2014-02-221-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724883
* Remove special W32 libnames, as they break stuffРуслан Ижбулатов2014-02-221-16/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724881
* scanner: Support running under MSYSРуслан Ижбулатов2014-02-222-0/+39
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724880
* Extend the hack towards backslashes as path separatorsРуслан Ижбулатов2014-02-221-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724877
* Quote PATH (in case it contains spaces)Руслан Ижбулатов2014-02-211-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724876
* build: Use $(EXEEXT) for typelib compilerРуслан Ижбулатов2014-02-211-12/+12
| | | | | | Fixes Windows. https://bugzilla.gnome.org/show_bug.cgi?id=724874
* scanner: support virtual functions with a typedef-ed callbackGiovanni Campagna2014-02-2015-5/+377
| | | | | | | | | | The field of a callback need not be anonymous, it could be a typedef, with a proper Type node. Fixes TelepathyGlib.BaseClient having no virtual functions (and probably others) https://bugzilla.gnome.org/show_bug.cgi?id=723439
* doctool/Gjs: some more fixes for structs and unionsGiovanni Campagna2014-02-2022-331/+18
| | | | | | | | | | | | | | Stop pretending we have fields on unions (only methods are supported). Add minimal support (ie, don't crash) to nested structures, that due to how ast works have namespace None (and the transformers hard-depend on that). Uncovered by GLib's GDoubleIEEE754, before I removed union fields. For some reason, RegressTestStructE (anonymous union) has a completely different behavior and generates a weird name, while RegressLikeGnomeKeyringSchema (array of unnamed structs) becomes array(gpointer). Bah, one should have methods anyway...
* doctool: update reference testsGiovanni Campagna2014-02-201687-20049/+15904
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724735
* doctool: improve Gjs documentationGiovanni Campagna2014-02-2025-166/+544
| | | | | | | | | | | | | | | - Add documentation for structures, fields, constants and callbacks - Improve the synopsis for interfaces to have prerequisites and known implementations - Respect gjs constraints for field writability - Format in and out parameters for callables according to GJS conventions - Format property names according to the GJS API - Show boxed constructors according to how they can be used in the gjs API https://bugzilla.gnome.org/show_bug.cgi?id=724735
* ast: make sure that all nodes have a namespacesGiovanni Campagna2014-02-201-1/+5
| | | | | | | Include Fields (which are not really Node, but the doctool wants to treat as such) and the methods of Boxed nodes. https://bugzilla.gnome.org/show_bug.cgi?id=724735
* giscanner: prevent implicit declarationsAntoine Jacoutot2014-02-191-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=724737
* Release 1.3.90GOBJECT_INTROSPECTION_1_39_90Colin Walters2014-02-191-1/+1
|
* Update glib annotations from git masterRico Tzschichholz2014-02-164-1403/+939
|
* Fix errors parsing OSX 10.9 headersDavide Bertola2014-02-131-0/+4
| | | | | | Un-defining __BLOCKS__ disables blocks in system headers (like stdlib.h). This avoids errors while compiling.