Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Mark Kettenis'" <mark.kettenis@xs4all.nl>
Cc: <gdb-patches@sourceware.org>, <eliz@gnu.org>
Subject: RE: [RFC] Question about CODESET macro inside config/djgpp/langinfo.h
Date: Mon, 21 Mar 2011 17:25:00 -0000	[thread overview]
Message-ID: <000301cbe7e4$c66d4240$5347c6c0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <201103211612.p2LGCbYU010335@glazunov.sibelius.xs4all.nl>

  OK, then it is probably better to fix the 
gdb_ari.sh script.

  Looking at the corresponding ARI rule,
I think that the pattern to match FILENAME is wrong:


@@ -983,7 +1011,7 @@ Call to set_gdbarch_" name
 # Count the number of times each tm/xm/nm macro is defined or undefined
 /^#[[:space:]]*(undef|define)[[:space:]]+[[:alnum:]_]+.*$/ \
 &&
!/^#[[:space:]]*(undef|define)[[:space:]]+[[:alnum:]_]+_H($|[[:space:]])/ \
-&& FILENAME ~ /(^|\/)(config\/|tm-|xm-|nm-).*\.h$/ {
+&& FILENAME ~ /(^|\/)config\/(|[^\/]*\/)(tm-|xm-|nm-).*\.h$/ {
     basename = gensub(/(^|.*\/)([^\/]*)$/, "\\2", 1, FILENAME)
     type = gensub(/^(tm|xm|nm)-.*\.h$/, "\\1", 1, basename)
     name =
gensub(/^#[[:space:]]*(undef|define)[[:space:]]+([[:alnum:]_]+).*$/,
 "\\2", 1, $0)

This patch removes config/djgpp/langinfo.h from 
from the list of matches.

Should I apply that change to gdb_ari.sh
so that we can forget about CODESET macro once for all?

Pierre

> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Mark Kettenis
> Envoyé : lundi 21 mars 2011 17:13
> À : pierre.muller@ics-cnrs.unistra.fr
> Cc : gdb-patches@sourceware.org; eliz@gnu.org
> Objet : Re: [RFC] Question about CODESET macro inside
> config/djgpp/langinfo.h
> 
> > From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> > Cc: "'Eli Zaretskii'" <eliz@gnu.org>
> >
> >   Also about macros removal inside config subdirectory:
> >
> >   I was wondering about the usefulness of CODESET macro definition
> > inside
> > config/djgpp/langinfo.h
> >
> > #define CODESET CODESET
> >
> > while CODESET is itself a member of an enumeration.
> 
> It means that you can check for the macro using #ifdef.  I think that
> is required by POSIX.


  reply	other threads:[~2011-03-21 16:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 16:27 Pierre Muller
2011-03-21 16:53 ` Mark Kettenis
2011-03-21 17:25   ` Pierre Muller [this message]
2011-03-21 20:10   ` Eli Zaretskii

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='000301cbe7e4$c66d4240$5347c6c0$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox