1.1 --- a/generator.py Fri Feb 10 19:31:06 2017 +0100
1.2 +++ b/generator.py Sat Feb 11 15:34:30 2017 +0100
1.3 @@ -683,7 +683,7 @@
1.4 print >>f_decls, """\
1.5 typedef struct {
1.6 const __table * table;
1.7 - unsigned int pos;
1.8 + __pos pos;
1.9 __attr attrs[%s];
1.10 } %s;
1.11 """ % (structure_size, encode_symbol("obj", path))
1.12 @@ -1084,7 +1084,7 @@
1.13 style = "sequence"
1.14
1.15 print >>f_code, """\
1.16 -__attr %s(__attr __args[], unsigned int number)
1.17 +__attr %s(__attr __args[], __pos number)
1.18 {
1.19 /* Allocate the structure. */
1.20 __args[0] = __new(&%s, &%s, sizeof(%s));
1.21 @@ -1103,7 +1103,7 @@
1.22 encode_literal_data_initialiser(style)
1.23 )
1.24
1.25 - print >>f_signatures, "__attr %s(__attr[], unsigned int);" % encode_literal_instantiator(path)
1.26 + print >>f_signatures, "__attr %s(__attr[], __pos);" % encode_literal_instantiator(path)
1.27
1.28 def write_main_program(self, f_code, f_signatures):
1.29