Commit 2d0cefb7722fad383a53bb8d9fa46f921db8d622
1 parent
0f39352e
Exists in
master
and in
5 other branches
Limpando fonte, ajustando log de sessao vazia
Showing
2 changed files
with
3 additions
and
17 deletions
Show diff stats
src/lib3270/iocalls.c
... | ... | @@ -617,22 +617,6 @@ void x_except_on(H3270 *h) |
617 | 617 | #endif // WIN32 |
618 | 618 | } |
619 | 619 | |
620 | -/* | |
621 | -void add_input_calls(H3270 *session, void (*in)(H3270 *session), void (*exc)(H3270 *session)) | |
622 | -{ | |
623 | -#ifdef _WIN32 | |
624 | - session->ns_exception_id = AddExcept((int) session->sockEvent, session, exc); | |
625 | - session->ns_read_id = AddInput((int) session->sockEvent, session, in); | |
626 | -#else | |
627 | - session->ns_exception_id = AddExcept(session->sock, session, exc); | |
628 | - session->ns_read_id = AddInput(session->sock, session, in); | |
629 | -#endif // WIN32 | |
630 | - | |
631 | - session->excepting = 1; | |
632 | - session->reading = 1; | |
633 | -} | |
634 | -*/ | |
635 | - | |
636 | 620 | void remove_input_calls(H3270 *session) |
637 | 621 | { |
638 | 622 | if(session->ns_read_id) | ... | ... |
src/lib3270/session.c
... | ... | @@ -440,8 +440,10 @@ void check_session_handle(H3270 **hSession) |
440 | 440 | |
441 | 441 | *hSession = lib3270_get_default_session_handle(); |
442 | 442 | |
443 | -#ifdef ANDROID | |
443 | +#if defined(ANDROID) | |
444 | 444 | __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, "%s called with empty session\n", __FUNCTION__); |
445 | +#elif defined(DEBUG) | |
446 | + lib3270_write_log(*hSession, "lib3270", "%s called with empty session from %s",__FUNCTION__,fname); | |
445 | 447 | #else |
446 | 448 | lib3270_write_log(*hSession, "lib3270", "%s called with empty session",__FUNCTION__); |
447 | 449 | #endif // ANDROID | ... | ... |