| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gir/gimarshallingtests.[hc]: Add a test for GStrv in function args and
as struct fields.
* girepository/giroffsets.c: Correctly compute the size of structs with
array fields
* girepository/girparser.c: Set is_pointer to FALSE for arrays with
fixed size that are inside structs.
* giscanner/glibtransformer.py: Special case GStrv as arrays of utf8.
* giscanner/annotationparser.py: Make full transfer the default for
arrays of char* returned by functions.
https://bugzilla.gnome.org/show_bug.cgi?id=620170
|
| |
|
|
|
|
|
| |
It's been broken for some time, remove it instead of letting
it bitrot.
|
|
|
|
|
|
|
|
|
|
| |
Add type annotation syntax for GObject properties. This makes
it possible to override the type of a property. For instance,
this will allow function pointers with a G_TYPE_POINTER type set
to be used from a language binding which reads the typelib information
in addition g_object_class_find_property.
https://bugzilla.gnome.org/show_bug.cgi?id=618318
|
|
|
|
|
|
|
| |
Add support for (element-type) annotations for G*Array
types.
https://bugzilla.gnome.org/show_bug.cgi?id=619545
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
People have wanted support for marking (out) on functions of the
form:
/**
* clutter_color_from_pixel:
* @pixel: A pixel
* @color: (out): Color to initialize with value of @pixel
*/
void
clutter_color_from_pixel (guint32 pixel, ClutterColor *color);
Where the caller is supposed to have allocated the argument; the
C function just initializes it. This patch adds support for this
argument passing style to introspection. In this case, we see the
(out), and notice that there's only a single indirection (*) on
the argument, and assume that this means (out caller-allocates).
https://bugzilla.gnome.org/show_bug.cgi?id=604749
|
| |
|
|
|
|
|
| |
Add line numbers to symbols, which can be useful
in later stages of the scanner.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=619450
|
|
|
|
|
|
| |
function is a method
https://bugzilla.gnome.org/show_bug.cgi?id=617876
|
|
|
|
|
|
|
|
| |
Continuing where we were going with pid_t, define a few more POSIX
types by converting them to their fundamental integers. See
commentary in patch for more explanation on rationale.
https://bugzilla.gnome.org/show_bug.cgi?id=618778
|
|
|
|
|
| |
The function name and parameter name were backwards when warning
about bad parameter references.
|
|
|
|
|
|
|
|
|
|
|
| |
When an annotation references another parameter, check that that
parameter actually exists.
Add a comment to the handling of (closure) for callbacks to explain
why we don't need the same handling there despite the use of
get_parameter_index().
https://bugzilla.gnome.org/show_bug.cgi?id=617978
|
|
|
|
|
|
|
| |
Make sure that the value specified for scope in a callback
annotation is one of the legal values.
https://bugzilla.gnome.org/show_bug.cgi?id=617978
|
|
|
|
|
|
|
| |
Don't assign None to closure and destroy indices in case of
collision, they are supposed to be numeric.
https://bugzilla.gnome.org/show_bug.cgi?id=617978
|
|
|
|
|
|
|
|
| |
GArray args
Based on a previous patch by C. Scott Ananian <cscott@litl.com>
https://bugzilla.gnome.org/show_bug.cgi?id=581687
|
|
|
|
|
|
| |
properly scan GArray args"
This reverts commit 87291e08b0fd34b62e1ad9811c174108b38311a9.
|
|
|
|
|
|
|
|
| |
GArray args
Based on a previous patch by C. Scott Ananian <cscott@litl.com>
https://bugzilla.gnome.org/show_bug.cgi?id=581687
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=615890
|
|
|
|
|
|
| |
of constants
https://bugzilla.gnome.org/show_bug.cgi?id=615694
|
|
|
|
| |
Previously crashed out, now just ignores the attribute
|
|
|
|
|
| |
Instead of catching all errors, including AttributeError,
TypeError and NameError.
|
|
|
|
|
|
| |
If we don't have permission to execute the libtool binary, we'd
just throw here which is wrong. Fix this by catching all
exceptions.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The enumeration type for an error might not be introspected
and registered with GObject (this is, in particular, true for
the errors in GLib itself). So, as a fallback search, through
all enum types in the module.
Add a special case for the aberrant GIOErrorEnum and a warning
if resolution completely fails.
https://bugzilla.gnome.org/show_bug.cgi?id=602512
|
|
|
|
|
|
|
| |
All GCancellables are allow-none, this allows us to remove a lot
of custom annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=604658
|
| |
|
|
|
|
| |
We should avoid exceptions being propagated to the toplevel.
|
|
|
|
|
|
| |
default to 'call' as stated in the annotation documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=607026
|
|
|
|
|
|
|
|
|
| |
We're going to remove the entire temporary directory,
so there's no point in explicitly removing just the .c file
we create; leaving the .c file behind makes it easier to debug
problems.
https://bugzilla.gnome.org/show_bug.cgi?id=605966
|
| |
|
|
|
|
|
|
|
|
|
|
| |
One might need to call some init functions before being able to call
get_type() to create the types of a library.
--add-init-section let the user insert some initialization code in the
introspection program.
https://bugzilla.gnome.org/show_bug.cgi?id=605778
|
|
|
|
|
|
|
|
|
|
|
|
| |
glib uses __extension__ in macros dealing with 64 bits integer such as
GUINT64_SWAP_LE_BE().
To quote the GCC manual:
`-pedantic' and other options cause warnings for many GNU C extensions. You
can prevent such warnings within one expression by writing `__extension__'
before the expression.
https://bugzilla.gnome.org/show_bug.cgi?id=605779
|
|
|
|
|
|
|
| |
--no-libtool means that one does not want to use libtool to compile the
introspection program.
https://bugzilla.gnome.org/show_bug.cgi?id=605774
|
|
|
|
| |
This avoids pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
|
|
|
|
|
|
|
|
| |
Various places that check hardcoded type names were not always handling
the case of the type being used from within its own library (in which
case it won't have a type prefix). Make them more consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=602512
|
|
|
|
|
|
| |
Only set "throws" in the latter case
https://bugzilla.gnome.org/show_bug.cgi?id=602512
|
|
|
|
|
|
| |
Makes sure we can parse empty tags such as '@foo:' without
adding a : in the end which the typelib compiler will complain
about
|
| |
|
|
|
|
| |
When looking up GINames, we should look in _names.names.
|
|
|
|
|
| |
Keep track of the current line (the first 2000 chars of it) and include that in
syntax error messages. Also print that failed token in the error message.
|
|
|
|
| |
Increment linenumber in parse_comment which reads over multiline comments.
|
|
|
|
|
| |
Telling file and line would be better, but alreday this way one atleast has a
chance to fix it actually.
|
| |
|
|
|
|
|
| |
This should have been included with f74823. Fixes
the async/notified scope annotation for glib/gio.
|
|
|
|
|
| |
Correctly guard with g_thread_supported, call g_thread_init before
g_type_init.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=596960
|
|
|
|
|
|
|
|
| |
GAsyncReadyCallback should have use the async scope per
default and GDestroyNotify should be notified if the
previous parameters are a callback and user data.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=602862
|
|
|
|
|
|
| |
want offset counting to be correct in its sublasses
https://bugzilla.gnome.org/show_bug.cgi?id=603038
|