Skip to content

Commit 085dc55

Browse files
committed
rt: Remove unused parts of rust_globals.h
1 parent 1b6292a commit 085dc55

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/rt/rust_globals.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,12 @@ extern "C" {
8181
#define CDECL __cdecl
8282
#endif
8383
#ifndef FASTCALL
84-
#define FASTCALL __fastcall
8584
#endif
8685
#else
8786
#define CDECL __attribute__((cdecl))
88-
#define FASTCALL __attribute__((fastcall))
8987
#endif
9088
#else
9189
#define CDECL
92-
#define FASTCALL
9390
#endif
9491

9592
#define CHECKED(call) \
@@ -104,22 +101,4 @@ extern "C" {
104101
} \
105102
}
106103

107-
#define MUST_CHECK __attribute__((warn_unused_result))
108-
109-
#define PTR "0x%" PRIxPTR
110-
111-
// This accounts for logging buffers.
112-
static size_t const BUF_BYTES = 2048;
113-
114-
#define INIT_TASK_ID 1
115-
116-
// The error status to use when the process fails
117-
#define PROC_FAIL_CODE 101
118-
119-
// A cond(ition) is something we can block on. This can be a channel
120-
// (writing), a port (reading) or a task (waiting).
121-
struct rust_cond { };
122-
123-
extern void* global_crate_map;
124-
125104
#endif /* RUST_GLOBALS_H */

0 commit comments

Comments
 (0)