From 7b666647893b721dcaad733bec11c76429e1dbef Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 24 Apr 2013 10:49:17 +0000 Subject: [PATCH] Limpando fontes - Removendo blocos comentados --- api.h | 6 ------ ft.c | 38 +------------------------------------- ft_cut.c | 7 ------- 3 files changed, 1 insertion(+), 50 deletions(-) diff --git a/api.h b/api.h index 1fb1403..40e6ae6 100644 --- a/api.h +++ b/api.h @@ -199,12 +199,6 @@ // LOCAL_EXTERN int set_device_buffer(struct ea *src, int el); /* File transfer */ - //#define LIB3270_FT_OPTION_RECEIVE 0x0001 - // #define LIB3270_FT_OPTION_ASCII 0x0002 - // #define LIB3270_FT_OPTION_CRLF 0x0004 - // #define LIB3270_FT_OPTION_APPEND 0x0008 - // #define LIB3270_FT_OPTION_TSO 0x0010 - // #define LIB3270_FT_OPTION_REMAP_ASCII 0x0020 #define FT_RECORD_FORMAT_FIXED LIB3270_FT_RECORD_FORMAT_FIXED #define FT_RECORD_FORMAT_VARIABLE LIB3270_FT_RECORD_FORMAT_VARIABLE diff --git a/ft.c b/ft.c index 71dbf42..e53e0d7 100644 --- a/ft.c +++ b/ft.c @@ -40,19 +40,11 @@ #include #endif // HAVE_MALLOC_H -//#include "appres.h" -//#include "actionsc.h" #include "ft_cutc.h" #include "ft_dftc.h" #include "ftc.h" #include "hostc.h" -/* -#if defined(C3270) || defined(WC3270) -#include "icmdc.h" -#endif -*/ #include "kybdc.h" -// #include "objects.h" #include "popupsc.h" #include "screenc.h" #include "tablesc.h" @@ -77,22 +69,6 @@ static void ft_in3270(H3270 *session, int ignored unused, void *unused); #define BN (Boolean *)NULL -// Globals. -// H3270FT *ftsession = NULL; - -// enum ft_state ft_state = FT_NONE; // File transfer state -// char *ft_local_filename; // Local file to transfer to/from -// Boolean ft_last_cr = 0; // CR was last char in local file -// Boolean ascii_flag = True; // Convert to ascii -// Boolean cr_flag = True; // Add crlf to each line -// Boolean remap_flag = True; // Remap ASCII<->EBCDIC -// unsigned long ft_length = 0; // Length of transfer -// static Boolean ft_is_cut; // File transfer is CUT-style - -// static struct timeval starting_time; // Starting time - -// static const struct filetransfer_callbacks *callbacks = NULL; // Callbacks to main application - #define snconcat(x,s,fmt,...) snprintf(x+strlen(x),s-strlen(x),fmt,__VA_ARGS__) 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); { if(!hSession->ft) { - popup_an_error(hSession,"Unexpected call to %s: No active filetransfer",__FUNCTION__); + popup_an_error(hSession,_( "Unexpected call to %s: No active filetransfer" ),__FUNCTION__); } return hSession->ft; } @@ -201,15 +177,6 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); return NULL; } -/* - if(ftsession) - { - *msg = N_( "File transfer is already active" ); - errno = EBUSY; - return NULL; - } -*/ - // Check remote file if(!*remote) { @@ -462,9 +429,6 @@ LIB3270_EXPORT int lib3270_ft_destroy(H3270 *hSession) session->local_file = NULL; } -// if(session == ftsession) -// ftsession = NULL; - hSession->ft = NULL; lib3270_free(session); diff --git a/ft_cut.c b/ft_cut.c index 5809aca..c9baa15 100644 --- a/ft_cut.c +++ b/ft_cut.c @@ -109,14 +109,7 @@ static const struct }; static const char table6[] = "abcdefghijklmnopqrstuvwxyz&-.,:+ABCDEFGHIJKLMNOPQRSTUVWXYZ012345"; -// static int quadrant = -1; -// static unsigned long expanded_length; -// static char *saved_errmsg = CN; - #define XLATE_NBUF LIB3270_XLATE_NBUF -// static int xlate_buffered = 0; /* buffer count */ -// static int xlate_buf_ix = 0; /* buffer index */ -// static unsigned char xlate_buf[XLATE_NBUF]; /* buffer */ static void cut_control_code(H3270 *hSession); static void cut_data_request(H3270 *hSession); -- libgit2 0.21.2