summaryrefslogtreecommitdiff
path: root/rts/RtsSymbols.h
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2016-06-04 13:07:32 +0200
committerBen Gamari <ben@smart-cactus.org>2016-06-04 13:07:32 +0200
commitb948a1da7a3929160cb7cb8d6cf2fe79c3081d0a (patch)
treecb0d4740fa4fdffb2d456f89a974211f6359ef46 /rts/RtsSymbols.h
parent4dbacbc89a999bf371d51194b4662a209ac907f1 (diff)
downloadhaskell-b948a1da7a3929160cb7cb8d6cf2fe79c3081d0a.tar.gz
Refactor the SymbolName and SymbolAddr types to be pointers
Take the pointer notation out of the typedef such that it preserves the fact that these are pointers at the use site. Test Plan: ./validate on all platforms that use the runtime linker. For unix platforms please ensure `DYNAMIC_GHC_PROGRAMS=NO` is added to your validate file. Continuation of D2250 Reviewers: austin, bgamari, simonmar, erikd Reviewed By: erikd Subscribers: thomie, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D2302 GHC Trac Issues: #11816
Diffstat (limited to 'rts/RtsSymbols.h')
-rw-r--r--rts/RtsSymbols.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/RtsSymbols.h b/rts/RtsSymbols.h
index 00ed590514..e685a9dec1 100644
--- a/rts/RtsSymbols.h
+++ b/rts/RtsSymbols.h
@@ -17,12 +17,12 @@
#define MAYBE_LEADING_UNDERSCORE_STR(s) (s)
#endif
-typedef char* SymbolName;
-typedef void* SymbolAddr;
+typedef char SymbolName;
+typedef void SymbolAddr;
typedef struct _RtsSymbolVal {
- const SymbolName lbl;
- SymbolAddr addr;
+ const SymbolName* lbl;
+ SymbolAddr* addr;
} RtsSymbolVal;