1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
# img.sed - used by "Makefile.am" to create "buggy.h"
# Copyright 1999 Jochen Voss
# $Id: img.sed,v 1.3 1999/06/25 23:14:04 voss Rel $
# initialisation
1 {
i\
/* buggy.h - the image data for "buggy.c"\
* Automatically created from file "car.img".\
* DO NOT EDIT !!! */\
\
static char *image[][2] = {
x
s/^.*$/ /
x
}
# closing brackets for the images
1, /^[A-Z0-9]*:/ b ishead
/^[A-Z0-9]*:/ i\
},
: ishead
# headers
/^[A-Z0-9]*:/ {
s/\([A-Z0-9]*\):/car_\1, /
H
x
s/\n//
x
i\
{
}
# images
/^|.*|/ s/|\(.*\)|/ "\1",/p
# end
$ {
i\
},\
};\
\
enum car_state {
x
p
i\
};
}
|