projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stable Tag: Copying everything over
[synfig.git]
/
ETL
/
tags
/
stable
/
test
/
smach.cpp
diff --git
a/ETL/tags/stable/test/smach.cpp
b/ETL/tags/stable/test/smach.cpp
index
7ef46ba
..
bb5f48d
100644
(file)
--- a/
ETL/tags/stable/test/smach.cpp
+++ b/
ETL/tags/stable/test/smach.cpp
@@
-63,10
+63,10
@@
class DefaultStateContext
{
MachineContext *context;
public:
{
MachineContext *context;
public:
- DefaultStateContext(MachineContext *context):context(context) { printf("Enter
t
ed Default State\n"); }
+ DefaultStateContext(MachineContext *context):context(context) { printf("Entered Default State\n"); }
~DefaultStateContext() { printf("Left Default State\n"); }
~DefaultStateContext() { printf("Left Default State\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("DEFAULT STATE: Received Event 1\n");
return Smach::RESULT_ACCEPT;
{
printf("DEFAULT STATE: Received Event 1\n");
return Smach::RESULT_ACCEPT;
@@
-93,10
+93,10
@@
class State1Context
{
MachineContext *context;
public:
{
MachineContext *context;
public:
- State1Context(MachineContext *context):context(context) { printf("Enter
t
ed State 1\n"); }
+ State1Context(MachineContext *context):context(context) { printf("Entered State 1\n"); }
~State1Context() { printf("Left State 1\n"); }
~State1Context() { printf("Left State 1\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("STATE1: Received Event 1\n");
return Smach::RESULT_OK;
{
printf("STATE1: Received Event 1\n");
return Smach::RESULT_OK;
@@
-121,22
+121,22
@@
class State2Context
{
MachineContext *context;
public:
{
MachineContext *context;
public:
- State2Context(MachineContext *context):context(context) { printf("Enter
t
ed State 2\n"); }
+ State2Context(MachineContext *context):context(context) { printf("Entered State 2\n"); }
~State2Context() { printf("Left State 2\n"); }
~State2Context() { printf("Left State 2\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("STATE2: Received Event 1\n");
return Smach::RESULT_OK;
}
{
printf("STATE2: Received Event 1\n");
return Smach::RESULT_OK;
}
- Smach::event_result event2_handler(const Smach::event& x)
+ Smach::event_result event2_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("STATE2: Received Event 2\n");
return Smach::RESULT_OK;
}
{
printf("STATE2: Received Event 2\n");
return Smach::RESULT_OK;
}
- Smach::event_result event3_handler(const Smach::event& x)
+ Smach::event_result event3_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("STATE2: Received Event 3\n");
return Smach::RESULT_OK;
{
printf("STATE2: Received Event 3\n");
return Smach::RESULT_OK;
@@
-156,7
+156,7
@@
public:
} state_2;
Smach::event_result
} state_2;
Smach::event_result
-State1Context::event3_handler(const Smach::event& x)
+State1Context::event3_handler(const Smach::event& x
__attribute__ ((unused))
)
{
printf("STATE1: Received Event 3, throwing state to change to...\n");
{
printf("STATE1: Received Event 3, throwing state to change to...\n");