Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

gen.c File Reference

#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <menu.h>
#include <form.h>

Go to the source code of this file.

Classes

struct  name_attribute_pair

Defines

#define RES_NAME   "Reserved"
#define GEN_EVENT(name, value)
#define GEN_MEVENT(name)
#define KEY_MAX   0777
#define KEY_MIN   0401
#define HAVE_USE_DEFAULT_COLORS   1
#define GEN_OFFSET(member, itype)

Functions

static int find_pos (char *s, unsigned len, int *low, int *high)
static void gen_reps (const name_attribute_pair *nap, const char *name, int len, int bias)
static void chtype_rep (const char *name, attr_t mask)
static void gen_chtype_rep (const char *name)
static void mrep_rep (const char *name, void *rec)
static void gen_mrep_rep (const char *name)
static void gen_attr_set (const char *name)
static void gen_trace (const char *name)
static void gen_menu_opt_rep (const char *name)
static void gen_item_opt_rep (const char *name)
static void gen_form_opt_rep (const char *name)
static void gen_field_opt_rep (const char *name)
static void keydef (const char *name, const char *old_name, int value, int mode)
static void gen_keydefs (int mode)
static void acs_def (const char *name, chtype *a)
static void gen_acs (void)
static void gen_mouse_events (void)
static void prologue (const char *name)
static void basedefs (void)
static void menu_basedefs (void)
static void form_basedefs (void)
static void mouse_basedefs (void)
static void color_def (const char *name, int value)
static void gen_color (void)
static void gen_linkopts (void)
static void gen_menu_linkopts (void)
static void gen_form_linkopts (void)
static void gen_panel_linkopts (void)
static void gen_version_info (void)
static int eti_gen (char *buf, int code, const char *name, int *etimin, int *etimax)
static void gen_offsets (void)
int main (int argc, char *argv[])

Variables

static const char * model = ""
static int little_endian = 0


Define Documentation

#define GEN_EVENT name,
value   ) 
 

Value:

printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", \
          #name, value)

Definition at line 872 of file gen.c.

Referenced by gen_mouse_events().

#define GEN_MEVENT name   ) 
 

Value:

printf("   %-25s : constant Event_Mask := 8#%011lo#;\n", \
          #name, name)

Definition at line 876 of file gen.c.

Referenced by gen_mouse_events().

#define GEN_OFFSET member,
itype   ) 
 

Value:

if (sizeof(((WINDOW*)0)->member)==sizeof(itype)) {                \
    o = offsetof(WINDOW, member);                                   \
    if ((o%sizeof(itype) == 0)) {                                   \
       printf("   Offset%-*s : constant Natural := %2ld; --  %s\n", \
              12, #member, (long)(o/sizeof(itype)),#itype);         \
    }                                                               \
  }

Definition at line 1181 of file gen.c.

Referenced by gen_offsets().

#define HAVE_USE_DEFAULT_COLORS   1
 

Definition at line 1082 of file gen.c.

#define KEY_MAX   0777
 

Referenced by _nc_init_keytry(), basedefs(), main(), and menu_driver().

#define KEY_MIN   0401
 

Referenced by _nc_wgetch(), basedefs(), gen_keydefs(), inputTest(), kgetch(), main(), wgetch_test(), wgetn_wstr(), wgetnstr_events(), and wGetstring().

#define RES_NAME   "Reserved"
 

Definition at line 53 of file gen.c.

Referenced by gen_reps().


Function Documentation

static void acs_def const char *  name,
chtype a
[static]
 

Definition at line 757 of file gen.c.

Referenced by gen_acs().

00758 {
00759   int c = a - &acs_map[0];
00760 
00761   printf("   %-24s : constant Character := ", name);
00762   if (isprint(c) && (c != '`'))
00763     printf("'%c';\n", c);
00764   else
00765     printf("Character'Val (%d);\n", c);
00766 }

static void basedefs void   )  [static]
 

Definition at line 1028 of file gen.c.

References KEY_MAX, KEY_MIN, and prologue().

Referenced by main().

01029 {
01030   prologue("curses");
01031 #ifndef KEY_MAX
01032 #  define KEY_MAX 0777
01033 #endif
01034   printf("define(`M4_KEY_MAX',`8#%o#')", KEY_MAX);
01035 #ifndef KEY_MIN
01036 #  define KEY_MIN 0401
01037 #endif
01038   if (KEY_MIN == 256)
01039     {
01040       fprintf(stderr, "Unexpected value for KEY_MIN: %d\n", KEY_MIN);
01041       exit(1);
01042     }
01043   printf("define(`M4_SPECIAL_FIRST',`8#%o#')", KEY_MIN - 1);
01044 }

static void chtype_rep const char *  name,
attr_t  mask
[static]
 

Definition at line 161 of file gen.c.

References attr_t, find_pos(), and x.

Referenced by gen_chtype_rep().

00162 {
00163   attr_t x = -1;
00164   attr_t t = x & mask;
00165   int low, high;
00166   int l = find_pos((char *)&t, sizeof(t), &low, &high);
00167 
00168   if (l >= 0)
00169     printf("         %-5s at 0 range %2d .. %2d;\n", name, low, high);
00170 }

static void color_def const char *  name,
int  value
[static]
 

Definition at line 1077 of file gen.c.

Referenced by gen_color().

01078 {
01079   printf("   %-16s : constant Color_Number := %d;\n", name, value);
01080 }

static int eti_gen char *  buf,
int  code,
const char *  name,
int etimin,
int etimax
[static]
 

Definition at line 1171 of file gen.c.

Referenced by main().

01172 {
01173   sprintf(buf, "   E_%-16s : constant Eti_Error := %d;\n", name, code);
01174   if (code < *etimin)
01175     *etimin = code;
01176   if (code > *etimax)
01177     *etimax = code;
01178   return strlen(buf);
01179 }

static int find_pos char *  s,
unsigned  len,
int low,
int high
[static]
 

Definition at line 66 of file gen.c.

References little_endian.

Referenced by chtype_rep(), gen_reps(), and mrep_rep().

00067 {
00068   unsigned int i, j;
00069   int l = 0;
00070 
00071   *high = -1;
00072   *low = 8 * len;
00073 
00074   for (i = 0; i < len; i++, s++)
00075     {
00076       if (*s)
00077         {
00078           for (j = 0; j < 8 * sizeof(char); j++)
00079 
00080             {
00081               if (((little_endian && ((*s) & 0x01)) ||
00082                    (!little_endian && ((*s) & 0x80))))
00083                 {
00084                   if (l > *high)
00085                     *high = l;
00086                   if (l < *low)
00087                     *low = l;
00088                 }
00089               l++;
00090               if (little_endian)
00091                 *s >>= 1;
00092               else
00093                 *s <<= 1;
00094             }
00095         }
00096       else
00097         l += 8;
00098     }
00099   return (*high >= 0 && (*low <= *high)) ? *low : -1;
00100 }

static void form_basedefs void   )  [static]
 

Definition at line 1059 of file gen.c.

References prologue().

Referenced by main().

01060 {
01061   prologue("form");
01062 }

static void gen_acs void   )  [static]
 

Definition at line 772 of file gen.c.

References acs_def(), ACS_GEQUAL, ACS_LEQUAL, ACS_NEQUAL, ACS_PI, ACS_S3, ACS_S7, and ACS_STERLING.

Referenced by main().

00773 {
00774 #ifdef ACS_ULCORNER
00775   acs_def("ACS_Upper_Left_Corner", &ACS_ULCORNER);
00776 #endif
00777 #ifdef ACS_LLCORNER
00778   acs_def("ACS_Lower_Left_Corner", &ACS_LLCORNER);
00779 #endif
00780 #ifdef ACS_URCORNER
00781   acs_def("ACS_Upper_Right_Corner", &ACS_URCORNER);
00782 #endif
00783 #ifdef ACS_LRCORNER
00784   acs_def("ACS_Lower_Right_Corner", &ACS_LRCORNER);
00785 #endif
00786 #ifdef ACS_LTEE
00787   acs_def("ACS_Left_Tee", &ACS_LTEE);
00788 #endif
00789 #ifdef ACS_RTEE
00790   acs_def("ACS_Right_Tee", &ACS_RTEE);
00791 #endif
00792 #ifdef ACS_BTEE
00793   acs_def("ACS_Bottom_Tee", &ACS_BTEE);
00794 #endif
00795 #ifdef ACS_TTEE
00796   acs_def("ACS_Top_Tee", &ACS_TTEE);
00797 #endif
00798 #ifdef ACS_HLINE
00799   acs_def("ACS_Horizontal_Line", &ACS_HLINE);
00800 #endif
00801 #ifdef ACS_VLINE
00802   acs_def("ACS_Vertical_Line", &ACS_VLINE);
00803 #endif
00804 #ifdef ACS_PLUS
00805   acs_def("ACS_Plus_Symbol", &ACS_PLUS);
00806 #endif
00807 #ifdef ACS_S1
00808   acs_def("ACS_Scan_Line_1", &ACS_S1);
00809 #endif
00810 #ifdef ACS_S9
00811   acs_def("ACS_Scan_Line_9", &ACS_S9);
00812 #endif
00813 #ifdef ACS_DIAMOND
00814   acs_def("ACS_Diamond", &ACS_DIAMOND);
00815 #endif
00816 #ifdef ACS_CKBOARD
00817   acs_def("ACS_Checker_Board", &ACS_CKBOARD);
00818 #endif
00819 #ifdef ACS_DEGREE
00820   acs_def("ACS_Degree", &ACS_DEGREE);
00821 #endif
00822 #ifdef ACS_PLMINUS
00823   acs_def("ACS_Plus_Minus", &ACS_PLMINUS);
00824 #endif
00825 #ifdef ACS_BULLET
00826   acs_def("ACS_Bullet", &ACS_BULLET);
00827 #endif
00828 #ifdef ACS_LARROW
00829   acs_def("ACS_Left_Arrow", &ACS_LARROW);
00830 #endif
00831 #ifdef ACS_RARROW
00832   acs_def("ACS_Right_Arrow", &ACS_RARROW);
00833 #endif
00834 #ifdef ACS_DARROW
00835   acs_def("ACS_Down_Arrow", &ACS_DARROW);
00836 #endif
00837 #ifdef ACS_UARROW
00838   acs_def("ACS_Up_Arrow", &ACS_UARROW);
00839 #endif
00840 #ifdef ACS_BOARD
00841   acs_def("ACS_Board_Of_Squares", &ACS_BOARD);
00842 #endif
00843 #ifdef ACS_LANTERN
00844   acs_def("ACS_Lantern", &ACS_LANTERN);
00845 #endif
00846 #ifdef ACS_BLOCK
00847   acs_def("ACS_Solid_Block", &ACS_BLOCK);
00848 #endif
00849 #ifdef ACS_S3
00850   acs_def("ACS_Scan_Line_3", &ACS_S3);
00851 #endif
00852 #ifdef ACS_S7
00853   acs_def("ACS_Scan_Line_7", &ACS_S7);
00854 #endif
00855 #ifdef ACS_LEQUAL
00856   acs_def("ACS_Less_Or_Equal", &ACS_LEQUAL);
00857 #endif
00858 #ifdef ACS_GEQUAL
00859   acs_def("ACS_Greater_Or_Equal", &ACS_GEQUAL);
00860 #endif
00861 #ifdef ACS_PI
00862   acs_def("ACS_PI", &ACS_PI);
00863 #endif
00864 #ifdef ACS_NEQUAL
00865   acs_def("ACS_Not_Equal", &ACS_NEQUAL);
00866 #endif
00867 #ifdef ACS_STERLING
00868   acs_def("ACS_Sterling", &ACS_STERLING);
00869 #endif
00870 }

static void gen_attr_set const char *  name  )  [static]
 

Definition at line 229 of file gen.c.

References attr, chtype, gen_reps(), little_endian, and set().

Referenced by main().

00230 {
00231   /* All of the A_xxx symbols are defined in ncurses, but not all are nonzero
00232    * if "configure --enable-widec" is specified.
00233    */
00234   static const name_attribute_pair nap[] =
00235   {
00236 #if A_STANDOUT
00237     {"Stand_Out", A_STANDOUT},
00238 #endif
00239 #if A_UNDERLINE
00240     {"Under_Line", A_UNDERLINE},
00241 #endif
00242 #if A_REVERSE
00243     {"Reverse_Video", A_REVERSE},
00244 #endif
00245 #if A_BLINK
00246     {"Blink", A_BLINK},
00247 #endif
00248 #if A_DIM
00249     {"Dim_Character", A_DIM},
00250 #endif
00251 #if A_BOLD
00252     {"Bold_Character", A_BOLD},
00253 #endif
00254 #if A_ALTCHARSET
00255     {"Alternate_Character_Set", A_ALTCHARSET},
00256 #endif
00257 #if A_INVIS
00258     {"Invisible_Character", A_INVIS},
00259 #endif
00260 #if A_PROTECT
00261     {"Protected_Character", A_PROTECT},
00262 #endif
00263 #if A_HORIZONTAL
00264     {"Horizontal", A_HORIZONTAL},
00265 #endif
00266 #if A_LEFT
00267     {"Left", A_LEFT},
00268 #endif
00269 #if A_LOW
00270     {"Low", A_LOW},
00271 #endif
00272 #if A_RIGHT
00273     {"Right", A_RIGHT},
00274 #endif
00275 #if A_TOP
00276     {"Top", A_TOP},
00277 #endif
00278 #if A_VERTICAL
00279     {"Vertical", A_VERTICAL},
00280 #endif
00281     {(char *)0, 0}
00282   };
00283   chtype attr = A_ATTRIBUTES & ~A_COLOR;
00284   int start = -1;
00285   int len = 0;
00286   int i, set;
00287   for (i = 0; i < (int)(8 * sizeof(chtype)); i++)
00288 
00289     {
00290       set = attr & 1;
00291       if (set)
00292         {
00293           if (start < 0)
00294             start = i;
00295           if (start >= 0)
00296             {
00297               len++;
00298             }
00299         }
00300       attr = attr >> 1;
00301     }
00302   gen_reps(nap, name, (len + 7) / 8, little_endian ? start : 0);
00303 }

static void gen_chtype_rep const char *  name  )  [static]
 

Definition at line 173 of file gen.c.

References chtype, and chtype_rep().

Referenced by main().

00174 {
00175   printf("   for %s use\n      record\n", name);
00176   chtype_rep("Ch", A_CHARTEXT);
00177   chtype_rep("Color", A_COLOR);
00178   chtype_rep("Attr", (A_ATTRIBUTES & ~A_COLOR));
00179   printf("      end record;\n   for %s'Size use %ld;\n",
00180          name, (long)(8 * sizeof(chtype)));
00181 
00182   printf("      --  Please note: this rep. clause is generated and may be\n");
00183   printf("      --               different on your system.\n");
00184 }

static void gen_color void   )  [static]
 

Definition at line 1088 of file gen.c.

References COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, color_def(), COLOR_GREEN, COLOR_MAGENTA, COLOR_RED, COLOR_WHITE, and COLOR_YELLOW.

Referenced by main().

01089 {
01090 #ifdef HAVE_USE_DEFAULT_COLORS
01091   color_def("Default_Color", -1);
01092 #endif
01093 #ifdef COLOR_BLACK
01094   color_def("Black", COLOR_BLACK);
01095 #endif
01096 #ifdef COLOR_RED
01097   color_def("Red", COLOR_RED);
01098 #endif
01099 #ifdef COLOR_GREEN
01100   color_def("Green", COLOR_GREEN);
01101 #endif
01102 #ifdef COLOR_YELLOW
01103   color_def("Yellow", COLOR_YELLOW);
01104 #endif
01105 #ifdef COLOR_BLUE
01106   color_def("Blue", COLOR_BLUE);
01107 #endif
01108 #ifdef COLOR_MAGENTA
01109   color_def("Magenta", COLOR_MAGENTA);
01110 #endif
01111 #ifdef COLOR_CYAN
01112   color_def("Cyan", COLOR_CYAN);
01113 #endif
01114 #ifdef COLOR_WHITE
01115   color_def("White", COLOR_WHITE);
01116 #endif
01117 }

static void gen_field_opt_rep const char *  name  )  [static]
 

Definition at line 388 of file gen.c.

References gen_reps(), O_ACTIVE, O_AUTOSKIP, O_BLANK, O_EDIT, O_NULLOK, O_PASSOK, O_PUBLIC, O_STATIC, O_VISIBLE, and O_WRAP.

Referenced by main().

00389 {
00390   static const name_attribute_pair nap[] =
00391   {
00392 #ifdef O_VISIBLE
00393     {"Visible", O_VISIBLE},
00394 #endif
00395 #ifdef O_ACTIVE
00396     {"Active", O_ACTIVE},
00397 #endif
00398 #ifdef O_PUBLIC
00399     {"Public", O_PUBLIC},
00400 #endif
00401 #ifdef O_EDIT
00402     {"Edit", O_EDIT},
00403 #endif
00404 #ifdef O_WRAP
00405     {"Wrap", O_WRAP},
00406 #endif
00407 #ifdef O_BLANK
00408     {"Blank", O_BLANK},
00409 #endif
00410 #ifdef O_AUTOSKIP
00411     {"Auto_Skip", O_AUTOSKIP},
00412 #endif
00413 #ifdef O_NULLOK
00414     {"Null_Ok", O_NULLOK},
00415 #endif
00416 #ifdef O_PASSOK
00417     {"Pass_Ok", O_PASSOK},
00418 #endif
00419 #ifdef O_STATIC
00420     {"Static", O_STATIC},
00421 #endif
00422     {(char *)0, 0}
00423   };
00424   gen_reps(nap, name, sizeof(int), 0);
00425 }

static void gen_form_linkopts void   )  [static]
 

Definition at line 1141 of file gen.c.

References model.

Referenced by main().

01142 {
01143   printf("   pragma Linker_Options (\"-lform%s\");\n", model);
01144 }

static void gen_form_opt_rep const char *  name  )  [static]
 

Definition at line 369 of file gen.c.

References gen_reps(), O_BS_OVERLOAD, and O_NL_OVERLOAD.

Referenced by main().

00370 {
00371   static const name_attribute_pair nap[] =
00372   {
00373 #ifdef O_NL_OVERLOAD
00374     {"NL_Overload", O_NL_OVERLOAD},
00375 #endif
00376 #ifdef O_BS_OVERLOAD
00377     {"BS_Overload", O_BS_OVERLOAD},
00378 #endif
00379     {(char *)0, 0}
00380   };
00381   gen_reps(nap, name, sizeof(int), 0);
00382 }

static void gen_item_opt_rep const char *  name  )  [static]
 

Definition at line 356 of file gen.c.

References gen_reps(), and O_SELECTABLE.

Referenced by main().

00357 {
00358   static const name_attribute_pair nap[] =
00359   {
00360 #ifdef O_SELECTABLE
00361     {"Selectable", O_SELECTABLE},
00362 #endif
00363     {(char *)0, 0}
00364   };
00365   gen_reps(nap, name, sizeof(int), 0);
00366 }

static void gen_keydefs int  mode  )  [static]
 

Definition at line 456 of file gen.c.

References buf, KEY_MIN, and keydef().

Referenced by main().

00457 {
00458   char buf[16];
00459   char obuf[16];
00460   int i;
00461 
00462 #ifdef KEY_CODE_YES
00463   keydef("Key_Code_Yes", "KEY_CODE_YES", KEY_CODE_YES, mode);
00464 #endif
00465 #ifdef KEY_MIN
00466   keydef("Key_Min", "KEY_MIN", KEY_MIN, mode);
00467 #endif
00468 #ifdef KEY_BREAK
00469   keydef("Key_Break", "KEY_BREAK", KEY_BREAK, mode);
00470 #endif
00471 #ifdef KEY_DOWN
00472   keydef("Key_Cursor_Down", "KEY_DOWN", KEY_DOWN, mode);
00473 #endif
00474 #ifdef KEY_UP
00475   keydef("Key_Cursor_Up", "KEY_UP", KEY_UP, mode);
00476 #endif
00477 #ifdef KEY_LEFT
00478   keydef("Key_Cursor_Left", "KEY_LEFT", KEY_LEFT, mode);
00479 #endif
00480 #ifdef KEY_RIGHT
00481   keydef("Key_Cursor_Right", "KEY_RIGHT", KEY_RIGHT, mode);
00482 #endif
00483 #ifdef KEY_HOME
00484   keydef("Key_Home", "KEY_HOME", KEY_HOME, mode);
00485 #endif
00486 #ifdef KEY_BACKSPACE
00487   keydef("Key_Backspace", "KEY_BACKSPACE", KEY_BACKSPACE, mode);
00488 #endif
00489 #ifdef KEY_F0
00490   keydef("Key_F0", "KEY_F0", KEY_F0, mode);
00491 #endif
00492 #ifdef KEY_F
00493   for (i = 1; i <= 24; i++)
00494     {
00495       sprintf(buf, "Key_F%d", i);
00496       sprintf(obuf, "KEY_F%d", i);
00497       keydef(buf, obuf, KEY_F(i), mode);
00498     }
00499 #endif
00500 #ifdef KEY_DL
00501   keydef("Key_Delete_Line", "KEY_DL", KEY_DL, mode);
00502 #endif
00503 #ifdef KEY_IL
00504   keydef("Key_Insert_Line", "KEY_IL", KEY_IL, mode);
00505 #endif
00506 #ifdef KEY_DC
00507   keydef("Key_Delete_Char", "KEY_DC", KEY_DC, mode);
00508 #endif
00509 #ifdef KEY_IC
00510   keydef("Key_Insert_Char", "KEY_IC", KEY_IC, mode);
00511 #endif
00512 #ifdef KEY_EIC
00513   keydef("Key_Exit_Insert_Mode", "KEY_EIC", KEY_EIC, mode);
00514 #endif
00515 #ifdef KEY_CLEAR
00516   keydef("Key_Clear_Screen", "KEY_CLEAR", KEY_CLEAR, mode);
00517 #endif
00518 #ifdef KEY_EOS
00519   keydef("Key_Clear_End_Of_Screen", "KEY_EOS", KEY_EOS, mode);
00520 #endif
00521 #ifdef KEY_EOL
00522   keydef("Key_Clear_End_Of_Line", "KEY_EOL", KEY_EOL, mode);
00523 #endif
00524 #ifdef KEY_SF
00525   keydef("Key_Scroll_1_Forward", "KEY_SF", KEY_SF, mode);
00526 #endif
00527 #ifdef KEY_SR
00528   keydef("Key_Scroll_1_Backward", "KEY_SR", KEY_SR, mode);
00529 #endif
00530 #ifdef KEY_NPAGE
00531   keydef("Key_Next_Page", "KEY_NPAGE", KEY_NPAGE, mode);
00532 #endif
00533 #ifdef KEY_PPAGE
00534   keydef("Key_Previous_Page", "KEY_PPAGE", KEY_PPAGE, mode);
00535 #endif
00536 #ifdef KEY_STAB
00537   keydef("Key_Set_Tab", "KEY_STAB", KEY_STAB, mode);
00538 #endif
00539 #ifdef KEY_CTAB
00540   keydef("Key_Clear_Tab", "KEY_CTAB", KEY_CTAB, mode);
00541 #endif
00542 #ifdef KEY_CATAB
00543   keydef("Key_Clear_All_Tabs", "KEY_CATAB", KEY_CATAB, mode);
00544 #endif
00545 #ifdef KEY_ENTER
00546   keydef("Key_Enter_Or_Send", "KEY_ENTER", KEY_ENTER, mode);
00547 #endif
00548 #ifdef KEY_SRESET
00549   keydef("Key_Soft_Reset", "KEY_SRESET", KEY_SRESET, mode);
00550 #endif
00551 #ifdef KEY_RESET
00552   keydef("Key_Reset", "KEY_RESET", KEY_RESET, mode);
00553 #endif
00554 #ifdef KEY_PRINT
00555   keydef("Key_Print", "KEY_PRINT", KEY_PRINT, mode);
00556 #endif
00557 #ifdef KEY_LL
00558   keydef("Key_Bottom", "KEY_LL", KEY_LL, mode);
00559 #endif
00560 #ifdef KEY_A1
00561   keydef("Key_Upper_Left_Of_Keypad", "KEY_A1", KEY_A1, mode);
00562 #endif
00563 #ifdef KEY_A3
00564   keydef("Key_Upper_Right_Of_Keypad", "KEY_A3", KEY_A3, mode);
00565 #endif
00566 #ifdef KEY_B2
00567   keydef("Key_Center_Of_Keypad", "KEY_B2", KEY_B2, mode);
00568 #endif
00569 #ifdef KEY_C1
00570   keydef("Key_Lower_Left_Of_Keypad", "KEY_C1", KEY_C1, mode);
00571 #endif
00572 #ifdef KEY_C3
00573   keydef("Key_Lower_Right_Of_Keypad", "KEY_C3", KEY_C3, mode);
00574 #endif
00575 #ifdef KEY_BTAB
00576   keydef("Key_Back_Tab", "KEY_BTAB", KEY_BTAB, mode);
00577 #endif
00578 #ifdef KEY_BEG
00579   keydef("Key_Beginning", "KEY_BEG", KEY_BEG, mode);
00580 #endif
00581 #ifdef KEY_CANCEL
00582   keydef("Key_Cancel", "KEY_CANCEL", KEY_CANCEL, mode);
00583 #endif
00584 #ifdef KEY_CLOSE
00585   keydef("Key_Close", "KEY_CLOSE", KEY_CLOSE, mode);
00586 #endif
00587 #ifdef KEY_COMMAND
00588   keydef("Key_Command", "KEY_COMMAND", KEY_COMMAND, mode);
00589 #endif
00590 #ifdef KEY_COPY
00591   keydef("Key_Copy", "KEY_COPY", KEY_COPY, mode);
00592 #endif
00593 #ifdef KEY_CREATE
00594   keydef("Key_Create", "KEY_CREATE", KEY_CREATE, mode);
00595 #endif
00596 #ifdef KEY_END
00597   keydef("Key_End", "KEY_END", KEY_END, mode);
00598 #endif
00599 #ifdef KEY_EXIT
00600   keydef("Key_Exit", "KEY_EXIT", KEY_EXIT, mode);
00601 #endif
00602 #ifdef KEY_FIND
00603   keydef("Key_Find", "KEY_FIND", KEY_FIND, mode);
00604 #endif
00605 #ifdef KEY_HELP
00606   keydef("Key_Help", "KEY_HELP", KEY_HELP, mode);
00607 #endif
00608 #ifdef KEY_MARK
00609   keydef("Key_Mark", "KEY_MARK", KEY_MARK, mode);
00610 #endif
00611 #ifdef KEY_MESSAGE
00612   keydef("Key_Message", "KEY_MESSAGE", KEY_MESSAGE, mode);
00613 #endif
00614 #ifdef KEY_MOVE
00615   keydef("Key_Move", "KEY_MOVE", KEY_MOVE, mode);
00616 #endif
00617 #ifdef KEY_NEXT
00618   keydef("Key_Next", "KEY_NEXT", KEY_NEXT, mode);
00619 #endif
00620 #ifdef KEY_OPEN
00621   keydef("Key_Open", "KEY_OPEN", KEY_OPEN, mode);
00622 #endif
00623 #ifdef KEY_OPTIONS
00624   keydef("Key_Options", "KEY_OPTIONS", KEY_OPTIONS, mode);
00625 #endif
00626 #ifdef KEY_PREVIOUS
00627   keydef("Key_Previous", "KEY_PREVIOUS", KEY_PREVIOUS, mode);
00628 #endif
00629 #ifdef KEY_REDO
00630   keydef("Key_Redo", "KEY_REDO", KEY_REDO, mode);
00631 #endif
00632 #ifdef KEY_REFERENCE
00633   keydef("Key_Reference", "KEY_REFERENCE", KEY_REFERENCE, mode);
00634 #endif
00635 #ifdef KEY_REFRESH
00636   keydef("Key_Refresh", "KEY_REFRESH", KEY_REFRESH, mode);
00637 #endif
00638 #ifdef KEY_REPLACE
00639   keydef("Key_Replace", "KEY_REPLACE", KEY_REPLACE, mode);
00640 #endif
00641 #ifdef KEY_RESTART
00642   keydef("Key_Restart", "KEY_RESTART", KEY_RESTART, mode);
00643 #endif
00644 #ifdef KEY_RESUME
00645   keydef("Key_Resume", "KEY_RESUME", KEY_RESUME, mode);
00646 #endif
00647 #ifdef KEY_SAVE
00648   keydef("Key_Save", "KEY_SAVE", KEY_SAVE, mode);
00649 #endif
00650 #ifdef KEY_SBEG
00651   keydef("Key_Shift_Begin", "KEY_SBEG", KEY_SBEG, mode);
00652 #endif
00653 #ifdef KEY_SCANCEL
00654   keydef("Key_Shift_Cancel", "KEY_SCANCEL", KEY_SCANCEL, mode);
00655 #endif
00656 #ifdef KEY_SCOMMAND
00657   keydef("Key_Shift_Command", "KEY_SCOMMAND", KEY_SCOMMAND, mode);
00658 #endif
00659 #ifdef KEY_SCOPY
00660   keydef("Key_Shift_Copy", "KEY_SCOPY", KEY_SCOPY, mode);
00661 #endif
00662 #ifdef KEY_SCREATE
00663   keydef("Key_Shift_Create", "KEY_SCREATE", KEY_SCREATE, mode);
00664 #endif
00665 #ifdef KEY_SDC
00666   keydef("Key_Shift_Delete_Char", "KEY_SDC", KEY_SDC, mode);
00667 #endif
00668 #ifdef KEY_SDL
00669   keydef("Key_Shift_Delete_Line", "KEY_SDL", KEY_SDL, mode);
00670 #endif
00671 #ifdef KEY_SELECT
00672   keydef("Key_Select", "KEY_SELECT", KEY_SELECT, mode);
00673 #endif
00674 #ifdef KEY_SEND
00675   keydef("Key_Shift_End", "KEY_SEND", KEY_SEND, mode);
00676 #endif
00677 #ifdef KEY_SEOL
00678   keydef("Key_Shift_Clear_End_Of_Line", "KEY_SEOL", KEY_SEOL, mode);
00679 #endif
00680 #ifdef KEY_SEXIT
00681   keydef("Key_Shift_Exit", "KEY_SEXIT", KEY_SEXIT, mode);
00682 #endif
00683 #ifdef KEY_SFIND
00684   keydef("Key_Shift_Find", "KEY_SFIND", KEY_SFIND, mode);
00685 #endif
00686 #ifdef KEY_SHELP
00687   keydef("Key_Shift_Help", "KEY_SHELP", KEY_SHELP, mode);
00688 #endif
00689 #ifdef KEY_SHOME
00690   keydef("Key_Shift_Home", "KEY_SHOME", KEY_SHOME, mode);
00691 #endif
00692 #ifdef KEY_SIC
00693   keydef("Key_Shift_Insert_Char", "KEY_SIC", KEY_SIC, mode);
00694 #endif
00695 #ifdef KEY_SLEFT
00696   keydef("Key_Shift_Cursor_Left", "KEY_SLEFT", KEY_SLEFT, mode);
00697 #endif
00698 #ifdef KEY_SMESSAGE
00699   keydef("Key_Shift_Message", "KEY_SMESSAGE", KEY_SMESSAGE, mode);
00700 #endif
00701 #ifdef KEY_SMOVE
00702   keydef("Key_Shift_Move", "KEY_SMOVE", KEY_SMOVE, mode);
00703 #endif
00704 #ifdef KEY_SNEXT
00705   keydef("Key_Shift_Next_Page", "KEY_SNEXT", KEY_SNEXT, mode);
00706 #endif
00707 #ifdef KEY_SOPTIONS
00708   keydef("Key_Shift_Options", "KEY_SOPTIONS", KEY_SOPTIONS, mode);
00709 #endif
00710 #ifdef KEY_SPREVIOUS
00711   keydef("Key_Shift_Previous_Page", "KEY_SPREVIOUS", KEY_SPREVIOUS, mode);
00712 #endif
00713 #ifdef KEY_SPRINT
00714   keydef("Key_Shift_Print", "KEY_SPRINT", KEY_SPRINT, mode);
00715 #endif
00716 #ifdef KEY_SREDO
00717   keydef("Key_Shift_Redo", "KEY_SREDO", KEY_SREDO, mode);
00718 #endif
00719 #ifdef KEY_SREPLACE
00720   keydef("Key_Shift_Replace", "KEY_SREPLACE", KEY_SREPLACE, mode);
00721 #endif
00722 #ifdef KEY_SRIGHT
00723   keydef("Key_Shift_Cursor_Right", "KEY_SRIGHT", KEY_SRIGHT, mode);
00724 #endif
00725 #ifdef KEY_SRSUME
00726   keydef("Key_Shift_Resume", "KEY_SRSUME", KEY_SRSUME, mode);
00727 #endif
00728 #ifdef KEY_SSAVE
00729   keydef("Key_Shift_Save", "KEY_SSAVE", KEY_SSAVE, mode);
00730 #endif
00731 #ifdef KEY_SSUSPEND
00732   keydef("Key_Shift_Suspend", "KEY_SSUSPEND", KEY_SSUSPEND, mode);
00733 #endif
00734 #ifdef KEY_SUNDO
00735   keydef("Key_Shift_Undo", "KEY_SUNDO", KEY_SUNDO, mode);
00736 #endif
00737 #ifdef KEY_SUSPEND
00738   keydef("Key_Suspend", "KEY_SUSPEND", KEY_SUSPEND, mode);
00739 #endif
00740 #ifdef KEY_UNDO
00741   keydef("Key_Undo", "KEY_UNDO", KEY_UNDO, mode);
00742 #endif
00743 #ifdef KEY_MOUSE
00744   keydef("Key_Mouse", "KEY_MOUSE", KEY_MOUSE, mode);
00745 #endif
00746 #ifdef KEY_RESIZE
00747   keydef("Key_Resize", "KEY_RESIZE", KEY_RESIZE, mode);
00748 #endif
00749 }

static void gen_linkopts void   )  [static]
 

Definition at line 1123 of file gen.c.

References model.

Referenced by main().

01124 {
01125   printf("   pragma Linker_Options (\"-lncurses%s\");\n", model);
01126 }

static void gen_menu_linkopts void   )  [static]
 

Definition at line 1132 of file gen.c.

References