This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Feature idea for gcc
- From: Martin Schaffner <maschaffner at gmx dot ch>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 30 Nov 2002 01:10:28 +0100 (MET)
- Subject: Feature idea for gcc
Hi,
I want to create an extension to the c and c++ languages, implemented as a
patch to gcc.
The extension would allow one to write `#use "foo.c"' instead of `#include
"foo.h"'. If the preprocessor would hit such a directive, it would call an
external program which would create an appropriate header file for the source
file `foo.c', and include it. This would free the programmer from the task of
writing a header file for every source file.
Another advantage of the `#use' directive would be direct visibilty of
dependencies to the compiler, which would allow for an additional feature to gcc:
the compiler flag `--recursive'. This flag would tell the compiler to look at
dependencies of the source files it has to compile, and compile those as
well (if necessary). This would free the programmer from writing makefiles for
projects with no configuration needs.
Any feedback is welcome.
--
Martin Schaffner
PS: I already presented these ideas in more detail here:
http://gcc.gnu.org/ml/gcc/2002-11/msg00866.html
Since I didn't get any response, I am now posting a shorter message. I hope
I am posting to the appropriate mailing list.
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!