Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 1996 08:55:56 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Cc:        Christian.Gusenbauer@utimaco.co.at (DI. Christian Gusenbauer)
Subject:   Re: cdrom boot?
Message-ID:  <199611220755.IAA26667@uriah.heep.sax.de>
In-Reply-To: <329550A9.1B0@utimaco.co.at> from "DI. Christian Gusenbauer" at "Nov 22, 96 08:05:13 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As DI. Christian Gusenbauer wrote:

> I played a little bit with bcc yesterday and found out, that the
> version I have only supports K&R standard. Is this right?

Yes, it is.

> Is there any converter available which converts ANSI-C to K&R?

unprotoize.  It's part of the gcc distribution.

j@uriah 276% cat > foo.c
#include <stdio.h>

int
main(int argc, char **argv)
{
        printf("Hello world!\n");
        return 0;
}
^D
j@uriah 277% unprotoize foo.c 
unprotoize: compiling `foo.c'
unprotoize: converting file `foo.c'
j@uriah 278% cat foo.c
#include <stdio.h>

int
main(argc, argv)
     int argc;
     char **argv;
{
        printf("Hello world!\n");
        return 0;
}

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611220755.IAA26667>