fix signal handling

This commit is contained in:
Vítor Santos Costa
2014-03-15 23:47:29 +00:00
parent 242f872b5d
commit 79763e9ea1
4 changed files with 86 additions and 311 deletions

View File

@@ -25,6 +25,10 @@
#include <string.h>
#ifndef HAVE_WCSNLEN
#define wcsnlen(S, N) wcslen(S)
#endif
static inline unsigned char *get_char(unsigned char *p, int *c) { *c = *p; return p+1; }
static inline wchar_t *get_wchar(wchar_t *p, int *c) { *c = *p; return p+1; }