FSCORE-253. add the following functions to work around netbsd failures

switch_toupper
switch_tolower
switch_isalnum
switch_isalpha
switch_iscntrl
switch_isdigit
switch_isgraph
switch_islower
switch_isprint
switch_ispunct
switch_isspace
switch_isupper
switch_isxdigit

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10761 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-12-15 03:21:36 +00:00
parent 8fb167c779
commit 6113ab943c
2 changed files with 158 additions and 0 deletions
+12
View File
@@ -44,6 +44,18 @@ SWITCH_BEGIN_EXTERN_C
SWITCH_DECLARE(int) switch_toupper(int c);
SWITCH_DECLARE(int) switch_tolower(int c);
SWITCH_DECLARE(int) switch_isalnum(int c);
SWITCH_DECLARE(int) switch_isalpha(int c);
SWITCH_DECLARE(int) switch_iscntrl(int c);
SWITCH_DECLARE(int) switch_isdigit(int c);
SWITCH_DECLARE(int) switch_isgraph(int c);
SWITCH_DECLARE(int) switch_islower(int c);
SWITCH_DECLARE(int) switch_isprint(int c);
SWITCH_DECLARE(int) switch_ispunct(int c);
SWITCH_DECLARE(int) switch_isspace(int c);
SWITCH_DECLARE(int) switch_isupper(int c);
SWITCH_DECLARE(int) switch_isxdigit(int c);
#define switch_samples_per_packet(rate, interval) ((uint32_t)((float)rate / (1000.0f / (float)interval)))
#define SWITCH_SMAX 32767