summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for gunichar in typelibColin Walters2010-11-121-0/+1
| | | | | | | Some API such as gtk_text_iter_get_char returns an individual "gunichar"; we should support this. https://bugzilla.gnome.org/show_bug.cgi?id=633197
* Handle enumerations with the full range of signed and unsigned valuesOwen W. Taylor2010-11-011-1/+10
| | | | | | | | | | | | | The C compiler will pick an enumeration type that accomodates the specified values for the enumeration, so ignoring 64-bit enumerations, we can have enumeration values from MININT32 to MAXUINT32. To handle this properly: - Use gint64 for holding eumeration values when scanning - Add a 'unsigned_value' bit to ValueBlob so we can distinguish the int32 vs. uint32 cases in the typelib - Change the return value of g_value_info_get_value() to gint64. https://bugzilla.gnome.org/show_bug.cgi?id=629704
* Remove Regress tests with input args with transfer full or container.Pavel Holejsovsky2010-09-281-11/+0
| | | | | | | Declaring input parameters with transfer other than none is discouraged, so don't do it in the testsuite. https://bugzilla.gnome.org/show_bug.cgi?id=630788
* regress: Remove busted testsColin Walters2010-09-271-2/+0
| | | | | We don't want people making functions which take ownership of arguments, so don't do it in the test suite.
* [scanner] Support private/public directivesJohan Dahlin2010-09-201-0/+18
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=594125
* scanner: Add c_type for callbacksColin Walters2010-09-141-0/+7
| | | | | | | We weren't doing this consistently, which broke nsname != cprefix cases. https://bugzilla.gnome.org/show_bug.cgi?id=629683
* scanner: Parse annotations for typedefsColin Walters2010-09-141-0/+16
| | | | | | | | * Explicitly check for ast.Alias in annotation pass * Add "generic" attribs handling for aliases like docs, introspectable=0 etc. https://bugzilla.gnome.org/show_bug.cgi?id=629668
* scanner: Skip functions with leading '_'Colin Walters2010-09-091-0/+2
| | | | | Multiple modules have '_' prefixed symbols in "public" headers meaning "don't use this in your app".
* scanner: Mark '_'-prefixed fields as introspectable=0Colin Walters2010-09-091-0/+4
| | | | | Typically these contain reserved callbacks; in any case we take a leading underscore to mean 'private'.
* scanner: Kill glibastColin Walters2010-09-081-0/+2
| | | | | | | | | | | | It was a stupid abstraction split, we only support GObject. * Clean up how we handle c:type - we only set it if we've actually seen a corresponding structure. * Add a warning if we don't see the structure typedef for an interface, since that's pretty bogus. (And fix regress.h to have one) * Rename the "type_name" attribute internally to "gtype_name" for clarity.
* Handle casing better for constantsOwen W. Taylor2010-09-071-0/+7
| | | | | | | | | | | | | | | | | Instead of handling constants by lower-casing them, stripping the lower-case prefix and upper-casing them again, leave them in the original case and check against upper-cased versions of namespace.symbol_prefixes. Wwe detect what version to test against by looking at the first character of the identifier, so we assume that --symbol-prefix options are always in lowercase. If that needs to be relaxed, then we'll have to check all symbols against both sets of prefixes. Add tests for constants to Regress.h and fix tests/warn/unresolved-type.h for a warning message that improved with this change. https://bugzilla.gnome.org/show_bug.cgi?id=629007
* scanner: Automatically skip callables which contain a skipped nodeColin Walters2010-09-071-0/+16
| | | | | For legacy library author convenience, propagate (skip) on e.g. structures to all callables which use them.
* trick scanner into marking a symbol as a function instead of a methodJohn (J5) Palmieri2010-09-071-1/+1
|
* scanner: Associate constructors with correct classColin Walters2010-09-021-1/+1
|
* tests/scanner: Update annotations and testsColin Walters2010-08-311-0/+5
| | | | | | | | | | | | | First of all, add missing (transfer) annotations that will be required by the new scanner. Other changes: Don't use the (type bitfield) hack; the new scanner will not accept it. Use shifts in the flag constants instead. Use typedefs consistently for structures. Drop scanning of anonymous structure/union members.
* tests: Remove GIMarshallingTests, rename Everything to RegressColin Walters2010-08-311-0/+506
GIMarshallingTests will be replaced with automatically generated code; it was far from comprehensive, and was a pain to maintain. The namespacing in Everything was broken; it had an empty C prefix effectively, because all the symbols just started with "test". We do want "test" as part of the symbols, since otherwise the exported API would be weird. Fix this by changing the namespace to Regress (i.e. prefixing all the C code with Regress). This makes sense anyways because Everything wasn't really Everything. We no longer install a pre-built regress.(so,gir,typelib); instead we install the C code to $(datadir)/gobject-introspection/tests/regress.[ch]. Bindings should compile this.