emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for fields of `struct buffer'


From: Tom Tromey
Subject: Re: Patch for fields of `struct buffer'
Date: Fri, 11 Feb 2011 14:48:59 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:

Stefan> Note that this auto-generation of globals.h might trigger some related
Stefan> neurons and bring up related desires.  E.g. auto-generate the `defsubr'
Stefan> calls and all the intern_c_string+staticpro for Q<foo> vars ;-)

I looked at the defsubr thing a bit.

It could be done either with a new program or with some modifications to
make-docfile.  It is a little different than the globals.h problem since
there are DEFUNs that are protected by #if.

My implementation idea is to track #if/#else/#endif, and then for a
source file foo.c, emit a `foo.inc' that has a single function that
contains calls to defsubr, with each defsubr bracketed by the same #if
logic as the DEFUN.

I don't know how to easily solve the Makefile part of this problem.
Overuse of GNU make has probably corrupted me.  In particular, each .o
must depend on just the corresponding .inc.  I didn't see how to do that
without a bunch of `foo.o: foo.inc' lines.

GCC has required GNU make for a number of years now.  It really
simplifies things and it is widely available.

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]