Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | codegen: Use a special CCodeBinaryExpression for string comparisons | Rico Tzschichholz | 2022-12-22 | 2 | -0/+64 |
| | | | | | This preserves support for recursive replacement of arguments while this expression was actually transformed into a function call. | ||||
* | codegen: Write array length of formal parameters with fixed length | Rico Tzschichholz | 2022-01-26 | 1 | -1/+13 |
| | | | | "void foo (gint i[3]) { ... }" instead of "void foo (gint* i) { ... }" | ||||
* | Revert "Make more use of native GLib.Regex syntax" | Rico Tzschichholz | 2021-12-27 | 1 | -1/+4 |
| | | | | This reverts commit b2ef0ed8d2c37a813f9ad8b35c7a7e4a1d639e1c. | ||||
* | Make more use of native GLib.Regex syntax | Rico Tzschichholz | 2021-12-22 | 1 | -4/+1 |
| | |||||
* | Properly use [Flags] feature for ModifierFlags and CCodeModifiers | Rico Tzschichholz | 2021-12-17 | 1 | -16/+16 |
| | | | | See 2afaae5e0755b2d8619808d2d148761b92c355b5 | ||||
* | ccode: Fix CCodeUnaryExpression.write() for PREFIX_INCREMENT/PREFIX_DECREMENT | Rico Tzschichholz | 2021-11-24 | 1 | -2/+2 |
| | | | | Regression of 0f65d306f5a2eca7ea798e5c835cf66b6e327c8e | ||||
* | codegen: Add and use CCodeConstantIdentifier for accessing constants | Rico Tzschichholz | 2021-11-15 | 2 | -0/+36 |
| | | | | | | | | | If an address to a constant value is required then its identifier needs to be used instead of referring to a temporary copy. Fixes a regression of f1a8f2a4c6771124abd61fd0ebfa991c846575fe Found by -fsanitize=address | ||||
* | ccode: Avoid trailing space after #else of CCodeIfSection | Rico Tzschichholz | 2021-06-24 | 1 | -1/+1 |
| | | | | In addition to 994b4cb078643d9bb1842fa60ecb69891e1e7b87 | ||||
* | codegen: Introduce VALA_EXPORT for public symbols to improve portability | Princeton Ferro | 2021-05-20 | 2 | -1/+3 |
| | | | | | | | Use it as replacement for "extern" and attribute every public symbol. We want to ensure that public symbols are exported, which isn't the default when generating a shared library in MSVC, for example. | ||||
* | ccode: Allow appending `#elif`, `#else` cases to CCodeIfSection | Princeton Ferro | 2021-05-20 | 1 | -7/+35 |
| | |||||
* | ccode: Allow to add defines in a special section | Rico Tzschichholz | 2021-05-20 | 1 | -0/+9 |
| | |||||
* | codegen: Use CCodeDeclaratorSuffix to emit array length of constants | Rico Tzschichholz | 2021-02-01 | 1 | -6/+18 |
| | |||||
* | ccode: Minor API cleaning and additions | Rico Tzschichholz | 2021-02-01 | 7 | -15/+19 |
| | |||||
* | ccode: Use __attribute__ replacements of G_GNUC_* for posix profile | Rico Tzschichholz | 2020-11-15 | 9 | -18/+78 |
| | |||||
* | vala: Make use of new printf-like API of Report.*() | Rico Tzschichholz | 2020-10-26 | 1 | -1/+1 |
| | |||||
* | build: Stop passing obsolete --use-header | Rico Tzschichholz | 2020-09-27 | 1 | -1/+0 |
| | |||||
* | Use "str_equal" as equal_func for ArrayList<string> instances | Rico Tzschichholz | 2020-05-08 | 1 | -1/+1 |
| | |||||
* | codegen: Use specified indices to access multidimensional array constants | Rico Tzschichholz | 2020-04-13 | 1 | -3/+16 |
| | | | | | | | This fixes compile issues together with -Waggressive-loop-optimizations and warnings with -Warray-bounds. Fixes https://gitlab.gnome.org/GNOME/vala/issues/905 | ||||
* | vala: Drop --use-header compiler option and enable it by default | Mason Bogue | 2020-04-05 | 1 | -6/+4 |
| | | | | | | Import definitions from generated header files if available Fixes https://gitlab.gnome.org/GNOME/vala/issues/713 | ||||
* | codegen: Use defintions of public header in internal header if available | Mason Bogue | 2020-04-05 | 1 | -2/+12 |
| | | | | | | Add CCode API to distinguish between public and internal header files. See https://gitlab.gnome.org/GNOME/vala/issues/713 | ||||
* | codegen: Improve *_get_type() fast path (requires glib >= 2.58) | Rico Tzschichholz | 2019-12-05 | 2 | -1/+5 |
| | | | | | | | | | | | Uses G_GNUC_NO_INLINE if glib >= 2.58 is targetted otherwise the compiler is free to inline the separate *_get_type_once() function. Follows the changes introduced in glib by https://gitlab.gnome.org/GNOME/glib/commit/e924f777369710221c3e0a9d7bf40392a27d1fa4 See https://gitlab.gnome.org/GNOME/glib/issues/541 and https://gitlab.gnome.org/GNOME/vala/issues/879 | ||||
* | ccode: Implicitly register declaration for added CCodeFunction | Rico Tzschichholz | 2019-10-01 | 1 | -0/+8 |
| | | | | | This will prevent the user's vala source to override implicitly defined functions of vala's boilerblate for a type. | ||||
* | build: Pass some useful G_LOG_DOMAIN definitions | Rico Tzschichholz | 2019-04-24 | 1 | -0/+1 |
| | |||||
* | ccode: Rename CCodeFeatureTestMacro to CCodeDefine and generalize it | Rico Tzschichholz | 2019-03-22 | 4 | -40/+34 |
| | | | | This now serves as base for CCodeMacroReplacement too. | ||||
* | codegen: Allow to associate CCodeFile to actual SourceFile | Rico Tzschichholz | 2019-02-23 | 1 | -0/+6 |
| | |||||
* | ccode: Add void to delegate typedef declarations without parameters | Rico Tzschichholz | 2018-11-19 | 1 | -0/+3 |
| | | | | Found with -Werror=strict-prototypes | ||||
* | ccode: Don't allow more than one consecutive empty lines in generated code | Rico Tzschichholz | 2018-11-19 | 1 | -0/+9 |
| | |||||
* | ccode: Fix typo and actually check "end_decls" | Rico Tzschichholz | 2018-10-09 | 1 | -1/+1 |
| | | | | | | Note both begin_decls and end_decls must be either not null or null. Fixes https://gitlab.gnome.org/GNOME/vala/issues/672 | ||||
* | Use dedicated version api of libvala internally as well | Rico Tzschichholz | 2018-08-09 | 1 | -1/+1 |
| | |||||
* | ccode: Properly depend on in-tree built libvala | Rico Tzschichholz | 2018-05-14 | 1 | -0/+2 |
| | |||||
* | Drop trailing spaces/tabs | Rico Tzschichholz | 2018-03-27 | 38 | -129/+129 |
| | | | | It was about time to do this. | ||||
* | codegen: Add support for feature test macros | Dr. Michael Lauer | 2018-02-20 | 3 | -0/+56 |
| | | | | | | | | | This adds new CCode string attribute 'feature_test_macro = "VALUE"'. Such values will be added before the headers section as '#define VALUE'. https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html https://bugzilla.gnome.org/show_bug.cgi?id=793444 | ||||
* | ccode: Don't write trailing space in function declarations/definitions | Rico Tzschichholz | 2018-01-08 | 1 | -1/+1 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=688447 | ||||
* | ccode: Replace if-else-tree with switch | Rico Tzschichholz | 2017-12-05 | 1 | -24/+13 |
| | |||||
* | ccode: Reformat function declaration and definition for better readability | Rico Tzschichholz | 2017-11-19 | 2 | -1/+16 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=688447 | ||||
* | gee: Add some useful symbols from gee-0.8 | Rico Tzschichholz | 2017-06-27 | 1 | -5/+2 |
| | |||||
* | codegen: Fix finally blocks with async yields | Luca Bruno | 2017-05-09 | 1 | -1/+5 |
| | | | | | | | The Method.yield_count is not correct because in C the finally blocks may be emitted twice. https://bugzilla.gnome.org/show_bug.cgi?id=741929 | ||||
* | codewriter: Update timestamps of generated c-files if needed | Rico Tzschichholz | 2017-04-30 | 1 | -0/+8 |
| | | | | | | | | If a changed source-file produces the same ccode we currently leave existing files untouched. Although it is better to update the modification timestamp of those to at least meet the one of associated source-file. https://bugzilla.gnome.org/show_bug.cgi?id=683286 | ||||
* | build: Make sure to dist all generated headers | Rico Tzschichholz | 2017-04-26 | 1 | -1/+1 |
| | |||||
* | build: Use --use-header for libraries | Rico Tzschichholz | 2017-04-25 | 1 | -0/+1 |
| | | | | Reduces the size of generated c-sources while avoiding redefinitions. | ||||
* | build: Make ccode and codegen private API | Rico Tzschichholz | 2017-04-14 | 1 | -6/+1 |
| | | | | valac is the only consumer and will statically link these libraries. | ||||
* | Move writing of G_GNUC_DEPRECATED down to CCodeDeclarator implementations | Rico Tzschichholz | 2017-01-04 | 2 | -4/+4 |
| | | | | | Doing so in CCodeDeclaration is error-prone. CCodeVariableDeclarator still requires special handling which isn't done here. | ||||
* | ccodefunction: Only add G_GNUC_DEPRECATED to declarations | Rico Tzschichholz | 2017-01-04 | 1 | -4/+4 |
| | |||||
* | ccode: Fix and disable deprecating EnumValue | Rico Tzschichholz | 2016-11-11 | 1 | -3/+5 |
| | | | | | This still requires GCC 6.0 and later to work. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043 | ||||
* | Transform CCode*'s "deprecated" into using CCodeNode's "modifiers" | Rico Tzschichholz | 2016-11-11 | 4 | -23/+6 |
| | |||||
* | Add G_GNUC_PRINTF/SCANF attribute for Printf/ScanfFormat functions | Rico Tzschichholz | 2016-11-09 | 3 | -3/+31 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=710862 | ||||
* | Transform CCodeParameter's "format_arg" into CCodeNode's "modifiers" | Rico Tzschichholz | 2016-11-08 | 4 | -5/+4 |
| | |||||
* | Add CCodeNode "modifiers" and transform CCodeFunction's "attributes" to it | Rico Tzschichholz | 2016-11-08 | 4 | -17/+22 |
| | |||||
* | codegen: Add G_GNUC_FORMAT attribute for FormatArg function-pointers | Rico Tzschichholz | 2016-11-07 | 1 | -4/+11 |
| | |||||
* | codegen: Add G_GNUC_FORMAT attribute for FormatArg functions | Jürg Billeter | 2016-11-07 | 2 | -5/+14 |
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060 |