[m-rev.] for review: filter gcc output

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jul 12 00:17:35 AEST 2010


On Sat, 10 Jul 2010, Julien Fischer wrote:

>
> On Fri, 9 Jul 2010, Peter Wang wrote:
>
>>>> +int
>>>> +main(void)
>>> 
>>> s/void/int argc, char **argv/ since the former may be rejected by
>>> particularly picky compilers (since it's not actually C).
>> 
>> Broken, rather: http://c-faq.com/ansi/maindecl.html
>
> Ignore me - I'm talking nonsense there.
>
>> Committing with these changes.
>> 
>
> ...
>
> I have committed the following change to this.
>

And the following as well.

Julien.

--------------

Branches: main, 10.04

util/mfiltercc.c:
 	Increase the maximum line length handled by this program since
 	the current value is exceeded by the length of some warnings
 	generated at -O5 --intermod-opt.

Index: util/mfiltercc.c
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/util/mfiltercc.c,v
retrieving revision 1.1
diff -u -r1.1 mfiltercc.c
--- util/mfiltercc.c	9 Jul 2010 07:10:16 -0000	1.1
+++ util/mfiltercc.c	11 Jul 2010 13:55:49 -0000
@@ -20,7 +20,7 @@
  #include <string.h>
  #include <stdio.h>

-#define MAX_LINE_LENGTH 1000
+#define MAX_LINE_LENGTH 2000

  static int
  drop_line(const char *line, size_t len);

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list