Commit aba7601f25ad0f56fc7730bb38d0f0ab974abe13
1 parent
3d52cd0c
Exists in
master
and in
5 other branches
Removendo modulos sem uso
Showing
4 changed files
with
27 additions
and
16 deletions
Show diff stats
src/gtk/v3270/oia.c
| @@ -478,12 +478,14 @@ void v3270_draw_oia(cairo_t *cr, H3270 *host, int row, int cols, struct v3270_me | @@ -478,12 +478,14 @@ void v3270_draw_oia(cairo_t *cr, H3270 *host, int row, int cols, struct v3270_me | ||
| 478 | { V3270_OIA_TIMER, setup_timer_position }, | 478 | { V3270_OIA_TIMER, setup_timer_position }, |
| 479 | { V3270_OIA_SPINNER, setup_spinner_position }, | 479 | { V3270_OIA_SPINNER, setup_spinner_position }, |
| 480 | { V3270_OIA_LUNAME, setup_luname_position }, | 480 | { V3270_OIA_LUNAME, setup_luname_position }, |
| 481 | +#ifdef X3270_PRINTER | ||
| 481 | { V3270_OIA_PRINTER, setup_single_char_right }, | 482 | { V3270_OIA_PRINTER, setup_single_char_right }, |
| 483 | +#endif // X3270_PRINTER | ||
| 482 | { V3270_OIA_SCRIPT, setup_single_char_right }, | 484 | { V3270_OIA_SCRIPT, setup_single_char_right }, |
| 483 | { V3270_OIA_INSERT, setup_insert_position }, | 485 | { V3270_OIA_INSERT, setup_insert_position }, |
| 484 | { V3270_OIA_TYPEAHEAD, setup_single_char_right }, | 486 | { V3270_OIA_TYPEAHEAD, setup_single_char_right }, |
| 485 | { V3270_OIA_SHIFT, setup_double_char_position }, | 487 | { V3270_OIA_SHIFT, setup_double_char_position }, |
| 486 | - { V3270_OIA_CAPS, setup_single_char_right }, | 488 | +// { V3270_OIA_CAPS, setup_single_char_right }, |
| 487 | { V3270_OIA_ALT, setup_single_char_right }, | 489 | { V3270_OIA_ALT, setup_single_char_right }, |
| 488 | { V3270_OIA_SSL, setup_double_char_position }, | 490 | { V3270_OIA_SSL, setup_double_char_position }, |
| 489 | }; | 491 | }; |
| @@ -1011,7 +1013,7 @@ void v3270_update_oia(H3270 *session, LIB3270_FLAG id, unsigned char on) | @@ -1011,7 +1013,7 @@ void v3270_update_oia(H3270 *session, LIB3270_FLAG id, unsigned char on) | ||
| 1011 | update_text_field(terminal,on,V3270_OIA_TYPEAHEAD,"T"); | 1013 | update_text_field(terminal,on,V3270_OIA_TYPEAHEAD,"T"); |
| 1012 | break; | 1014 | break; |
| 1013 | 1015 | ||
| 1014 | -#ifdef LIB3270_FLAG_PRINTER | 1016 | +#if defined(LIB3270_FLAG_PRINTER) && defined(X3270_PRINTER) |
| 1015 | case LIB3270_FLAG_PRINTER: | 1017 | case LIB3270_FLAG_PRINTER: |
| 1016 | update_text_field(terminal,on,V3270_OIA_PRINTER,"P"); | 1018 | update_text_field(terminal,on,V3270_OIA_PRINTER,"P"); |
| 1017 | break; | 1019 | break; |
src/gtk/v3270/v3270.h
| @@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
| 31 | 31 | ||
| 32 | #ifndef V3270_H_INCLUDED | 32 | #ifndef V3270_H_INCLUDED |
| 33 | 33 | ||
| 34 | + #include <lib3270/config.h> | ||
| 34 | #include <lib3270.h> | 35 | #include <lib3270.h> |
| 35 | 36 | ||
| 36 | #define V3270_H_INCLUDED 1 | 37 | #define V3270_H_INCLUDED 1 |
| @@ -101,17 +102,21 @@ | @@ -101,17 +102,21 @@ | ||
| 101 | V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ | 102 | V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ |
| 102 | /**< Compose indication ("C" or blank) */ | 103 | /**< Compose indication ("C" or blank) */ |
| 103 | /**< Compose first character */ | 104 | /**< Compose first character */ |
| 104 | - V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | ||
| 105 | V3270_OIA_SHIFT, /**< Shift Status */ | 105 | V3270_OIA_SHIFT, /**< Shift Status */ |
| 106 | V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ | 106 | V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ |
| 107 | V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ | 107 | V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ |
| 108 | V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ | 108 | V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ |
| 109 | - V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | ||
| 110 | V3270_OIA_LUNAME, /**< LU Name */ | 109 | V3270_OIA_LUNAME, /**< LU Name */ |
| 111 | V3270_OIA_SPINNER, /**< command timing spinner */ | 110 | V3270_OIA_SPINNER, /**< command timing spinner */ |
| 112 | V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ | 111 | V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ |
| 113 | V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ | 112 | V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ |
| 114 | 113 | ||
| 114 | +// V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | ||
| 115 | + | ||
| 116 | +#ifdef X3270_PRINTER | ||
| 117 | + V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | ||
| 118 | +#endif // X3270_PRINTER | ||
| 119 | + | ||
| 115 | V3270_OIA_FIELD_COUNT | 120 | V3270_OIA_FIELD_COUNT |
| 116 | 121 | ||
| 117 | } V3270_OIA_FIELD; | 122 | } V3270_OIA_FIELD; |
src/include/lib3270/config.h.in
| @@ -26,7 +26,6 @@ | @@ -26,7 +26,6 @@ | ||
| 26 | * erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | 26 | * erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) |
| 27 | * licinio@bb.com.br (Licínio Luis Branco) | 27 | * licinio@bb.com.br (Licínio Luis Branco) |
| 28 | * kraucer@bb.com.br (Kraucer Fernandes Mazuco) | 28 | * kraucer@bb.com.br (Kraucer Fernandes Mazuco) |
| 29 | - * macmiranda@bb.com.br (Marco Aurélio Caldas Miranda) | ||
| 30 | * | 29 | * |
| 31 | */ | 30 | */ |
| 32 | 31 | ||
| @@ -52,9 +51,8 @@ | @@ -52,9 +51,8 @@ | ||
| 52 | #define X3270_ANSI | 51 | #define X3270_ANSI |
| 53 | #define X3270_APL | 52 | #define X3270_APL |
| 54 | #define X3270_FT | 53 | #define X3270_FT |
| 55 | - #define X3270_PRINTER | 54 | + /* #define X3270_PRINTER */ |
| 56 | 55 | ||
| 57 | - #undef HAVE_ALTSCREEN | ||
| 58 | #undef HAVE_IGEMAC | 56 | #undef HAVE_IGEMAC |
| 59 | #undef HAVE_MACUI | 57 | #undef HAVE_MACUI |
| 60 | #undef HAVE_MALLOC_H | 58 | #undef HAVE_MALLOC_H |
src/lib3270/printer.c
| @@ -39,13 +39,18 @@ | @@ -39,13 +39,18 @@ | ||
| 39 | #include "globals.h" | 39 | #include "globals.h" |
| 40 | 40 | ||
| 41 | #if (defined(C3270) || defined(X3270_DISPLAY)) && defined(X3270_PRINTER) /*[*/ | 41 | #if (defined(C3270) || defined(X3270_DISPLAY)) && defined(X3270_PRINTER) /*[*/ |
| 42 | -#if defined(X3270_DISPLAY) /*[*/ | 42 | + |
| 43 | +/* | ||
| 44 | +#if defined(X3270_DISPLAY) | ||
| 43 | #include <X11/StringDefs.h> | 45 | #include <X11/StringDefs.h> |
| 44 | #include <X11/Xaw/Dialog.h> | 46 | #include <X11/Xaw/Dialog.h> |
| 45 | -#endif /*]*/ | ||
| 46 | -#if defined(_WIN32) /*[*/ | ||
| 47 | -#include "windows.h" | ||
| 48 | -#endif /*]*/ | 47 | +#endif |
| 48 | +*/ | ||
| 49 | + | ||
| 50 | +#if defined(_WIN32) | ||
| 51 | + #include "windows.h" | ||
| 52 | +#endif | ||
| 53 | + | ||
| 49 | #include <errno.h> | 54 | #include <errno.h> |
| 50 | #include <signal.h> | 55 | #include <signal.h> |
| 51 | #include <stdarg.h> | 56 | #include <stdarg.h> |
| @@ -54,7 +59,6 @@ | @@ -54,7 +59,6 @@ | ||
| 54 | #include "appres.h" | 59 | #include "appres.h" |
| 55 | #include "objects.h" | 60 | #include "objects.h" |
| 56 | #include "resources.h" | 61 | #include "resources.h" |
| 57 | -// #include "ctlr.h" | ||
| 58 | 62 | ||
| 59 | #include "charsetc.h" | 63 | #include "charsetc.h" |
| 60 | #include "ctlrc.h" | 64 | #include "ctlrc.h" |
| @@ -63,9 +67,11 @@ | @@ -63,9 +67,11 @@ | ||
| 63 | #include "printerc.h" | 67 | #include "printerc.h" |
| 64 | #include "printc.h" | 68 | #include "printc.h" |
| 65 | #include "savec.h" | 69 | #include "savec.h" |
| 66 | -#if defined(C3270) /*[*/ | ||
| 67 | -#include "screenc.h" | ||
| 68 | -#endif /*]*/ | 70 | + |
| 71 | +#if defined(C3270) | ||
| 72 | + #include "screenc.h" | ||
| 73 | +#endif | ||
| 74 | + | ||
| 69 | #include "tablesc.h" | 75 | #include "tablesc.h" |
| 70 | #include "telnetc.h" | 76 | #include "telnetc.h" |
| 71 | #include "trace_dsc.h" | 77 | #include "trace_dsc.h" |