diff options
author | Tamar Christina <tamar@zhox.com> | 2016-06-04 13:07:32 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-06-04 13:07:32 +0200 |
commit | b948a1da7a3929160cb7cb8d6cf2fe79c3081d0a (patch) | |
tree | cb0d4740fa4fdffb2d456f89a974211f6359ef46 /rts/RtsSymbols.h | |
parent | 4dbacbc89a999bf371d51194b4662a209ac907f1 (diff) | |
download | haskell-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.h | 8 |
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; |