author | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:24:11 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:24:11 (GMT) |
commit | 20dd6d4a46931c1f935931e7ac288fbbf5a8edd5 (patch) (unidiff) | |
tree | 9ce64f9851c6f3028361d94265329690fffa89c9 | |
parent | 8f889f22d854704ea4f472bb950daf2fdb15385b (diff) | |
download | exp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.zip exp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.tar.gz exp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.tar.bz2 |
Added initialization of state variables.
-rw-r--r-- | src/view/exp004init.c | 12 | ||||
-rw-r--r-- | src/view/exp004init.h | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/view/exp004init.c b/src/view/exp004init.c new file mode 100644 index 0000000..fa4b2b0 --- a/dev/null +++ b/src/view/exp004init.c | |||
@@ -0,0 +1,12 @@ | |||
1 | #include "exp004init.h" | ||
2 | #include "exp004state0.h" | ||
3 | |||
4 | #define S exp004state0 | ||
5 | |||
6 | void | ||
7 | exp004init (void) | ||
8 | { | ||
9 | S.zoom = false; | ||
10 | |||
11 | return; | ||
12 | } | ||
diff --git a/src/view/exp004init.h b/src/view/exp004init.h new file mode 100644 index 0000000..5431c9f --- a/dev/null +++ b/src/view/exp004init.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef EXP004INIT_H | ||
2 | #define EXP004INIT_H | ||
3 | |||
4 | /* | ||
5 | * Initialize state variables to default values. | ||
6 | */ | ||
7 | void exp004init (void); | ||
8 | |||
9 | #endif // EXP004INIT | ||