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?

> +     while read line ; do
> +             case ${line} in
> +             "/"|"#"|"")

You mean
        /*|\#*|'')
to forward preprocessor directives and comments?


-- 
ldv

Attachment: pgpenIJIeE334.pgp
Description: PGP signature

------------------------------------------------------------------------------
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

Reply via email to