mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 04:44:39 +00:00
Add MR_ prefixes to the remaining non-prefixed symbols.
Estimated hours taken: 4 Branches: main Add MR_ prefixes to the remaining non-prefixed symbols. This change will require all workspaces to be updated The compiler will start generating references to MR_TRUE, MR_bool, etc., which are not defined in the old runtime header files. runtime/mercury_std.h: Add MR_ prefixes to bool, TRUE, FALSE, max, min, streq, strdiff, strtest, strntest, strneq, strndiff, strntest, NO_RETURN. Delete a commented out definition of `reg'. runtime/mercury_tags.h: Add an MR_ prefix to TAGBITS. configure.in: runtime/mercury_goto.h: runtime/machdeps/i386_regs.h/mercury_goto.h: Add an MR_ prefix to PIC. runtime/mercury_conf_param.h: Allow non-prefixed PIC and HIGHTAGS to be defined on the command line. runtime/mercury_bootstrap.h: Add backwards compatibility definitions. RESERVED_MACRO_NAMES: Remove the renamed macros. compiler/export.m: compiler/ml_code_gen.m: Use MR_bool rather than MR_Bool (MR_Bool is meant to be for references to the Mercury type bool__bool). runtime/mercury_types.h: Add a comment the MR_Bool is for references to bool__bool. */*.c: */*.h: */*.m: Add MR_ prefixes.
This commit is contained in:
@@ -29,7 +29,7 @@ MR_make_string(MR_Code *proclabel, const char *fmt, ...) {
|
||||
#ifdef MR_HAVE_A_VSNPRINTF
|
||||
int size = BUFFER_SIZE;
|
||||
char fixed[BUFFER_SIZE];
|
||||
bool dynamically_allocated = FALSE;
|
||||
MR_bool dynamically_allocated = MR_FALSE;
|
||||
|
||||
/*
|
||||
** On the first iteration we try with a fixed-size buffer.
|
||||
@@ -59,7 +59,7 @@ MR_make_string(MR_Code *proclabel, const char *fmt, ...) {
|
||||
|
||||
if (!dynamically_allocated) {
|
||||
p = MR_NEW_ARRAY(char, size);
|
||||
dynamically_allocated = TRUE;
|
||||
dynamically_allocated = MR_TRUE;
|
||||
} else {
|
||||
p = MR_RESIZE_ARRAY(p, char, size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user