Re: [scc-dev] next cpp issue

From: Roberto E. Vargas Caballero <>
Date: Wed, 15 Mar 2023 23:57:52 +0100


On Mon, Mar 06, 2023 at 08:32:54AM -0500, Tim Kelly wrote:
> While the commit bcab2ba2573784415a25688bc1b4c116f4b8cbc5 fixed the
> multiline issue, it did not fix all of the issues related to ANSI style
> prototype declarations:
> % ./libexec/scc/cc1 -D _MINIX -E ee.c
> #line 2 "ee.h"
> #line 4
> ee.h:5: error: #endif expected
> typedef void ee.h:5: error: #endif expected

I tried it and I didn't get the error:

        $ bin/scc -D _MINIX ee.c
        ee.c:3: error: main shall be defined with a return type of int
        ee.c:3: error: please contact __20h__ on (#bitreich-en) via IRC

The error is because the standard specifies the allowed prototypes for main,
and 'void main(void)' is not a valid definition of main.

Anyway, I think maybe we should remove the reference to __20h__ in this error

message. What do you think guys?

To unsubscribe send a mail to
Received on Wed 15 Mar 2023 - 23:57:52 CET

This archive was generated by hypermail 2.3.0 : Fri 21 Apr 2023 - 16:20:41 CEST