summaryrefslogtreecommitdiff
path: root/ccode
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-11-08 12:09:25 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2016-11-08 12:59:05 +0100
commit8629814fad411c2d0bd9f801cda8864f324ab271 (patch)
tree91d23c40c7add369adc35eadfa0a40e4ac6236fd /ccode
parentdcac30061993d9625fc6ebb74ad9e42cafb9ff65 (diff)
downloadvala-8629814fad411c2d0bd9f801cda8864f324ab271.tar.gz
Transform CCodeParameter's "format_arg" into CCodeNode's "modifiers"
Diffstat (limited to 'ccode')
-rw-r--r--ccode/valaccodefunction.vala2
-rw-r--r--ccode/valaccodefunctiondeclarator.vala2
-rw-r--r--ccode/valaccodemodifiers.vala3
-rw-r--r--ccode/valaccodeparameter.vala2
4 files changed, 4 insertions, 5 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala
index 43bfb6cbb..cd3e385d0 100644
--- a/ccode/valaccodefunction.vala
+++ b/ccode/valaccodefunction.vala
@@ -125,7 +125,7 @@ public class Vala.CCodeFunction : CCodeNode {
writer.write_string (", ");
}
param.write (writer);
- if (param.format_arg) {
+ if (CCodeModifiers.FORMAT_ARG in param.modifiers) {
format_arg_index = i;
}
i++;
diff --git a/ccode/valaccodefunctiondeclarator.vala b/ccode/valaccodefunctiondeclarator.vala
index 08aea1dbc..1378662c5 100644
--- a/ccode/valaccodefunctiondeclarator.vala
+++ b/ccode/valaccodefunctiondeclarator.vala
@@ -62,7 +62,7 @@ public class Vala.CCodeFunctionDeclarator : CCodeDeclarator {
writer.write_string (", ");
}
param.write (writer);
- if (param.format_arg) {
+ if (CCodeModifiers.FORMAT_ARG in param.modifiers) {
format_arg_index = i;
}
i++;
diff --git a/ccode/valaccodemodifiers.vala b/ccode/valaccodemodifiers.vala
index 086056f67..75c5a99d7 100644
--- a/ccode/valaccodemodifiers.vala
+++ b/ccode/valaccodemodifiers.vala
@@ -38,5 +38,6 @@ public enum Vala.CCodeModifiers {
CONST = 1 << 8,
UNUSED = 1 << 9,
CONSTRUCTOR = 1 << 10,
- DESTRUCTOR = 1 << 11
+ DESTRUCTOR = 1 << 11,
+ FORMAT_ARG = 1 << 12
}
diff --git a/ccode/valaccodeparameter.vala b/ccode/valaccodeparameter.vala
index 9404f470c..9f1c2e186 100644
--- a/ccode/valaccodeparameter.vala
+++ b/ccode/valaccodeparameter.vala
@@ -42,8 +42,6 @@ public class Vala.CCodeParameter : CCodeNode {
*/
public bool ellipsis { get; set; }
- public bool format_arg { get; set; }
-
public CCodeParameter (string n, string type) {
name = n;
type_name = type;