Commit 7b666647893b721dcaad733bec11c76429e1dbef
1 parent
5fbae1ed
Exists in
master
and in
3 other branches
Limpando fontes - Removendo blocos comentados
Showing
3 changed files
with
1 additions
and
50 deletions
Show diff stats
@@ -199,12 +199,6 @@ | @@ -199,12 +199,6 @@ | ||
199 | // LOCAL_EXTERN int set_device_buffer(struct ea *src, int el); | 199 | // LOCAL_EXTERN int set_device_buffer(struct ea *src, int el); |
200 | 200 | ||
201 | /* File transfer */ | 201 | /* File transfer */ |
202 | - //#define LIB3270_FT_OPTION_RECEIVE 0x0001 | ||
203 | - // #define LIB3270_FT_OPTION_ASCII 0x0002 | ||
204 | - // #define LIB3270_FT_OPTION_CRLF 0x0004 | ||
205 | - // #define LIB3270_FT_OPTION_APPEND 0x0008 | ||
206 | - // #define LIB3270_FT_OPTION_TSO 0x0010 | ||
207 | - // #define LIB3270_FT_OPTION_REMAP_ASCII 0x0020 | ||
208 | 202 | ||
209 | #define FT_RECORD_FORMAT_FIXED LIB3270_FT_RECORD_FORMAT_FIXED | 203 | #define FT_RECORD_FORMAT_FIXED LIB3270_FT_RECORD_FORMAT_FIXED |
210 | #define FT_RECORD_FORMAT_VARIABLE LIB3270_FT_RECORD_FORMAT_VARIABLE | 204 | #define FT_RECORD_FORMAT_VARIABLE LIB3270_FT_RECORD_FORMAT_VARIABLE |
@@ -40,19 +40,11 @@ | @@ -40,19 +40,11 @@ | ||
40 | #include <malloc.h> | 40 | #include <malloc.h> |
41 | #endif // HAVE_MALLOC_H | 41 | #endif // HAVE_MALLOC_H |
42 | 42 | ||
43 | -//#include "appres.h" | ||
44 | -//#include "actionsc.h" | ||
45 | #include "ft_cutc.h" | 43 | #include "ft_cutc.h" |
46 | #include "ft_dftc.h" | 44 | #include "ft_dftc.h" |
47 | #include "ftc.h" | 45 | #include "ftc.h" |
48 | #include "hostc.h" | 46 | #include "hostc.h" |
49 | -/* | ||
50 | -#if defined(C3270) || defined(WC3270) | ||
51 | -#include "icmdc.h" | ||
52 | -#endif | ||
53 | -*/ | ||
54 | #include "kybdc.h" | 47 | #include "kybdc.h" |
55 | -// #include "objects.h" | ||
56 | #include "popupsc.h" | 48 | #include "popupsc.h" |
57 | #include "screenc.h" | 49 | #include "screenc.h" |
58 | #include "tablesc.h" | 50 | #include "tablesc.h" |
@@ -77,22 +69,6 @@ static void ft_in3270(H3270 *session, int ignored unused, void *unused); | @@ -77,22 +69,6 @@ static void ft_in3270(H3270 *session, int ignored unused, void *unused); | ||
77 | 69 | ||
78 | #define BN (Boolean *)NULL | 70 | #define BN (Boolean *)NULL |
79 | 71 | ||
80 | -// Globals. | ||
81 | -// H3270FT *ftsession = NULL; | ||
82 | - | ||
83 | -// enum ft_state ft_state = FT_NONE; // File transfer state | ||
84 | -// char *ft_local_filename; // Local file to transfer to/from | ||
85 | -// Boolean ft_last_cr = 0; // CR was last char in local file | ||
86 | -// Boolean ascii_flag = True; // Convert to ascii | ||
87 | -// Boolean cr_flag = True; // Add crlf to each line | ||
88 | -// Boolean remap_flag = True; // Remap ASCII<->EBCDIC | ||
89 | -// unsigned long ft_length = 0; // Length of transfer | ||
90 | -// static Boolean ft_is_cut; // File transfer is CUT-style | ||
91 | - | ||
92 | -// static struct timeval starting_time; // Starting time | ||
93 | - | ||
94 | -// static const struct filetransfer_callbacks *callbacks = NULL; // Callbacks to main application | ||
95 | - | ||
96 | #define snconcat(x,s,fmt,...) snprintf(x+strlen(x),s-strlen(x),fmt,__VA_ARGS__) | 72 | #define snconcat(x,s,fmt,...) snprintf(x+strlen(x),s-strlen(x),fmt,__VA_ARGS__) |
97 | 73 | ||
98 | static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | 74 | static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); |
@@ -104,7 +80,7 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -104,7 +80,7 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
104 | { | 80 | { |
105 | if(!hSession->ft) | 81 | if(!hSession->ft) |
106 | { | 82 | { |
107 | - popup_an_error(hSession,"Unexpected call to %s: No active filetransfer",__FUNCTION__); | 83 | + popup_an_error(hSession,_( "Unexpected call to %s: No active filetransfer" ),__FUNCTION__); |
108 | } | 84 | } |
109 | return hSession->ft; | 85 | return hSession->ft; |
110 | } | 86 | } |
@@ -201,15 +177,6 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -201,15 +177,6 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
201 | return NULL; | 177 | return NULL; |
202 | } | 178 | } |
203 | 179 | ||
204 | -/* | ||
205 | - if(ftsession) | ||
206 | - { | ||
207 | - *msg = N_( "File transfer is already active" ); | ||
208 | - errno = EBUSY; | ||
209 | - return NULL; | ||
210 | - } | ||
211 | -*/ | ||
212 | - | ||
213 | // Check remote file | 180 | // Check remote file |
214 | if(!*remote) | 181 | if(!*remote) |
215 | { | 182 | { |
@@ -462,9 +429,6 @@ LIB3270_EXPORT int lib3270_ft_destroy(H3270 *hSession) | @@ -462,9 +429,6 @@ LIB3270_EXPORT int lib3270_ft_destroy(H3270 *hSession) | ||
462 | session->local_file = NULL; | 429 | session->local_file = NULL; |
463 | } | 430 | } |
464 | 431 | ||
465 | -// if(session == ftsession) | ||
466 | -// ftsession = NULL; | ||
467 | - | ||
468 | hSession->ft = NULL; | 432 | hSession->ft = NULL; |
469 | 433 | ||
470 | lib3270_free(session); | 434 | lib3270_free(session); |
ft_cut.c
@@ -109,14 +109,7 @@ static const struct | @@ -109,14 +109,7 @@ static const struct | ||
109 | }; | 109 | }; |
110 | static const char table6[] = "abcdefghijklmnopqrstuvwxyz&-.,:+ABCDEFGHIJKLMNOPQRSTUVWXYZ012345"; | 110 | static const char table6[] = "abcdefghijklmnopqrstuvwxyz&-.,:+ABCDEFGHIJKLMNOPQRSTUVWXYZ012345"; |
111 | 111 | ||
112 | -// static int quadrant = -1; | ||
113 | -// static unsigned long expanded_length; | ||
114 | -// static char *saved_errmsg = CN; | ||
115 | - | ||
116 | #define XLATE_NBUF LIB3270_XLATE_NBUF | 112 | #define XLATE_NBUF LIB3270_XLATE_NBUF |
117 | -// static int xlate_buffered = 0; /* buffer count */ | ||
118 | -// static int xlate_buf_ix = 0; /* buffer index */ | ||
119 | -// static unsigned char xlate_buf[XLATE_NBUF]; /* buffer */ | ||
120 | 113 | ||
121 | static void cut_control_code(H3270 *hSession); | 114 | static void cut_control_code(H3270 *hSession); |
122 | static void cut_data_request(H3270 *hSession); | 115 | static void cut_data_request(H3270 *hSession); |