Use https links in user-facing startup and error messages
[ghc.git] / rts / RtsSymbols.h
index 00ed590..650b1f5 100644 (file)
@@ -6,26 +6,22 @@
  *
  * ---------------------------------------------------------------------------*/
 
-#ifndef RTS_SYMBOLS_H
-#define RTS_SYMBOLS_H
+#pragma once
 
 #include "ghcautoconf.h"
+#include "LinkerInternals.h"
+#include <stdbool.h>
 
-#ifdef LEADING_UNDERSCORE
+#if defined(LEADING_UNDERSCORE)
 #define MAYBE_LEADING_UNDERSCORE_STR(s) ("_" s)
 #else
 #define MAYBE_LEADING_UNDERSCORE_STR(s) (s)
 #endif
 
-typedef char* SymbolName;
-typedef void* SymbolAddr;
-
 typedef struct _RtsSymbolVal {
-    const SymbolName lbl;
-    SymbolAddr addr;
+    const SymbolName* lbl;
+    SymbolAddr* addr;
+    bool weak;
 } RtsSymbolVal;
 
-
-extern  RtsSymbolVal rtsSyms[];
-
-#endif /* RTS_SYMBOLS_H */
+extern RtsSymbolVal rtsSyms[];