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

about C program CPP macro




Hello, all:

I have a program problem, ( may it not have close releationship with Debian), it described like this:

I want to using #define / #undef, and want to put them in a single macro, some thing like:

#define DECALRE_TYPE(type) \
{ #undef __curr_type;  #define _curr_type type; }

as we know, this can not passed with CPP, but I need this logical here.

Generally, the problem comes from

#define ser_field(type, var) \
    ser_new_field(tra, #type, #var, offsetof(struct_type, var))

I do not want another additional parameter in this macro like

#define ser_field(type,var,struct_type), and I want a sentence declare "current struct type"
and all later work of ser_field will defaultly use this type.

I am not sure whether I can express it clearly, any ideas will be greately appreciated!


Thanks and B.R.


2013/12/10 Zenaan Harkness <zen@freedbms.net>
OK, I removed the no-bitmaps.conf x11 symlink and restarted X.

Now eg
xterm -fn 6x10 -fa ""
works as advertised to give me normal xterm bitmap font.

However, my custom xterm bitmap font, which I access by:
xterm -fa Zen
produces an xterm with my custom font, but a very/extra- large spacing
above each line.

Any custom or bitmap font gurus or xterm font junkies who might know
what is now wrong?

(I guess there could be some font parameter which was previously being
ignored, but is now being honored? dunno myself).

TIA
Zenaan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] CAOsGNSRzcALELeUYAd7BNjPHjd_HscZ5YzkvgtCW5QW-RpYHpA@mail.gmail.com" target="_blank">http://lists.debian.org/[🔎] CAOsGNSRzcALELeUYAd7BNjPHjd_HscZ5YzkvgtCW5QW-RpYHpA@mail.gmail.com



Reply to: