[m-dev.] diff: fix bug with MR_FAKED_VARIABLE_SIZED_ARRAY

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Apr 19 20:55:01 AEST 1999


Estimated hours taken: 0.25

runtime/mercury_conf.h.in:
	Fix another bug in Zoltan's recent change to autoconf the
	variable-sized array stuff: it was missing an entry for
	MR_FAKED_VARIABLE_SIZED_ARRAY, which is defined by
	configure.in and used by mercury_conf_param.h.
	Also make some changes to the comments about
	MR_SUPPORT_VARIABLE_SIZED_ARRAY.

Index: runtime/mercury_conf.h.in
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_conf.h.in,v
retrieving revision 1.15
diff -u -r1.15 mercury_conf.h.in
--- mercury_conf.h.in	1999/04/16 06:05:27	1.15
+++ mercury_conf.h.in	1999/04/19 07:37:14
@@ -238,12 +238,18 @@
 #undef MR_CANNOT_GROK_ASM_TYPE_DIRECTIVE
 
 /*
-** Does the language support structures including, as their last element,
-** a variable sized array indicated by an empty pair of brackets? If not,
-** we have to lie and say that the array has a give number of elements
-** (e.g. 1).
+** Does the C compiler support structures including, as their last element,
+** a variable sized array indicated by an empty pair of brackets?
+** (The draft C9X standard allows this syntax.)
 */
 #undef	MR_SUPPORT_VARIABLE_SIZED_ARRAY
+
+/*
+** Does the C compiler support structures including, as their last element,
+** a variable sized array indicated by specifying a size of zero?
+** (GNU C allows this syntax.)
+*/
+#undef	MR_FAKED_VARIABLE_SIZED_ARRAY
 
 /*
 ** On some platforms, structure assignments can cause gcc to abort

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list