added more X11 code related to GC handling

This commit is contained in:
hyunghwan.chung
2017-06-29 15:04:35 +00:00
parent a2877ac905
commit d0b38926d4
5 changed files with 518 additions and 174 deletions

View File

@ -92,6 +92,7 @@
# include <unistd.h>
# include <fcntl.h>
# include <locale.h>
# if defined(USE_THREAD)
# include <pthread.h>
@ -1758,6 +1759,11 @@ int main (int argc, char* argv[])
}
#endif
if (!setlocale (LC_ALL, ""))
{
fprintf (stderr, "Warning: setlocale() error. carrying on.\n");
}
memset (&vmprim, 0, MOO_SIZEOF(vmprim));
vmprim.dl_open = dl_open;
vmprim.dl_close = dl_close;

View File

@ -276,9 +276,13 @@
typedef char moo_bch_t;
typedef int moo_bci_t;
#define MOO_SIZEOF_BCH_T MOO_SIZEOF_CHAR
#define MOO_SIZEOF_BCI_T MOO_SIZEOF_INT
typedef moo_uint16_t moo_uch_t; /* TODO ... wchar_t??? */
typedef moo_int32_t moo_uci_t;
#define MOO_SIZEOF_UCH_T 2
#define MOO_SIZEOF_UCI_T 4
typedef moo_uint8_t moo_oob_t;