mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 23:35:25 +00:00
Fix an ANSI/ISO C conformance problem that broke the build with lcc:
Estimated hours taken: 0.25 Branches: main, release deep_profiler/timeout.m: Fix an ANSI/ISO C conformance problem that broke the build with lcc: use "\\n" rather than "\n" in pragma c_code fragments.
This commit is contained in:
@@ -166,9 +166,9 @@ MP_maybe_print_cleanup_files(const char *msg)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (MP_print_cleanup_files) {
|
if (MP_print_cleanup_files) {
|
||||||
fprintf(stderr, ""\n%s cleanup files:\n"", msg);
|
fprintf(stderr, ""\\n%s cleanup files:\\n"", msg);
|
||||||
for (i = 0; i < MP_cleanup_file_next; i++) {
|
for (i = 0; i < MP_cleanup_file_next; i++) {
|
||||||
fprintf(stderr, ""%i %s\n"", i, MP_cleanup_files[i]);
|
fprintf(stderr, ""%i %s\\n"", i, MP_cleanup_files[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ MP_delete_cleanup_files_and_exit_failure(const char *signal_name)
|
|||||||
#ifdef MP_DEBUG_MDPROF_SIGNAL
|
#ifdef MP_DEBUG_MDPROF_SIGNAL
|
||||||
fp = fopen(""/tmp/mdprof_signal"", ""w"");
|
fp = fopen(""/tmp/mdprof_signal"", ""w"");
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
fprintf(fp, ""%s\n"", signal_name);
|
fprintf(fp, ""%s\\n"", signal_name);
|
||||||
(void) fclose(fp);
|
(void) fclose(fp);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user