]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/um/util/mk_constants_user.c
Linux-2.6.12-rc2
[mirror_ubuntu-artful-kernel.git] / arch / um / util / mk_constants_user.c
1 #include <stdio.h>
2
3 void print_head(void)
4 {
5 printf("/*\n");
6 printf(" * Generated by mk_constants\n");
7 printf(" */\n");
8 printf("\n");
9 printf("#ifndef __UM_CONSTANTS_H\n");
10 printf("#define __UM_CONSTANTS_H\n");
11 printf("\n");
12 }
13
14 void print_constant_str(char *name, char *value)
15 {
16 printf("#define %s \"%s\"\n", name, value);
17 }
18
19 void print_constant_int(char *name, int value)
20 {
21 printf("#define %s %d\n", name, value);
22 }
23
24 void print_tail(void)
25 {
26 printf("\n");
27 printf("#endif\n");
28 }