Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-01-15 18:43:05 +0000
committerHenrik Rentz-Reichert2013-01-15 18:43:05 +0000
commit2f92cba7a8f26501fc3cd8fa5629aaa0d0a83064 (patch)
tree69077aee6d5e9854aecfc4471dc1fb536833a9d0 /examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c
parent671466144e9be57d51cb050d332940bfa49f4e28 (diff)
downloadorg.eclipse.etrice-2f92cba7a8f26501fc3cd8fa5629aaa0d0a83064.tar.gz
org.eclipse.etrice-2f92cba7a8f26501fc3cd8fa5629aaa0d0a83064.tar.xz
org.eclipse.etrice-2f92cba7a8f26501fc3cd8fa5629aaa0d0a83064.zip
[generator.c.reference] test of generator
crashes due to race condition: if Run ==> crash if Debug with break point in message service execution ==> ok
Diffstat (limited to 'examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c')
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c b/examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c
new file mode 100644
index 000000000..5ff2a95d4
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen-ts/cGenRef/DataClass1.c
@@ -0,0 +1,30 @@
+/**
+ * @author generated by eTrice
+ *
+ * Source File of DataClass DataClass1
+ *
+ */
+
+#include "DataClass1.h"
+
+#include <string.h>
+
+/*--------------------- begin user code ---------------------*/
+// usercode3
+/*--------------------- end user code ---------------------*/
+
+
+/*--------------------- operations ---------------------*/
+int32 DataClass1_MultiplyWithAttr1(DataClass1* self, int32 value) {
+ return self->Attr1 /* ORIG: Attr1 */*value;
+}
+float32 DataClass1_MultiplyWithAttr3(DataClass1* self, float32 value) {
+ return self->Attr3 /* ORIG: Attr3 */*value;
+}
+
+// deep copy
+void DataClass1_deepCopy(DataClass1* source, DataClass1* target) {
+ memcpy(target, source, sizeof(DataClass1));
+}
+
+

Back to the top