2
hfile=../../../include/Xatom.h
10
hformat = "#define XA_%s ((Atom) %d)\n";
11
printf("#ifndef XATOM_H\n") > hfile;
12
printf("#define XATOM_H 1\n\n") > hfile;
13
printf("/* THIS IS A GENERATED FILE\n") > hfile;
14
printf(" *\n") > hfile;
15
printf(" * Do not change! Changing this file implies a protocol change!\n") > hfile;
16
printf(" */\n\n") > hfile;
18
printf("/* THIS IS A GENERATED FILE\n") > cfile;
19
printf(" *\n") > cfile;
20
printf(" * Do not change! Changing this file implies a protocol change!\n") > cfile;
21
printf(" */\n\n") > cfile;
22
printf("#include \"X.h\"\n") > cfile;
23
printf("#include \"Xatom.h\"\n") > cfile;
24
printf("#include \"misc.h\"\n") > cfile;
25
printf("#include \"dix.h\"\n") > cfile;
26
printf("void MakePredeclaredAtoms()\n") > cfile;
27
printf("{\n") > cfile;
31
NF == 2 && $2 == "@" {
32
printf(hformat, $1, ++atomno) > hfile ;
33
printf(" if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ;
38
printf(hformat, "LAST_PREDEFINED", atomno) > hfile ;
39
printf("#endif /* XATOM_H */\n") > hfile;
40
printf("}\n") > cfile ;