Skip to content

Commit

Permalink
utf-8 aware functions for basis. unit-testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriceleal committed Nov 17, 2018
1 parent 39497fe commit c2a217f
Show file tree
Hide file tree
Showing 9 changed files with 1,024 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ compiler:
before_install:
- export CONFIGURE_ARGS=""
- if command -v apt-get &>/dev/null; then sudo apt-get update -qq; fi
- if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton; fi
- if command -v apt-get &>/dev/null; then sudo apt-get install -y mlton lib-icudev; fi
- if command -v brew &>/dev/null; then brew update; fi
- if command -v brew &>/dev/null; then brew uninstall libtool; fi
- if command -v brew &>/dev/null; then brew install libtool; fi
Expand Down
3 changes: 2 additions & 1 deletion include/urweb/types_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
#include <time.h>
#include <unistd.h>
#include <stdint.h>
#include <unicode/utypes.h>

typedef long long uw_Basis_int;
typedef double uw_Basis_float;
typedef char* uw_Basis_string;
typedef char uw_Basis_char;
typedef UChar32 uw_Basis_char;
typedef struct {
time_t seconds;
unsigned microseconds;
Expand Down
2 changes: 1 addition & 1 deletion src/c/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AM_CFLAGS = -Wall -Wunused-parameter -Werror -Wno-format-security -Wno-deprecate
liburweb_la_LDFLAGS = $(AM_LDFLAGS) $(OPENSSL_LDFLAGS) \
-export-symbols-regex '^(client_pruner|pthread_create_big|strcmp_nullsafe|uw_.*)' \
-version-info 1:0:0
liburweb_la_LIBADD = $(PTHREAD_LIBS) -lm $(OPENSSL_LIBS)
liburweb_la_LIBADD = $(PTHREAD_LIBS) -lm $(OPENSSL_LIBS) -licui18n -licuuc -licudata
liburweb_http_la_LIBADD = liburweb.la
liburweb_http_la_LDFLAGS = -export-symbols-regex '^(main|uw_.*)' \
-version-info 1:0:0
Expand Down
Loading

0 comments on commit c2a217f

Please sign in to comment.