Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-02-21 18:29:56 +0000
committerHenrik Rentz-Reichert2012-02-21 18:29:56 +0000
commit5cbe79fbf4dc676551eecd754a0a18a6844da71c (patch)
tree51d51a09405ba8e528af9c84267f9f302b6f1498 /plugins/org.eclipse.etrice.generator.c/src/org/eclipse
parent3b74849b3e734c85d747bd65bc3ef6f84360c38f (diff)
downloadorg.eclipse.etrice-5cbe79fbf4dc676551eecd754a0a18a6844da71c.tar.gz
org.eclipse.etrice-5cbe79fbf4dc676551eecd754a0a18a6844da71c.tar.xz
org.eclipse.etrice-5cbe79fbf4dc676551eecd754a0a18a6844da71c.zip
[generator.c] bug fix in length of history array
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/StateMachineGen.xtend2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/StateMachineGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/StateMachineGen.xtend
index 4cae655ad..f17e4a509 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/StateMachineGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/StateMachineGen.xtend
@@ -27,7 +27,7 @@ class StateMachineGen extends GenericStateMachineGenerator {
def genDataMembers(ExpandedActorClass xpac, ActorClass ac) {'''
/* state machine variables */
etInt16 state;
- etInt16 history[«xpac.allLeafStates.size»];
+ etInt16 history[«xpac.allLeafStates.size+1/* TODO: can save one entry if NO_STATE=-1 but influences Java */»];
'''}
def genInitialization(ExpandedActorClass xpac, ActorClass ac) {'''

Back to the top