Files
mercury/runtime
Peter Ross 1087bee8e5 Fixes to make the compiler compile using MSVC in the LLDS grades.
Estimated hours taken: 2
Branches: main

Fixes to make the compiler compile using MSVC in the LLDS grades.

compiler/llds_out.m:
	MSVC treats declarations such as
		"static const struct s a[];"
	as definitions.  As a definition it doesn't know the size
	of the definition, so aborts.
	Thus if we are using the MSVC compiler we change "static"
	to "extern", via the use of #ifdef _MSC_VER.

runtime/mercury_stack_layout.h:
	The MSVC C pre-processor aborts on comments inside C
	pre-processor #defines, eg
		#define P(X) Q(/* extern */, X)
	It seems to treat strip the comment and then complain
	about the missing argument.
	The comment is no replaced with a pre-processor simple
	which evaluates to the empty string.
2007-05-28 06:32:41 +00:00
..
2006-12-01 04:53:43 +00:00
2007-05-03 04:34:56 +00:00