Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-08-20 12:34:21 +0000
committerJuergen Haug2019-08-20 12:34:43 +0000
commit80259b2e0d62d416c02834edd2283b1e24760a7b (patch)
treec83d9e86141a8200062032c1f5d062e0b78d69f5 /plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c
parent994f5eb9ceb2c78b4f294c4a6f3c690caf0360c6 (diff)
downloadorg.eclipse.etrice-80259b2e0d62d416c02834edd2283b1e24760a7b.tar.gz
org.eclipse.etrice-80259b2e0d62d416c02834edd2283b1e24760a7b.tar.xz
org.eclipse.etrice-80259b2e0d62d416c02834edd2283b1e24760a7b.zip
Bug 550253 - fixed inherited dataclass operations + added warn for ctorv_2.0.0-RC13
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
index 5e4b83525..47ac9fe28 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/DataClassGen.xtend
@@ -87,7 +87,7 @@ class DataClassGen {
««« TODO: do we need setters and getters for C and C++ ?
- «dc.operations.operationsDeclaration(dc.name)»
+ «dc.latestOperations.operationsDeclaration(dc.name)»
/* deep copy */
void «dc.name»_deepCopy(«dc.name»* source, «dc.name»* target);
@@ -167,15 +167,14 @@ class DataClassGen {
«dc.userCode(3)»
-««« TODO: do we need setters and getters for C and C++ ?
-
- «dc.operations.operationsImplementation(dc.name)»
+ ««« TODO: do we need setters and getters for C and C++ ?
+
+ «dc.latestOperations.operationsImplementation(dc.name)»
void «dc.name»_deepCopy(«dc.name»* source, «dc.name»* target) {
memcpy(target, source, sizeof(«dc.name»));
}
-
'''}

Back to the top