GNU bug report logs -
#12215
CSET is unnecessarily confusing
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Fri, 17 Aug 2012 00:14:01 UTC
Severity: normal
Tags: patch
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> Yes, I didn't like it much when I first thought about it, but I'm
> beginning to think it's the least bad option (the next one is to use
> another preprocessor than cpp ;-).
Maybe we could use macros that are a no-op under CPP, and serve only as
guides for a non-CPP code transformation tool. That is to say, instead
of the horrible
bset_directory (b, current_buffer ? BVAR (current_buffer, directory) : Qnil);
we could have the slightly less horrible
BVAR (b->directory) = current_buffer ? BVAR (current_buffer->directory) : Qnil;
with BVAR a no-op under CPP:
#define BVAR(x) x
The GC branch wouldn't be able to use CPP to convert this to the desired
form, but I think there would be enough information for a non-CPP tool
or a script to automatically transform all snippets of the form
BVAR (x->y) = z
to
set_buffer_y (x, z)
This bug report was last modified 12 years and 329 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.