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 | 43 | #include <glib.h> |
44 | 44 | #include "../globals.h" |
45 | 45 | |
46 | -//#ifdef HAVE_MALLOC_H | |
47 | -// #include <malloc.h> | |
48 | -//#endif | |
49 | - | |
50 | 46 | static int static_CallAndWait(int(*callback)(H3270 *session, void *), H3270 *session, void *parm); |
51 | 47 | static void * static_AddInput(int source, H3270 *session, void (*fn)(H3270 *session)); |
52 | 48 | static void static_RemoveSource(void *id); |
... | ... | @@ -123,13 +119,6 @@ static void static_RemoveSource(void *id) |
123 | 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 | 122 | static void * static_AddExcept(int source, H3270 *session, void (*fn)(H3270 *session)) |
134 | 123 | { |
135 | 124 | #if defined(_WIN32) /*[*/ | ... | ... |
widget.c
... | ... | @@ -33,7 +33,11 @@ |
33 | 33 | #include <lib3270/session.h> |
34 | 34 | #include <lib3270/actions.h> |
35 | 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 | 41 | #include "v3270.h" |
38 | 42 | #include "private.h" |
39 | 43 | #include "accessible.h" | ... | ... |