summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-16 23:24:11 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-16 23:24:11 (GMT)
commit20dd6d4a46931c1f935931e7ac288fbbf5a8edd5 (patch) (unidiff)
tree9ce64f9851c6f3028361d94265329690fffa89c9
parent8f889f22d854704ea4f472bb950daf2fdb15385b (diff)
downloadexp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.zip
exp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.tar.gz
exp005-20dd6d4a46931c1f935931e7ac288fbbf5a8edd5.tar.bz2
Added initialization of state variables.
-rw-r--r--src/view/exp004init.c12
-rw-r--r--src/view/exp004init.h9
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
6void
7exp004init (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 */
7void exp004init (void);
8
9#endif // EXP004INIT

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.