Alon Zakai
2877208242
make emscripten_get_now work in native builds, because what is otherwise a convenient way to just get timing info in ms using a simple libc call?
2014-01-25 17:01:50 -08:00
Jukka Jylänki
9f7690fa3d
Rename library_events to library_html5 and other suggested renamings. Add better support for reporting EMSCRIPTEN_RESULT_NOT_SUPPORTED for unsupported features.
2014-01-24 12:31:53 +02:00
Jukka Jylänki
96895e6dae
Implement C-based events library for various HTML5 APIs.
2014-01-22 18:59:37 +02:00
Jukka Jylänki
19a38d059b
Workaround glew linkage issue, see https://github.com/kripken/emscripten/issues/2025
2014-01-21 17:30:41 +02:00
Bruce Mitchener
e7ae95bd86
Move workaround for emscripten from include/exception to library.js.
2014-01-21 10:40:47 +07:00
Alon Zakai
5bb976ed71
add fnmatch; fixes #2002
2014-01-16 15:42:14 -08:00
Alon Zakai
c5522c6456
add musl fputws, fix vswprintf, add testing for fwprintf and swprintf as well
2014-01-15 11:26:48 -08:00
Alon Zakai
3753753c60
remove musl use of fwritex
2014-01-15 10:32:12 -08:00
Bruce Mitchener
db88b6cd9b
Fill in undefined math symbols.
2014-01-15 12:01:56 +07:00
Alon Zakai
a6effe0a86
fix wprintf-related bug that bit fastcomp
2014-01-14 16:23:45 -08:00
Alon Zakai
c8529f6fa6
Merge pull request #2009 from waywardmonkeys/updates2
...
Updates2
2014-01-14 14:11:16 -08:00
Jari Vetoniemi
a39788f502
Add GLEW 1.10.0 emulation
...
Includes library_glew.js that stubs the init functions, but also provides the
other functions.
GL/glew.h is now changed to work with GLEW_EXT_foo_bar constants,
some missing constants that are in GLEW 1.10.0 are also provided.
Otherwise it still uses SDL_opengl.h to provide function definitions and
other constants.
Linaro's GLEW (glew-oes) is also supported to some degree to make it
easier to get ES1 and ES2 software using it running.
What it lacks:
- Some constants and function declarations that are in GLEW 1.10.0
might be missing.
- The real glew-es fork also includes normal GL constants and
function pointers, this does not.
Tests ran:
- tests/runner.py browser
Real world example using this code (and upcomming glfw3 port) can be found here:
http://cloudef.eu/glhck
http://cloudef.eu/glhck/qb.html
2014-01-14 17:04:58 +02:00
Bruce Mitchener
8016130a51
Expand aliases for strto*_l() to short functions.
...
This removes warnings about incompatible pointer types in asm2 mode.
2014-01-14 16:19:38 +07:00
Bruce Mitchener
8f85a8ed68
Move err/warn/etc from libc to libcextra.
2014-01-14 15:05:21 +07:00
Bruce Mitchener
58713dc426
Replace getopt_long with musl version.
2014-01-14 15:05:21 +07:00
Bruce Mitchener
98cb4917eb
stdlib/strtod.c is no longer used.
...
This has been replaced with code from musl.
2014-01-14 15:05:21 +07:00
Bruce Mitchener
bba4dd6fd3
Replace implementation of warn*/err*.
...
This eliminates a large number of warnings about incompatible function pointer
casts when compiling for asm.js.
2014-01-14 15:05:21 +07:00
Bruce Mitchener
a15486ffea
Fix asm2 compilation where __toread was used.
2014-01-14 15:05:20 +07:00
Bruce Mitchener
ea5facf1ab
Note change in signgam implementation from upstream.
2014-01-14 08:39:29 +07:00
Alon Zakai
0e36f078d4
add fputwc, which enables wprintf
2014-01-13 17:03:24 -08:00
Bruce Mitchener
e3825afd87
Move scalbn to libc to fix broken functionality. Disable test on x86.
2014-01-14 02:21:11 +07:00
Bruce Mitchener
3b62c6587c
Add lots of math functions.
2014-01-14 02:21:11 +07:00
Bruce Mitchener
cd21e58d9e
Make lgamma and friends work, add test.
...
We can't use weak aliases on variables in emscripten, so get rid of __signgam
and just use signgam.
2014-01-14 02:21:11 +07:00
Bruce Mitchener
b167b3c751
Add gamma functions.
2014-01-14 02:21:11 +07:00
Bruce Mitchener
c0229303f8
Add strtod(), wcstod(), wcstol() and friends.
...
This implementation of strtod() replaces the old as it implements
support for parsing hex constants which is needed by various tests.
2014-01-14 02:21:11 +07:00
Bruce Mitchener
4353f5df1e
Missing string.h functionality.
2014-01-13 17:59:15 +07:00
Bruce Mitchener
5d078cbbd7
Update libcxx to current version.
2014-01-13 17:59:15 +07:00
Bruce Mitchener
44cb63a6ec
Update to current libcxxabi for new exception code.
2014-01-13 17:59:15 +07:00
Fraser Adams
32e1d73d60
implementation of libuuid
2013-12-31 13:27:05 +00:00
Jukka Jylänki
184a425ce0
Also give the ability to print out function parameters in the callstack with emscripten_get_callstack.
2013-12-20 11:49:32 +02:00
Jukka Jylänki
26d6ad370e
Add new functions emscripten_log() in emscripten.h which allows printing out log messages with callstack information, and function emscripten_get_callstack(), which allows programmatically obtaining the current callstack.
2013-12-20 11:49:30 +02:00
Heidi Pan
adeaad098f
getting some initial set of x86 intrinsics mapped to JS SIMD ops; update existing SIMD code to use updated JS SIMD API (SIMD.type.op instead of SIMD.op & SIMD.opu32; int32x4 instead of uint32x4); bug fix: right type of withX() for int32x4 initialization; bug fix: splat(0) instead of zero() for int32x4 initialization
2013-11-26 14:59:02 -08:00
Heidi Pan
05de003154
getting some initial set of x86 intrinsics mapped to JS SIMD ops; update existing SIMD code to use updated JS SIMD API (SIMD.type.op instead of SIMD.op & SIMD.opu32; int32x4 instead of uint32x4); bug fix: right type of withX() for int32x4 initialization; bug fix: splat(0) instead of zero() for int32x4 initialization
2013-11-26 14:59:02 -08:00
Alon Zakai
a4e9c38c37
EM_ASM_INT and EM_ASM_DOUBLE, which allow input and output values from EM_ASM; fixes #1819
2013-11-17 10:20:45 -08:00
Alon Zakai
ecb9e4de28
mention inline asm() syntax in EM_ASM comment
2013-11-15 12:43:05 -08:00
Alon Zakai
4e21fffe3f
Merge branch 'regex-impl' of github.com:waywardmonkeys/emscripten into incoming
...
Conflicts:
tools/shared.py
2013-11-14 21:29:31 -08:00
Alon Zakai
b873dc778f
Merge branch 'incoming' into f32
...
Conflicts:
src/parseTools.js
src/preamble.js
2013-11-08 16:04:05 -08:00
Bruce Mitchener
ad1da1e668
Bump version & regen symbols for libcxx.
2013-11-07 16:08:19 +07:00
Bruce Mitchener
8a8f0348a1
Don't use atomic as that breaks our version of clang.
2013-11-07 16:08:02 +07:00
Bruce Mitchener
44af976a44
Update libcxx to 194185, 2013-11-07.
...
This brings C++14 support.
2013-11-07 16:07:18 +07:00
Alon Zakai
7f870cf9c3
Merge pull request #1748 from caiiiycuk/fix_sdl_colors
...
Fix SDL_SetColors && SDL_envets
2013-11-06 11:56:14 -08:00
Bruce Mitchener
eee1dad79e
regex implementation from musl.
2013-11-02 22:46:46 +07:00
Alon Zakai
3d48329892
Merge branch 'incoming' into f32
...
Conflicts:
src/parseTools.js
2013-11-01 18:26:58 -07:00
Alon Zakai
a4b5ac5a0b
begin to add emscripten_float32x4_signmask
2013-10-30 13:14:26 -07:00
Aleksander Guryanov
2247ff845f
Fix SDL_SetColors && SDL_envets
2013-10-30 18:18:29 +07:00
Alon Zakai
7c909b0db1
use double for emscripten_get_now, to not lose precision from performance.now etc.
2013-10-29 14:48:40 -07:00
Bruce Mitchener
5017df14db
Fix an issue with Boost compilation.
...
The issue is that when these macros are defined, libcxx
creates inline functions and so we end up with 2 separate
defintions of these functions (one inline in std and one
that is extern "C").
We undef these until libcxx is fixed. Without this,
some things can fail to compile correctly, like
Boost. Fixes issue #1716 .
2013-10-27 13:14:22 +07:00
Alon Zakai
634513d0c7
add vector.h
2013-10-18 13:00:49 -07:00
Alon Zakai
332325394c
make EM_ASM use strings on the heap, so it works in asm, and cache the generated functions
2013-10-06 17:44:06 -07:00
Bruce Mitchener
e197906fe1
Add iconv from musl.
2013-09-26 09:22:22 +07:00