mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 23:05:21 +00:00
Estimated hours taken: 2 Branches: main The runtime had two different conventions for naming types. One convention, used mostly in the debugger-related modules, added underscores between capitalized words; example: MR_Label_Layout. The other convention, used in most modules, used capitalized words without underscores (e.g. MR_TypeInfo). This diff standardizes on the second convention. It has no algorithmic changes, only renames of types. runtime/*.[ch]: trace/*.[ch]: compiler/*.m: library/*.m: mdbcomp/*.m: Effect the change described above. The only substantive change is that runtime/mercury_stack_layout.h used to define *two* types for trace levels: MR_TraceLevel and MR_Trace_Level, and this diff standardizes on just one (they had equivalent definitions). runtime/mercury_bootstrap.h: Add a #define from the old name to the new for all the changed type names that the installed compiler can put into .c files. We can delete these #defines some time after this diff has bootstrapped. slice/.mgnuc_opts: Restore the --no-mercury-stdlib-dir option, without which the slice directory won't compile after this change (because it looks for type names in the installed runtime header files, which define the old versions of type names).
51 lines
1.9 KiB
C
51 lines
1.9 KiB
C
/*
|
|
** vim: ts=4 sw=4 expandtab
|
|
*/
|
|
/*
|
|
** Copyright (C) 1998-2006 The University of Melbourne.
|
|
** This file may only be copied under the terms of the GNU Library General
|
|
** Public License - see the file COPYING.LIB in the Mercury distribution.
|
|
*/
|
|
|
|
#include "mercury_std.h"
|
|
#include "mercury_types.h"
|
|
|
|
#include "mercury_trace.h"
|
|
#include "mercury_trace_cmds.h"
|
|
#include "mercury_trace_browse.h"
|
|
|
|
extern MR_TraceCmdFunc MR_trace_cmd_level;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_up;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_down;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_vars;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_held_vars;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_print;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_browse;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_stack;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_current;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_view;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_hold;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_diff;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_dump;
|
|
extern MR_TraceCmdFunc MR_trace_cmd_list;
|
|
|
|
/*
|
|
** If we are attached to a source server, then find the appropriate
|
|
** context and ask the server to point to it, otherwise do nothing.
|
|
*/
|
|
|
|
extern void MR_trace_maybe_sync_source_window(
|
|
MR_EventInfo *event_info, MR_bool verbose);
|
|
|
|
extern void MR_trace_browse_internal(MR_Word type_info,
|
|
MR_Word value, MR_BrowseCallerType caller,
|
|
MR_BrowseFormat format);
|
|
extern void MR_trace_browse_goal_internal(MR_ConstString name,
|
|
MR_Word arg_list, MR_Word is_func,
|
|
MR_BrowseCallerType caller,
|
|
MR_BrowseFormat format);
|
|
|
|
extern const char *const MR_trace_print_cmd_args[];
|
|
extern const char *const MR_trace_stack_cmd_args[];
|
|
extern const char *const MR_trace_view_cmd_args[];
|