From: Oleh Krehel <ohwoeowho@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acm@muc.de, emacs-devel@gnu.org
Subject: Re: CC Mode and GCC/CEDET integration for evaluating macros
Date: Fri, 01 May 2015 20:52:46 +0200 [thread overview]
Message-ID: <87zj5ogmf5.fsf@gmail.com> (raw)
In-Reply-To: <83lhh8qgp6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 01 May 2015 21:46:13 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Oleh Krehel <ohwoeowho@gmail.com>
>> Date: Fri, 01 May 2015 20:23:32 +0200
>> Cc: emacs-devel@gnu.org
>>
>> I tried c-macro-expand and it works well for macros defined within the
>> current file, and even for the standard stuff like __TIMESTAMP__. But
>> it doesn't work, for instance for HAVE_PWD_H in editfns.c. Do you know
>> if it could work? Is it just a matter of passing some include path to
>> the preprocessor call?
>
> You need to pass it the same -I flags as used during the Emacs build,
> see src/Makefile.
Thanks for the suggestion. I tried it and it didn't work. I've edited
src/Makefile.in to add:
echo_cflags:
echo "$(ALL_CFLAGS)"
Here are the flags that I obtained and passed to `c-macro-expand':
-Demacs -I. -I. -I../lib -I../lib -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/inclu
de/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/inc
lude/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/
harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/freet
ype2 -pthread -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.
0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/pixm
an-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/dbus-1.
0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-l
inux-gnu/glib-2.0/include -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-li
nux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/i
nclude/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include
/freetype2 -I/usr/include/freetype2
Is there a working / better way to get these flags. I wouldn't want to
reconfigure just to get the flags.
Oleh
next prev parent reply other threads:[~2015-05-01 18:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-01 17:03 CC Mode and GCC/CEDET integration for evaluating macros Oleh Krehel
2015-05-01 18:11 ` Alan Mackenzie
2015-05-01 18:23 ` Oleh Krehel
2015-05-01 18:46 ` Eli Zaretskii
2015-05-01 18:52 ` Oleh Krehel [this message]
2015-05-01 19:30 ` Eli Zaretskii
2015-05-01 19:42 ` Oleh Krehel
2015-05-02 8:27 ` Eli Zaretskii
2015-05-02 9:07 ` Eli Zaretskii
2015-05-02 8:57 ` martin rudalics
2015-05-02 12:00 ` Oleh Krehel
2015-05-03 16:45 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zj5ogmf5.fsf@gmail.com \
--to=ohwoeowho@gmail.com \
--cc=acm@muc.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.