Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | typeck: When checking BOOL permit numbers because they have coercion rules | Daniel Silverstone | 2020-10-02 | 1 | -3/+7 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | output_method_cdata: use output_ccode when possible | Daniel Silverstone | 2020-05-23 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | output: Use output_ccode for overloaded method bodies | Daniel Silverstone | 2020-05-23 | 1 | -3/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | parser: General AST which the IR recognises for overloading | Daniel Silverstone | 2020-05-23 | 1 | -13/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | duktape: Guess at and support more than pointer init arguments | Daniel Silverstone | 2020-05-22 | 2 | -3/+72 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | add a mainpage to docs and outstanding todo entries | Vincent Sanders | 2019-05-04 | 1 | -0/+10 |
| | |||||
* | When operating on Window event attributes, pass NULL to dukky | Daniel Silverstone | 2019-05-04 | 1 | -3/+16 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Make file output use a common interface | Vincent Sanders | 2019-05-03 | 10 | -574/+913 |
| | | | | Signed-off-by: Vincent Sanders <vince@kyllikki.org> | ||||
* | Generate all EventHandler kind outputs | Daniel Silverstone | 2019-05-03 | 1 | -3/+6 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | duk-libdom: Use PrimaryGlobal for Window to change method private | Daniel Silverstone | 2019-05-02 | 1 | -7/+16 |
| | | | | | | | | | In order to support methods on `Window` being called via the global object (which does not set `this`) we notice that the interface we are generating the private data fetcher for as being the global one, and use `duk_push_global_object` rather than `duk_push_this`. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | DUKKY: Switch to using NSLOG rather than old LOG or JS_LOG | Daniel Silverstone | 2019-02-17 | 2 | -8/+8 |
| | | | | | | | Also use the `dukky` logging category so that we have better separation of log messages regarding Duktape Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Global variable errtxt is defined in two separate files. | Samuel Holland | 2019-02-15 | 2 | -2/+2 |
| | | | | This is a minor C standard conformance issue, and causes the build to fail with a duplicate symbol error when CFLAGS includes "-fno-common". The following patch fixes the issue by making the variables static. | ||||
* | Fix YYLTYPE nonsense with bison >=3.0 | John-Mark Bell | 2018-01-20 | 1 | -0/+8 |
| | |||||
* | remove the old JSAPI binding generation code | Vincent Sanders | 2017-03-31 | 7 | -3760/+0 |
| | | | | | | genbind has not generated valid JSAPI (spidermonkey) bindings in some time, remove the code to avoid confusion, its always available in the git history if necessary | ||||
* | Operation generation: When argument type errors are detected, treat as error.tlsa/duktape2 | Michael Drake | 2017-03-22 | 1 | -3/+3 |
| | |||||
* | Duktape 2.X: duk_error now returns a duk_ret_t | Michael Drake | 2017-03-22 | 1 | -3/+3 |
| | | | | | | | | | | | https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_error-duk_error_va-duk_throw-duk_fatal-have-a-return-value This change suppress warnings about ignoring the return value. However, it looks like we should be returning error in these cases rather than continuing. I'll do that in a separate commit. | ||||
* | Duktape 2.x: duk_safe_call callbacks now have a void ptr user data param. | Michael Drake | 2017-03-22 | 2 | -3/+3 |
| | | | | https://github.com/svaarala/duktape/blob/master/doc/release-notes-v2-0.rst#duk_safe_call-userdata | ||||
* | Align the private structs to quieten certain warnings from clang | Daniel Silverstone | 2017-02-05 | 1 | -1/+1 |
| | |||||
* | Ensure generated attributes register for correct eventsdsilvers/eventwork | Daniel Silverstone | 2017-02-05 | 1 | -4/+7 |
| | |||||
* | Make the #line a comment | Daniel Silverstone | 2017-02-05 | 1 | -1/+1 |
| | |||||
* | improve webidl AST dump output | Vincent Sanders | 2016-11-27 | 1 | -9/+96 |
| | |||||
* | remove unused node set API | Vincent Sanders | 2016-11-27 | 2 | -8/+0 |
| | |||||
* | restructure AST node creation to avoid casts | Vincent Sanders | 2016-11-27 | 6 | -69/+153 |
| | | | | | | | | | | | | | | | | This changes Abstract Syntax Tree node creation for both webidl and genbind syntax tress. If a node is to be created with a numeric value instead of a pointer a separate API is now used instead of casting through void. This fixes parsing and AST building on big endian 64bit platforms where casting through void, which is completely undefined behaviour, generates different and non-functioning code. The solution in this patch is properly portable and correct without relying on casting at all. Thanks to James Clarke <jrtc27@jrtc27.com> for the original debugging and patch demonstrating how to work round the bug. | ||||
* | use bounded string writing | Vincent Sanders | 2016-10-14 | 1 | -2/+2 |
| | |||||
* | ensure webidl intercalate copes with empty webidl | Vincent Sanders | 2016-02-07 | 1 | -10/+14 |
| | |||||
* | Bison after version 3.0 require different api prefix handling | Vincent Sanders | 2016-02-07 | 1 | -2/+4 |
| | |||||
* | fix ambiguity in grammar around class arguments | Vincent Sanders | 2016-02-07 | 1 | -4/+2 |
| | |||||
* | use unsued variable macro to remove warning | Vincent Sanders | 2016-02-07 | 1 | -2/+2 |
| | |||||
* | Correctly annotate unused variables with a macro | Vincent Sanders | 2016-02-06 | 5 | -7/+18 |
| | |||||
* | Add support for TreatNullAs=EmptyString extended attribute. | John-Mark Bell | 2016-02-01 | 3 | -2/+20 |
| | |||||
* | Expose nullable flag in IR and have generated getters use it. | John-Mark Bell | 2016-02-01 | 3 | -2/+14 |
| | |||||
* | Make generated string attribute getters cope with libdom returning NULL. | John-Mark Bell | 2016-01-31 | 1 | -4/+8 |
| | | | | Fixes #2415, #2418. | ||||
* | simplify strndup detection | Vincent Sanders | 2016-01-24 | 1 | -3/+1 |
| | |||||
* | Improve strndup detection | Vincent Sanders | 2016-01-24 | 1 | -1/+3 |
| | |||||
* | Use attribute types from IR for generated event handlers | Vincent Sanders | 2015-11-05 | 2 | -20/+149 |
| | |||||
* | extend IR to have a separate map for attribute types | Vincent Sanders | 2015-11-05 | 2 | -32/+92 |
| | |||||
* | Add generated code for short integer values | Vincent Sanders | 2015-11-01 | 1 | -0/+53 |
| | |||||
* | split heuristic code generation out from interface logic | Vincent Sanders | 2015-11-01 | 4 | -185/+230 |
| | |||||
* | extend the interface attribute setter automatic code generation to cover longs | Vincent Sanders | 2015-10-25 | 1 | -0/+29 |
| | |||||
* | improve unimplemented warning to include type modifier | Vincent Sanders | 2015-10-24 | 3 | -7/+16 |
| | |||||
* | extend the interface attribute getter automatic code generation to cover longs | Vincent Sanders | 2015-10-24 | 1 | -0/+24 |
| | |||||
* | Extend IR attribute entries to contain the type modifiler | Vincent Sanders | 2015-10-24 | 2 | -17/+43 |
| | |||||
* | Fix putforwards generation to cope with getters leaving a dirty stack | Vincent Sanders | 2015-10-14 | 1 | -5/+4 |
| | | | | Kinnison did all teh heavy tjinking on this! | ||||
* | slightly modify the IDL to c name translation | Vincent Sanders | 2015-10-13 | 1 | -8/+14 |
| | | | | | | | This tweaks the IDL name to c name translation to not leave isolated characters. e.g. HTMLIFrameElement became html_i_frame_element now its html_iframe_element HTMLDList became html_d_list and is now html_dlist | ||||
* | Extend the permitted values of the binding method names | Vincent Sanders | 2015-10-12 | 1 | -2/+21 |
| | |||||
* | show the property type on unimplemented getter warning | Vincent Sanders | 2015-10-12 | 1 | -2/+4 |
| | |||||
* | show the property type on unimplemented setter warning | Vincent Sanders | 2015-10-09 | 3 | -2/+60 |
| | |||||
* | Improve the generated instanceof in the binding to take an index | Vincent Sanders | 2015-10-09 | 1 | -16/+16 |
| | |||||
* | Add automatic generation of property getters and setters | Vincent Sanders | 2015-10-08 | 3 | -50/+241 |
| | | | | | | | | | | | This allows the binding to omit specifying code for class property getters and setters. The omitted code will be generated by genbind to directly call suitable libdom accessors. The type of the property (string, boolean etc.) is derived from the IDL. If this type is incorrect, or is a type the generator cannot automatically produce, then the property will be treated like it has no binding implementation and generate unimplemented warnings. | ||||
* | Split out idl to c name conversion | Vincent Sanders | 2015-10-08 | 3 | -64/+69 |
| |