summaryrefslogtreecommitdiff
path: root/ccode
Commit message (Collapse)AuthorAgeFilesLines
* build: Pass some useful G_LOG_DOMAIN definitionsRico Tzschichholz2019-04-241-0/+1
|
* ccode: Rename CCodeFeatureTestMacro to CCodeDefine and generalize itRico Tzschichholz2019-03-224-40/+34
| | | | This now serves as base for CCodeMacroReplacement too.
* codegen: Allow to associate CCodeFile to actual SourceFileRico Tzschichholz2019-02-231-0/+6
|
* ccode: Add void to delegate typedef declarations without parametersRico Tzschichholz2018-11-191-0/+3
| | | | Found with -Werror=strict-prototypes
* ccode: Don't allow more than one consecutive empty lines in generated codeRico Tzschichholz2018-11-191-0/+9
|
* ccode: Fix typo and actually check "end_decls"Rico Tzschichholz2018-10-091-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 wellRico Tzschichholz2018-08-091-1/+1
|
* ccode: Properly depend on in-tree built libvalaRico Tzschichholz2018-05-141-0/+2
|
* Drop trailing spaces/tabsRico Tzschichholz2018-03-2738-129/+129
| | | | It was about time to do this.
* codegen: Add support for feature test macrosDr. Michael Lauer2018-02-203-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/definitionsRico Tzschichholz2018-01-081-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=688447
* ccode: Replace if-else-tree with switchRico Tzschichholz2017-12-051-24/+13
|
* ccode: Reformat function declaration and definition for better readabilityRico Tzschichholz2017-11-192-1/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=688447
* gee: Add some useful symbols from gee-0.8Rico Tzschichholz2017-06-271-5/+2
|
* codegen: Fix finally blocks with async yieldsLuca Bruno2017-05-091-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 neededRico Tzschichholz2017-04-301-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 headersRico Tzschichholz2017-04-261-1/+1
|
* build: Use --use-header for librariesRico Tzschichholz2017-04-251-0/+1
| | | | Reduces the size of generated c-sources while avoiding redefinitions.
* build: Make ccode and codegen private APIRico Tzschichholz2017-04-141-6/+1
| | | | valac is the only consumer and will statically link these libraries.
* Move writing of G_GNUC_DEPRECATED down to CCodeDeclarator implementationsRico Tzschichholz2017-01-042-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 declarationsRico Tzschichholz2017-01-041-4/+4
|
* ccode: Fix and disable deprecating EnumValueRico Tzschichholz2016-11-111-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 Tzschichholz2016-11-114-23/+6
|
* Add G_GNUC_PRINTF/SCANF attribute for Printf/ScanfFormat functionsRico Tzschichholz2016-11-093-3/+31
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710862
* Transform CCodeParameter's "format_arg" into CCodeNode's "modifiers"Rico Tzschichholz2016-11-084-5/+4
|
* Add CCodeNode "modifiers" and transform CCodeFunction's "attributes" to itRico Tzschichholz2016-11-084-17/+22
|
* codegen: Add G_GNUC_FORMAT attribute for FormatArg function-pointersRico Tzschichholz2016-11-071-4/+11
|
* codegen: Add G_GNUC_FORMAT attribute for FormatArg functionsJürg Billeter2016-11-072-5/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774060
* Fix deprecation of class/struct fieldsRico Tzschichholz2016-11-033-8/+11
| | | | | Respect the "deprecated" attributes given to class and struct fields, while actually adding G_GNUC_DEPRECATED to their declaration.
* Don't create constant Regex on demand and use static field where possibleRico Tzschichholz2016-11-011-2/+5
|
* ccodewriter: Use private _bol field instead of propertyRico Tzschichholz2016-11-011-2/+2
|
* writer: Some string optimizationsRico Tzschichholz2016-11-011-4/+1
|
* Avoid some string copyingRico Tzschichholz2016-11-011-4/+1
|
* ccode: Replace if-else-tree with switchRico Tzschichholz2016-10-302-61/+36
|
* ccode: Add missing newline after gnuc deprecations attributePhilip Withnall2016-10-181-0/+1
| | | | | | | | | In generated C code, code wrapped by G_GNUC_[BEGIN|END]_IGNORE_DEPRECATIONS was missing a newline after the BEGIN attribute, which was causing compilation failures. Fix that by adding the missing newline. https://bugzilla.gnome.org/show_bug.cgi?id=773129
* codegen: Support deprecating properties and their accessorsRico Tzschichholz2016-10-182-0/+65
| | | | | | | | | | | | Use G_PARAM_DEPRECATED for properties and in addition their accessor methods will be marked as deprecated. Guard internal accessors calls with G_GNUC_BEGIN/END_IGNORED_DEPRECATIONS to silence unavoidable warnings. Based on patch by Simon Werbeck <simon.werbeck@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=732449
* Fix parameter names in the documentation for libvalaBen Iofel2015-11-111-1/+0
| | | | Fixes bug 755917
* build: Avoid using ".." for referencing paths and reorganize valac-callsRico Tzschichholz2014-08-241-5/+12
|
* Support non-literal length in fixed-size arraysSimon2014-03-302-6/+33
| | | | | | | Now any constant integer expression can be used as length for fixed-size arrays. Fixes bug 638993
* Hide internal methods in ABIMaciej Piechotka2014-03-243-3/+10
| | | | Fixes bug 700157
* build: Fix missing backslashes in listsStef Walter2014-03-021-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=725496
* codegen: use #if GLIB_CHECK_VERSION for init functionsMarc-André Lureau2013-12-142-0/+51
| | | | | | | | | Tarballs with generated code should compile without warnings, and work with various versions of glib (assuming the rest of the code is correctly up to date, which is often the case if you don't use newer functions) https://bugzilla.gnome.org/show_bug.cgi?id=692218
* codegen: Fix va_start argument in methods throwing errorsJürg Billeter2012-08-011-1/+9
| | | | Fixes bug 620673.
* ccode: Add current_line in CCodeFunction to be set for added statementsLuca Bruno2011-07-181-10/+23
|
* ccode: Fix line breaking of string literals with octal escape sequencesJürg Billeter2011-05-301-0/+14
|
* codegen: Add CCodeFunction.add_assignment convenience functionLuca Bruno2011-01-191-0/+4
|
* Add get_type functions to symbols fileJürg Billeter2011-01-151-6/+14
| | | | Fixes bug 637909.
* Rename FormalParameter to ParameterJürg Billeter2010-10-284-13/+13
|
* Add builder API to CCodeFunctionJürg Billeter2010-09-091-0/+133
|
* Add CCodeFile.add_function_declaration and CCodeFunction.is_declarationJürg Billeter2010-09-092-2/+12
|