ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] cpp.req -- зависимости *.h файлов (телеграфом)
Date: Tue, 4 Mar 2008 00:42:47 +0300
Message-ID: <20080303214247.GC32305@solemn.turbinal> (raw)
In-Reply-To: <20080303162248.GC5098@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 2246 bytes --]

On Mon, Mar 03, 2008 at 06:22:48PM +0200, Kirill A. Shutemov wrote:
> On [Mon, 03.03.2008 18:26], Alexey Tourbin wrote:
> > Я также обнаружил, что 'сpp -M' и 'cpp -MM' плохо подохдят для задачи
> > вычисления зависимостей хедеров.
> 
> Почему?

Обе разворачивают рекурсивно, при этом вторая исключает "системные
хедеры".  Ни одна ни даёт того, что нужно.

$ cpp -M /usr/include/rpm/rpmlib.h
rpmlib.o: /usr/include/rpm/rpmlib.h /usr/include/rpm/rpmio.h \
  /usr/include/sys/types.h /usr/include/features.h \
  /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
  /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h \
  /usr/include/bits/types.h \
  /usr/lib/gcc/i586-alt-linux/4.1.2/include/stddef.h \
  /usr/include/bits/typesizes.h /usr/include/time.h /usr/include/endian.h \
  /usr/include/bits/endian.h /usr/include/sys/select.h \
  /usr/include/bits/select.h /usr/include/bits/sigset.h \
  /usr/include/bits/time.h /usr/include/sys/sysmacros.h \
  /usr/include/bits/pthreadtypes.h /usr/include/sys/stat.h \
  /usr/include/bits/stat.h /usr/include/dirent.h \
  /usr/include/bits/dirent.h /usr/include/bits/posix1_lim.h \
  /usr/include/bits/local_lim.h /usr/include/linux/limits.h \
  /usr/include/glob.h /usr/include/stdio.h /usr/include/libio.h \
  /usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
  /usr/include/gconv.h /usr/lib/gcc/i586-alt-linux/4.1.2/include/stdarg.h \
  /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
  /usr/include/stdlib.h /usr/include/alloca.h /usr/include/unistd.h \
  /usr/include/bits/posix_opt.h /usr/include/bits/confname.h \
  /usr/include/getopt.h /usr/include/rpm/rpmmessages.h \
  /usr/include/rpm/rpmlog.h /usr/include/rpm/rpmerr.h \
  /usr/include/rpm/header.h /usr/include/rpm/hdrinline.h \
  /usr/include/popt.h
$ cpp -MM /usr/include/rpm/rpmlib.h
rpmlib.o: /usr/include/rpm/rpmlib.h /usr/include/rpm/rpmio.h \
  /usr/include/rpm/rpmmessages.h /usr/include/rpm/rpmlog.h \
  /usr/include/rpm/rpmerr.h /usr/include/rpm/header.h \
  /usr/include/rpm/hdrinline.h
$ grep -w include /usr/include/rpm/rpmlib.h
#include "rpmio.h"
#include "rpmmessages.h"
#include "rpmerr.h"
#include "header.h"
#include "popt.h"
$ 

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-03-03 21:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03 15:26 Alexey Tourbin
2008-03-03 16:22 ` Kirill A. Shutemov
2008-03-03 21:42   ` Alexey Tourbin [this message]
2008-03-17 21:21 ` Alexey Tourbin

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=20080303214247.GC32305@solemn.turbinal \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git