aboutsummaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-12 19:48:05 -0400
committerFranklin Wei <git@fwei.tk>2015-05-12 19:48:05 -0400
commit9082eb2a10f935a23e140e0089fae26570081883 (patch)
treeca050176948fe7df02658b5510820542a867a35f /src/globals.h
parenteff3b4784cc6bffabbb5e7fbf3b141e85290ab85 (diff)
downloadmarket-sim-9082eb2a10f935a23e140e0089fae26570081883.zip
market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.gz
market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.bz2
market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.xz
added makefile (finally)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/globals.h b/src/globals.h
index a926f1e..a220d79 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -3,11 +3,11 @@
#define ARRAYLEN(x) (sizeof(x) / sizeof(x[0]))
-typedef uint64_t ullong;
-typedef uint32_t ulong;
-typedef uint32_t uint;
-typedef uint16_t ushort;
-typedef uint8_t uchar;
+typedef unsigned long long ullong;
+typedef unsigned long ulong;
+typedef unsigned int uint;
+typedef unsigned short ushort;
+typedef unsigned char uchar;
/* money is represented internally as cents */
struct money_t {
@@ -17,7 +17,7 @@ struct money_t {
struct stock_t {
char *symbol;
char *fullname;
- ulong count;
+ ullong count;
struct money_t current_price;
};