Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-02-20 12:52:19 +0000
committerHenrik Rentz-Reichert2012-02-20 12:52:19 +0000
commit7bdb59d5803cc2cc692f248ec6f9c8ec30c17156 (patch)
treee2ba4d92513f2fbc0d0882403fcc31a931a6f8d5 /plugins/org.eclipse.etrice.generator.c/src/org/eclipse
parent124ca8999058a6183a157ece9c129a5bf3e8942c (diff)
downloadorg.eclipse.etrice-7bdb59d5803cc2cc692f248ec6f9c8ec30c17156.tar.gz
org.eclipse.etrice-7bdb59d5803cc2cc692f248ec6f9c8ec30c17156.tar.xz
org.eclipse.etrice-7bdb59d5803cc2cc692f248ec6f9c8ec30c17156.zip
[generator. generator.c] bug fix for empty state-machines in expanded actor class
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
index 8dcd831d5..ebee5db5e 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
@@ -103,7 +103,7 @@ class ActorClassGen extends GenericActorClassGenerator {
/* variable part of ActorClass (RAM) */
struct «xpac.name» {
const «xpac.name»_const* constData;
- «IF xpac.stateMachine!=null»
+ «IF xpac.hasNonEmptyStateMachine»
«stateMachineGen.genDataMembers(xpac, ac)»
«ENDIF»
};
@@ -142,13 +142,13 @@ class ActorClassGen extends GenericActorClassGenerator {
/* interface item IDs */
«genInterfaceItemConstants(xpac, ac)»
- «IF xpac.stateMachine != null»
+ «IF xpac.hasNonEmptyStateMachine»
«stateMachineGen.genStateMachine(xpac, ac)»
«ENDIF»
void «xpac.name»_init(«xpac.name»* self){
ET_MSC_LOGGER_SYNC_ENTRY("«xpac.name»", "init")
- «IF xpac.stateMachine != null»
+ «IF xpac.hasNonEmptyStateMachine»
«stateMachineGen.genInitialization(xpac, ac)»
«ENDIF»
ET_MSC_LOGGER_SYNC_EXIT
@@ -157,7 +157,7 @@ class ActorClassGen extends GenericActorClassGenerator {
void «xpac.name»_ReceiveMessage(void* self, void* ifitem, const etMessage* msg){
ET_MSC_LOGGER_SYNC_ENTRY("«xpac.name»", "ReceiveMessage")
- «IF xpac.stateMachine != null»
+ «IF xpac.hasNonEmptyStateMachine»
receiveEvent(self, (etPort*)ifitem, msg->evtID, (void*)(&msg[1]));
«ENDIF»

Back to the top