Commit Graph

6 Commits

Author SHA1 Message Date
Peter Ross
4b0663b520 Avoid using a string after calling MR_free.
Estimated hours taken: 0.1
Branches: main

runtime/mercury_runtime_util.c:
	Avoid using a string after calling MR_free.
2006-11-29 00:37:25 +00:00
Peter Ross
bc85aed613 Get the sytem building under mingw and cygwin.
Estimated hours taken: 6
Branches: main

Get the sytem building under mingw and cygwin.

README.MinGW:
	Document the new packages you need to install for the
	system to build.

configure.in:
runtime/mercury_conf.h.in:
	Test for the presence of the setenv and putenv functions.

configure.in:
	Comment out some code which breaks with autoconf 2.60.

runtime/mercury_runtime_util.c:
runtime/mercury_runtime_util.h:
	Add MR_setenv which is an implementation of setenv in terms
	of either setenv or putenv.

runtime/mercury_trace_base.c:
	Call MR_setenv.

trace/Mmakefile:
	Mingw and cygwin only have flex 2.5.4 available, so use
	the options compatible with that version.
2006-11-28 06:57:43 +00:00
Zoltan Somogyi
c959a1657f Convert all remaining C source files to four-space indentation.
Estimated hours taken: 0.5
Branches: main

runtime/*.c:
	Convert all remaining C source files to four-space indentation.
	Fix some deviations from our style guide.
2006-11-14 00:15:41 +00:00
Peter Ross
efecdba25b Add a missing MR_HAVE_UNISTD_H around #include of unistd.h.
Estimated hours taken: 0.25
Branches: main

runtime/mercury_runtime_util.c:
	Add a missing MR_HAVE_UNISTD_H around #include of unistd.h.
2002-10-22 13:55:56 +00:00
Simon Taylor
c66cea0665 Add MR_ prefixes to uses of configuration macros.
Estimated hours taken: 2.5
Branches: main

Add MR_ prefixes to uses of configuration macros.
Bootcheck now succeeds with MR_NO_CONF_BACKWARDS_COMPAT.

Mmake.common.in:
	Define MR_NO_CONF_BACKWARDS_COMPAT when checking
	for namespace cleanliness.

RESERVED_MACRO_NAMES:
	Remove the configuration macros.

runtime/mercury_conf_bootstrap.h:
	Remove a duplicate definition of BOXED_FLOAT.

configure.in:
*/*.c:
*/*.h:
*/*.m:
	Add MR_ prefixes.
2002-02-13 09:56:49 +00:00
Zoltan Somogyi
b456621269 New module for utility functions. Contains the checked versions of
Estimated hours taken: 1
Branches: main

runtime/mercury_runtime_util.[ch]:
	New module for utility functions. Contains the checked versions of
	fopen, fclose, atexit which used to be static in mercury_prof.c,
	and the backup version of strerror which used to be in
	mercury_strerror.c.

runtime/mercury_strerror.[ch]:
	Deleted this now obsolete module.

runtime/mercury_prof.c:

runtime/Mmakefile:
	Mention the new module and delete references to the deleted module.

runtime/mercury_deep_profiling.c:
runtime/mercury_trace_base.c:
	Add #includes of the new module.
2001-12-27 07:08:11 +00:00