On Monday, February 17, 2014 02:51:17 Dmitry V. Levin wrote:
> On Sun, Feb 16, 2014 at 02:24:47AM -0500, Mike Frysinger wrote:
> > On Wednesday, February 05, 2014 06:40:05 Dmitry V. Levin wrote:
> [...]
>
> > > I've automatically converted most of xlat structures to this XLAT form.
> >
> > looks great. the ifdef stuff still annoys me. we can't really define
> >
> > fallbacks to random values since any value is possible with these things.
> > what if we created like .xlat.in files ? a script would take care of
> > generating the full contents. see the crazy idea below.
>
> Very nice! What a pity not all constants are macros.
>
> [...]
>
> > +gen_header() {
> > + local input="$1" output="$2" name="$3"
> > + local line
> > + echo "generating ${output}"
> > + (
> >
> > + echo "/* Generated by $0 from $1; do not edit. */"
> > + echo "const struct xlat ${name}[] = {"
>
> static?
i started with that, but not all xlat's are static like addrfams :(. but i
didn't want to try extending the file format too much to support this as then
we'd have this giant ad-hoc mess. any suggestions on any semi-existing
standards/structured file formats to use ?
how do you feel about using python in the build system ? it wouldn't impact
the released tarball, just maintainers.
> > + while read line ; do
> > + case ${line} in
> > + "/"|"#"|"")
>
> You mean
> /*|\#*|'')
> to forward preprocessor directives and comments?
true
-mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
