Commit 1f6c3b1de570d24609256831a9b16ed9a89af2f9
1 parent
ed38a034
Exists in
master
and in
1 other branch
Limpando código, mais ajustes para multi-sessao
Showing
2 changed files
with
5 additions
and
12 deletions
Show diff stats
iocallback.c
@@ -43,10 +43,6 @@ | @@ -43,10 +43,6 @@ | ||
43 | #include <glib.h> | 43 | #include <glib.h> |
44 | #include "../globals.h" | 44 | #include "../globals.h" |
45 | 45 | ||
46 | -//#ifdef HAVE_MALLOC_H | ||
47 | -// #include <malloc.h> | ||
48 | -//#endif | ||
49 | - | ||
50 | static int static_CallAndWait(int(*callback)(H3270 *session, void *), H3270 *session, void *parm); | 46 | static int static_CallAndWait(int(*callback)(H3270 *session, void *), H3270 *session, void *parm); |
51 | static void * static_AddInput(int source, H3270 *session, void (*fn)(H3270 *session)); | 47 | static void * static_AddInput(int source, H3270 *session, void (*fn)(H3270 *session)); |
52 | static void static_RemoveSource(void *id); | 48 | static void static_RemoveSource(void *id); |
@@ -123,13 +119,6 @@ static void static_RemoveSource(void *id) | @@ -123,13 +119,6 @@ static void static_RemoveSource(void *id) | ||
123 | g_source_destroy((GSource *) id); | 119 | g_source_destroy((GSource *) id); |
124 | } | 120 | } |
125 | 121 | ||
126 | -// #if !defined(_WIN32) | ||
127 | -// static void * static_AddOutput(int source, H3270 *session, void (*fn)(H3270 *session)) | ||
128 | -// { | ||
129 | -// return AddSource(source,session,G_IO_OUT|G_IO_HUP|G_IO_ERR,fn); | ||
130 | -// } | ||
131 | -// #endif | ||
132 | - | ||
133 | static void * static_AddExcept(int source, H3270 *session, void (*fn)(H3270 *session)) | 122 | static void * static_AddExcept(int source, H3270 *session, void (*fn)(H3270 *session)) |
134 | { | 123 | { |
135 | #if defined(_WIN32) /*[*/ | 124 | #if defined(_WIN32) /*[*/ |
widget.c
@@ -33,7 +33,11 @@ | @@ -33,7 +33,11 @@ | ||
33 | #include <lib3270/session.h> | 33 | #include <lib3270/session.h> |
34 | #include <lib3270/actions.h> | 34 | #include <lib3270/actions.h> |
35 | #include <lib3270/log.h> | 35 | #include <lib3270/log.h> |
36 | - #include <malloc.h> | 36 | + |
37 | +#ifdef HAVE_MALLOC_H | ||
38 | + #include <malloc.h> | ||
39 | +#endif // HAVE_MALLOC_H | ||
40 | + | ||
37 | #include "v3270.h" | 41 | #include "v3270.h" |
38 | #include "private.h" | 42 | #include "private.h" |
39 | #include "accessible.h" | 43 | #include "accessible.h" |