Commit df8c5caa70b41705b8b05269af52f54f8446deb1

Authored by perry.werneck@gmail.com
1 parent 448d5efe

Limpando globais obsoletas

Showing 4 changed files with 7 additions and 47 deletions   Show diff stats
glue.c
... ... @@ -150,6 +150,11 @@ static void nop_char(H3270 *session, unsigned char chr)
150 150  
151 151 }
152 152  
  153 +static void nop(H3270 *session)
  154 +{
  155 +
  156 +}
  157 +
153 158 static void lib3270_session_init(H3270 *hSession, const char *model)
154 159 {
155 160 int ovc, ovr;
... ... @@ -162,7 +167,7 @@ static void lib3270_session_init(H3270 *hSession, const char *model)
162 167 // A few dummy calls to avoid "ifs"
163 168 hSession->update = update_char;
164 169 hSession->set_selection = nop_char;
165   -
  170 + hSession->ctlr_done = nop;
166 171  
167 172 hSession->sock = -1;
168 173 hSession->model_num = -1;
... ...
kybd.c
... ... @@ -1567,12 +1567,6 @@ do_reset(Boolean explicit)
1567 1567 status_reset(NULL);
1568 1568 mcursor_normal(&h3270);
1569 1569  
1570   -// composing = NONE;
1571   -// status_compose(False, 0, KT_STD);
1572   -
1573   - lib3270_event_counter[COUNTER_ID_RESET]++;
1574   - Trace("Reset counter updated to %d",lib3270_event_counter[COUNTER_ID_RESET]);
1575   -
1576 1570 }
1577 1571  
1578 1572 LIB3270_CLEAR_SELECTION_ACTION( reset )
... ...
screen.c
... ... @@ -84,8 +84,6 @@ static int (*popup_handler)(H3270 *, LIB3270_NOTIFY, const char *, const char *,
84 84 // static SCRIPT_STATE script_state = SCRIPT_STATE_NONE;
85 85  
86 86  
87   -int lib3270_event_counter[COUNTER_ID_USER] = { 0, 0 };
88   -
89 87 enum ts { TS_AUTO, TS_ON, TS_OFF };
90 88  
91 89 static void screen_update(H3270 *session, int bstart, int bend);
... ... @@ -445,8 +443,8 @@ void set_status(H3270 *session, LIB3270_FLAG id, Boolean on)
445 443 void status_ctlr_done(H3270 *session)
446 444 {
447 445 CHECK_SESSION_HANDLE(session);
448   - lib3270_event_counter[COUNTER_ID_CTLR_DONE]++;
449 446 set_status(session,OIA_FLAG_UNDERA,True);
  447 + session->ctlr_done(session);
450 448 }
451 449  
452 450 void status_oerr(H3270 *session, int error_type)
... ... @@ -632,41 +630,6 @@ void status_untiming(H3270 *session)
632 630 session->set_timer(session,0);
633 631 }
634 632  
635   -/* Set the window title. */ /*
636   -void screen_title(char *text)
637   -{
638   -}
639   -
640   -static void
641   -relabel(H3270 *session, int ignored unused, void *dunno)
642   -{
643   -#if defined(WC3270)
644   - if (appres.title != CN)
645   - return;
646   -#endif
647   -
648   - if (PCONNECTED)
649   - {
650   -#if defined(WC3270)
651   - if (profile_name != CN)
652   - screen_title(profile_name);
653   - else
654   -#endif
655   - screen_title(session->reconnect_host);
656   -
657   - }
658   - else
659   - {
660   - screen_title(0);
661   - }
662   -}
663   -
664   -int query_counter(COUNTER_ID id)
665   -{
666   - return lib3270_event_counter[id];
667   -}
668   -*/
669   -
670 633 void show_3270_popup_dialog(H3270 *session, LIB3270_NOTIFY type, const char *title, const char *msg, const char *fmt, ...)
671 634 {
672 635 CHECK_SESSION_HANDLE(session);
... ...
statusc.h
... ... @@ -39,5 +39,3 @@ LIB3270_INTERNAL void set_status(H3270 *session, OIA_FLAG id, Boolean on);
39 39 #define status_syswait() status_changed(NULL,LIB3270_STATUS_SYSWAIT)
40 40 #define status_minus() status_changed(NULL,LIB3270_STATUS_MINUS)
41 41  
42   -
43   -extern int lib3270_event_counter[COUNTER_ID_USER];
... ...