Commit 6673a6f7db37b4f84c76f2d88318bddebd898061

Authored by perry.werneck@gmail.com
1 parent 5181d832

Limpando fontes - Removendo blocos comentados

src/lib3270/api.h
... ... @@ -199,12 +199,6 @@
199 199 // LOCAL_EXTERN int set_device_buffer(struct ea *src, int el);
200 200  
201 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 203 #define FT_RECORD_FORMAT_FIXED LIB3270_FT_RECORD_FORMAT_FIXED
210 204 #define FT_RECORD_FORMAT_VARIABLE LIB3270_FT_RECORD_FORMAT_VARIABLE
... ...
src/lib3270/ft.c
... ... @@ -40,19 +40,11 @@
40 40 #include <malloc.h>
41 41 #endif // HAVE_MALLOC_H
42 42  
43   -//#include "appres.h"
44   -//#include "actionsc.h"
45 43 #include "ft_cutc.h"
46 44 #include "ft_dftc.h"
47 45 #include "ftc.h"
48 46 #include "hostc.h"
49   -/*
50   -#if defined(C3270) || defined(WC3270)
51   -#include "icmdc.h"
52   -#endif
53   -*/
54 47 #include "kybdc.h"
55   -// #include "objects.h"
56 48 #include "popupsc.h"
57 49 #include "screenc.h"
58 50 #include "tablesc.h"
... ... @@ -77,22 +69,6 @@ static void ft_in3270(H3270 *session, int ignored unused, void *unused);
77 69  
78 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 72 #define snconcat(x,s,fmt,...) snprintf(x+strlen(x),s-strlen(x),fmt,__VA_ARGS__)
97 73  
98 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 80 {
105 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 85 return hSession->ft;
110 86 }
... ... @@ -201,15 +177,6 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state);
201 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 180 // Check remote file
214 181 if(!*remote)
215 182 {
... ... @@ -462,9 +429,6 @@ LIB3270_EXPORT int lib3270_ft_destroy(H3270 *hSession)
462 429 session->local_file = NULL;
463 430 }
464 431  
465   -// if(session == ftsession)
466   -// ftsession = NULL;
467   -
468 432 hSession->ft = NULL;
469 433  
470 434 lib3270_free(session);
... ...
src/lib3270/ft_cut.c
... ... @@ -109,14 +109,7 @@ static const struct
109 109 };
110 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 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 114 static void cut_control_code(H3270 *hSession);
122 115 static void cut_data_request(H3270 *hSession);
... ...
src/pw3270/filetransfer.c
... ... @@ -255,7 +255,6 @@ static void add_transfer_options(GObject *action, struct ftdialog *dlg)
255 255 {
256 256 static const struct ftoption option[] =
257 257 { { LIB3270_FT_OPTION_ASCII, "text", N_( "_Text file" ) },
258   -// { LIB3270_FT_OPTION_TSO, "tso", N_( "Host is T_SO" ) },
259 258 { LIB3270_FT_OPTION_CRLF, "cr", N_( "Add/Remove _CR at end of line" ) },
260 259 { LIB3270_FT_OPTION_APPEND, "append", N_( "_Append" ) },
261 260 { LIB3270_FT_OPTION_REMAP_ASCII, "remap", N_( "_Remap ASCII Characters" ) }
... ... @@ -263,7 +262,6 @@ static void add_transfer_options(GObject *action, struct ftdialog *dlg)
263 262  
264 263 GtkTable * table = GTK_TABLE(gtk_table_new(3,2,TRUE));
265 264 GtkWidget * frame = gtk_frame_new( _( "Transfer options" ) );
266   -// GtkWidget * label = gtk_frame_get_label_widget(GTK_FRAME(frame));
267 265 int row, col, f;
268 266  
269 267 row=0;
... ...