[d848cbc] | 1 | /* |
---|
| 2 | * |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | #ifndef _TYPMAP_H |
---|
| 6 | #define _TYPMAP_H |
---|
| 7 | char type_conv[MAX_TOK][32]; |
---|
| 8 | |
---|
| 9 | void init_type_conv() |
---|
| 10 | { |
---|
| 11 | strcpy(type_conv[INT_CMD], "int"); |
---|
| 12 | strcpy(type_conv[RING_CMD], "ring"); |
---|
| 13 | strcpy(type_conv[QRING_CMD], "ring"); |
---|
| 14 | strcpy(type_conv[POLY_CMD], "poly"); |
---|
| 15 | strcpy(type_conv[NUMBER_CMD], "number"); |
---|
| 16 | strcpy(type_conv[MODUL_CMD], "ideal"); |
---|
| 17 | strcpy(type_conv[VECTOR_CMD], "ideal"); |
---|
| 18 | strcpy(type_conv[IDEAL_CMD], "ideal"); |
---|
| 19 | strcpy(type_conv[MAP_CMD], "map"); |
---|
| 20 | strcpy(type_conv[MATRIX_CMD], "matrix"); |
---|
| 21 | strcpy(type_conv[STRING_CMD], "char *"); |
---|
| 22 | strcpy(type_conv[INTMAT_CMD], "intvec *"); |
---|
| 23 | strcpy(type_conv[INTVEC_CMD], "intvec *"); |
---|
| 24 | strcpy(type_conv[LIST_CMD], "lists"); |
---|
| 25 | strcpy(type_conv[LINK_CMD], "si_link"); |
---|
| 26 | strcpy(type_conv[PACKAGE_CMD], "package"); |
---|
| 27 | strcpy(type_conv[PROC_CMD], "procinfo *"); |
---|
| 28 | /* |
---|
| 29 | strcpy(type_conv[], ""); |
---|
| 30 | strcpy(type_conv[], ""); |
---|
| 31 | strcpy(type_conv[], ""); |
---|
| 32 | strcpy(type_conv[], ""); |
---|
| 33 | strcpy(type_conv[], ""); |
---|
| 34 | strcpy(type_conv[], ""); |
---|
| 35 | strcpy(type_conv[], ""); |
---|
| 36 | */ |
---|
| 37 | printf("[%d] %s\n", INT_CMD, type_conv[INT_CMD]); |
---|
| 38 | printf("[%d] %s\n", MODUL_CMD, type_conv[MODUL_CMD]); |
---|
| 39 | printf("[%d] %s\n", STRING_CMD, type_conv[STRING_CMD]); |
---|
| 40 | printf("[%d] %s\n", LINK_CMD, type_conv[LINK_CMD]); |
---|
| 41 | printf("[%d] %s\n", PACKAGE_CMD, type_conv[PACKAGE_CMD]); |
---|
| 42 | /**/ |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | #endif /* _TYPMAP_H */ |
---|