summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/struct.eo (follow)
AgeCommit message (Collapse)Author
2019-09-30Revert "eolian: disallow missing docs for stable API where necessary"Xavi Artigas
I'm afraid but this breaks the mono bindings too close to a release. This also fixes the missing docs errors by adding a lot of inconsistent placeholder text ("No description supplied.", "TBD") which will make finding them later on more complicated. I was the one that asked for this feature but it is not critical at this point, so I suggest we explore some refinements (like T8291) before landing this patch in its current state. This reverts commit 2946cb3c325f27d77354ac1b83b614e3a1d9e1d5.
2019-09-30eolian: disallow missing docs for stable API where necessaryDaniel Kolesa
The things that require docs include classes, variables, typedecls, events and methods/properties. Implements, params, returns, parts and struct/enum fields don't require them. Empty/whitespace only string does not count as documentation.
2019-09-05eolian: update C generator to respect by_ref as well as testsDaniel Kolesa
2019-09-02eolian: move all tests to use the new @move syntax and APIDaniel Kolesa
2017-09-22eolian: remove static_array and terminated_arrayDaniel Kolesa
These types are of questionable value and the API was not entirely thought out - remove for now, and if a legitimate use is found later, they may be readded (with a better API), but typically it seems best to redesign the bad APIs around safe containers...
2017-09-22eolian: add mstringDaniel Kolesa
This is a new type representing a mutable string (no const). Regular strings cannot be made mutable with @owned because they might be hidden behind typedefs.
2017-09-15eolian: correctness fixes in tests and eo filesDaniel Kolesa
2016-11-10eolian: remove parsing of pointers and the corresponding APIsDaniel Kolesa
Everything should be done via the new ptr() system now.
2016-11-02eolian: rename ref to ptr to avoid confusion with eo refsDaniel Kolesa
2016-06-30eolian: add support for static and terminated arraysDaniel Kolesa
Adds two new type types, STATIC_ARRAY and TERMINATED_ARRAY. Static arrays are only allowed as struct members right now - they translate to regular C static arrays (allowing them elsewhere wouldn't be good, as C isn't very good at working with the size information). Terminated arrays are basically sequences of data terminated at the end. The base type of static arrays can be any type that is not marked ref (explicit ref may get allowed later). The base type of terminated arrays has the same restriction plus that it has to be either implicitly reference type (i.e. translating to pointer in C), integer type or a character. In case of ref types, the terminator is NULL. In case of integer types, the terminator is a zero. In case of character types, the terminator is also a zero (null terminator like C strings). @feature
2016-06-08eolian: refine the ref system to suit more casesDaniel Kolesa
Now references are first class (but still restricted to one level). Unlike pointers they only mark the type instead of introducing a whole new type.
2016-06-06eolian: add a new references system to help replace pointersDaniel Kolesa
It's now possible to mark struct fields and function params as "references", which causes them to become pointers in C (in bindings, they become whatever is necessary). They're not a part of the type and are much more restricted than pointers, allowing bindings to be easier. This system will be gradually utilized and expanded as required. @feature
2016-05-31eolian: utilize the new builtin string type across eo filesDaniel Kolesa
2015-10-21eolian: Test recognition of struct types used in methodsVitor Sousa
Summary: Add code to unit test to check if Eolian correctly recognize a struct name as a struct type when it is used in a method. Add new method to struct.eo to create this test. Update struct_ref.c accordingly. Reviewers: tasn, q66 Differential Revision: https://phab.enlightenment.org/D3213
2015-07-03eolian: generate correct fallback characterDaniel Kolesa
2015-07-03eolian: add support for monospace highlights in docsDaniel Kolesa
2015-05-29eolian: tests for extern struct/typedef not-generationDaniel Kolesa
2015-05-18eolian: new syntax for params/values/keysDaniel Kolesa
Instead of "@in type name;" we now use "@in name: type;". This change is done because of consistency with the rest of Eolian; pretty much every other part of Eolian syntax uses the latter form. This is a big breaking change in the .eo format, so please update your .eo files accordingly and compile Elementary together with the EFL. @feature
2015-05-12eolian: buttsDaniel Kolesa
2014-08-21eolian: add support for opaque struct types (+ tests)Daniel Kolesa
2014-08-21eolian: more consistent syntaxDaniel Kolesa
"legacy foo" is now "legacy: foo" and "return foo" is now "return: foo".
2014-08-21eolian: fix tests and fix class name comparison in parserDaniel Kolesa
This fixes the Eolian testsuite as well as adds a better way to compare where a class comes from, allowing us to guess EOLIAN_TYPE_CLASS correctly.
2014-07-14eolian: add tests for struct types plus fix a double free and name storage ↵Daniel Kolesa
on the way