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-08-02 06:48:56 +00:00
2005-09-14 05:31:37 +00:00
2005-09-19 08:07:15 +00:00
2005-09-19 08:07:15 +00:00
2007-01-03 05:17:21 +00:00
2005-06-21 03:12:03 +00:00
2007-01-03 05:17:21 +00:00
2005-06-21 03:12:03 +00:00
2005-08-11 01:12:53 +00:00
2007-05-03 07:16:44 +00:00
2007-02-17 01:05:25 +00:00
2006-12-07 06:25:43 +00:00
2007-02-16 02:32:31 +00:00
2007-02-16 02:32:31 +00:00
2005-09-27 06:20:54 +00:00
2005-06-20 02:16:44 +00:00
2007-04-13 04:56:46 +00:00
2006-12-22 08:31:18 +00:00
2007-02-13 01:59:04 +00:00
2005-06-21 03:12:03 +00:00
2007-05-01 01:13:58 +00:00
2007-05-10 05:24:16 +00:00
2007-01-03 05:17:21 +00:00
2006-11-01 02:31:19 +00:00
2007-01-05 02:19:46 +00:00
2007-02-13 01:59:04 +00:00
2007-01-05 02:19:46 +00:00
2006-11-29 05:18:42 +00:00
2007-02-13 01:59:04 +00:00
2006-11-14 00:15:41 +00:00
2007-02-13 01:59:04 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-14 00:15:41 +00:00
2005-08-11 01:12:53 +00:00
2006-11-14 00:15:41 +00:00
2007-04-04 01:09:52 +00:00
2007-05-10 05:24:16 +00:00
2007-02-15 00:41:59 +00:00
2007-03-02 02:56:42 +00:00
2007-01-03 05:17:21 +00:00
2007-03-02 02:56:42 +00:00
2006-06-08 08:20:17 +00:00
2006-11-14 00:15:41 +00:00
2005-08-01 02:40:13 +00:00
2006-11-14 00:15:41 +00:00
2006-10-11 22:42:10 +00:00
2006-10-14 16:59:41 +00:00
2006-03-29 08:09:58 +00:00
2007-04-13 04:56:46 +00:00
2006-11-29 05:18:42 +00:00
2006-02-24 07:11:21 +00:00
2006-11-29 05:18:42 +00:00
2007-01-03 05:17:21 +00:00
2007-01-03 05:17:21 +00:00
2007-01-08 09:15:22 +00:00
2006-11-29 05:18:42 +00:00
2006-10-09 06:40:29 +00:00
2006-12-01 04:53:43 +00:00
2007-02-13 01:59:04 +00:00
2006-03-18 15:57:58 +00:00
2007-03-03 03:43:35 +00:00
2006-12-01 04:53:43 +00:00
2006-11-01 02:31:19 +00:00
2006-11-01 02:31:19 +00:00
2006-11-29 05:18:42 +00:00
2006-11-29 05:18:42 +00:00
2006-11-14 00:15:41 +00:00
2006-04-24 04:38:41 +00:00
2007-01-05 02:19:46 +00:00
2007-02-13 01:59:04 +00:00
2007-01-05 02:19:46 +00:00
2007-04-17 05:38:22 +00:00
2007-01-03 05:17:21 +00:00
2006-11-01 02:31:19 +00:00
2006-11-29 05:18:42 +00:00
2006-11-14 00:15:41 +00:00
2006-08-15 04:19:40 +00:00
2006-11-14 00:15:41 +00:00
2006-11-14 00:15:41 +00:00
2006-09-26 07:08:20 +00:00
2006-11-14 00:15:41 +00:00
2006-11-14 00:15:41 +00:00
2007-05-10 05:24:16 +00:00
2006-11-29 00:37:25 +00:00
2006-11-28 06:57:43 +00:00
2006-11-14 00:15:41 +00:00
2005-06-20 02:16:44 +00:00
2006-11-29 05:18:42 +00:00
2007-05-28 06:32:41 +00:00
2007-01-03 05:17:21 +00:00
2006-12-05 03:51:22 +00:00
2006-11-01 02:31:19 +00:00
2006-11-01 02:31:19 +00:00
2005-09-13 08:25:44 +00:00
2006-11-14 00:15:41 +00:00
2007-03-18 23:35:04 +00:00
2006-11-30 05:22:42 +00:00
2006-11-30 05:22:42 +00:00
2007-02-13 01:59:04 +00:00
2006-06-08 08:20:17 +00:00
2007-02-13 01:59:04 +00:00
2007-01-03 05:17:21 +00:00
2006-06-08 08:20:17 +00:00
2006-06-08 08:20:17 +00:00
2006-06-08 08:20:17 +00:00
2007-02-13 01:59:04 +00:00
2007-02-13 01:59:04 +00:00
2006-06-08 08:20:17 +00:00
2007-02-18 08:01:56 +00:00
2007-05-01 01:13:58 +00:00
2007-05-03 04:34:56 +00:00
2006-11-14 00:15:41 +00:00
2006-08-07 06:21:32 +00:00
2007-05-02 02:16:02 +00:00
2007-05-02 02:16:02 +00:00
2006-11-24 03:48:30 +00:00
2006-11-24 03:48:30 +00:00
2007-05-10 05:24:16 +00:00
2007-05-10 05:24:16 +00:00
2006-02-22 06:23:54 +00:00
2006-12-06 03:45:03 +00:00
2007-04-13 04:56:46 +00:00
2007-01-03 05:17:21 +00:00
2005-10-25 04:00:56 +00:00
2007-02-13 01:59:04 +00:00
2007-04-17 05:44:14 +00:00
2007-05-01 01:13:58 +00:00
2007-02-09 04:05:18 +00:00
2006-11-14 00:15:41 +00:00
2006-12-22 08:31:18 +00:00
2007-02-13 01:59:04 +00:00
2006-08-30 14:11:48 +00:00