GNU bug report logs -
#17157
[PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP"
Previous Next
Reported by: Paolo Bonzini <bonzini <at> gnu.org>
Date: Tue, 1 Apr 2014 09:19:03 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
Hi Paul & Paolo,
Paolo Bonzini <bonzini <at> gnu.org> wrote:
> Il 01/04/2014 16:43, Paul Eggert ha scritto:
> > Paolo Bonzini wrote:
> >> setlocale, static_assert etc. should be in a dfacompat.h file
> >
> > We already have a file that serves this function, called mbsupport.h. We
> > could rename it to dfaconfig.h (a better name than dfacompat.h, as it's
> > basically a separate config.h for dfa.c).
>
> Good idea.
>
> Paolo
Not really such a good idea. mbsupport.h is used in multiple places
in gawk to define if MBS support is availble. It needs to stay
that way. Since we're discussing keeping dfa simple in both its
environments, then it needs to be in a header that only dfa uses.
At the moment, the best candidate is xalloc.h, which differs somewhat
grep vs. gawk.
But here too, in reality that file is mainly for allocation stuff
and dfa portability doesn't really belong there.
I respectfully suggest dfaconfig.h (or dfacustom.h) with
#ifdef GAWK
#ifndef HAVE_SETLOCALE
#define selocale(x, y) NULL
#endif
#define static_assert(cond) ...
#endif
as the initial contents.
Much thanks,
Arnold
This bug report was last modified 11 years and 76 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.