initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / um / util / mk_constants_user.c
blob8f4d7e50be7cad0693ec39c073b76ab9742a51e6
1 #include <stdio.h>
3 void print_head(void)
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");
14 void print_constant_str(char *name, char *value)
16 printf("#define %s \"%s\"\n", name, value);
19 void print_constant_int(char *name, int value)
21 printf("#define %s %d\n", name, value);
24 void print_tail(void)
26 printf("\n");
27 printf("#endif\n");