Граф коммитов

634 Коммитов

Автор SHA1 Сообщение Дата
Chad Austin 09bfd969bd after merge we need to fix hasOwnProperty to use [] 2013-04-12 14:23:27 +03:00
Chad Austin 066540930e Switch from val::get to val[] 2013-04-12 14:23:25 +03:00
Chad Austin 661e70cb38 simplify emscripten::val set and get 2013-04-12 14:23:24 +03:00
Chad Austin 2b173301ef Simplify emscripten::val a bit, reducing it closer to its primitive operations. 2013-04-12 14:23:18 +03:00
Bill Welden 6c56bdda8d It is now possible to access base class properties and methods from a derived class (multiple inheritance not yet supported). 2013-04-12 14:23:11 +03:00
Chad Austin c5b8e64a0b bring emscripten::val closer to the set of primitive operations provided by JS on values 2013-04-12 14:23:08 +03:00
Bill Welden d0969fc651 o Temporary shared pointers created to hold upcast argument values now share ownership with the original pointer.
o New test cases for edge cases.
o Other minor clean-up.
2013-04-12 14:23:06 +03:00
Bill Welden cfb3df1b48 Revert "Revert "Auto upcast of pointer parameters to C++ routines.""
This reverts commit 07e0daa5aab716b38acf9041a8baec3816976579.
2013-04-12 14:23:01 +03:00
Bill Welden 84b49c917c Revert "Auto upcast of pointer parameters to C++ routines."
This reverts commit 64cc5c47bed294d5efa2433655552530c0242503.
2013-04-12 14:23:00 +03:00
Bill Welden cd535236f6 Auto upcast of pointer parameters to C++ routines. 2013-04-12 14:22:56 +03:00
Todd Lee cd3be4e930 clean-up old interface binding implementation 2013-04-12 14:22:54 +03:00
mey 32ccee42ba Adding a register map function, fixing some errors in array access functions and invokers. 2013-04-12 14:22:51 +03:00
Bill Welden eac098fc24 Major re-factoring for auto downcasting 2013-04-12 14:22:49 +03:00
Bill Welden d069ed4142 clear distinction between raw (C++) and cooked (Javascript class instances) types. 2013-04-12 14:22:47 +03:00
Bill Welden 2308f2a5b1 More work on auto downcasting. 2013-04-12 14:22:43 +03:00
jinsuck ea98beba74 remove meaningless casting back and forth 2013-04-12 14:22:42 +03:00
jinsuck 77f2b4588b add a method to conveniently clone to shared pointer of wrapper 2013-04-12 14:22:41 +03:00
jinsuck 40773165f4 add const to a function in val 2013-04-12 14:22:38 +03:00
Todd Lee 0e3ca9c9d6 add ability for descendent to clone interface 2013-04-12 14:22:37 +03:00
jinsuck a7733270b0 add const to val 2013-04-12 14:22:35 +03:00
Todd Lee eab7bc729e remove unnecessary code 2013-04-12 14:22:34 +03:00
Bill Welden 50ba3a6ff9 Benchmark work on pointer casting. 2013-04-12 14:22:33 +03:00
mey 8929970461 Removing unused vector binding code that was missed during previous vector refactorings. 2013-04-12 14:22:31 +03:00
jinsuck 4f143f4638 Revert "remove an unused method"
This reverts commit 7300ba73d3004b8d5c69bd8e3dfbc971c3147ad8.
2013-04-12 14:22:30 +03:00
jinsuck a668fe09c4 remove an unused method 2013-04-12 14:22:28 +03:00
Bill Welden 77dd6c9e83 First fully functional automatic downcasting implementation. 2013-04-12 14:22:26 +03:00
Bill Welden 5fba40c9d8 Forward slashes! 2013-04-12 14:22:24 +03:00
Bill Welden 119ab2f1c4 Better error reporting
Fixed demangling routine and added it to RTL
New __typeName method to retrieve char* type name from type info
2013-04-12 14:22:23 +03:00
Bill Welden 03d90a32db More work toward dynamic downcasting of pointers. 2013-04-12 14:22:20 +03:00
mey 1276f9f5b7 Some additional clean up. 2013-04-12 14:22:19 +03:00
mey c9eb75d64a adding function to convert JS array to vector. 2013-04-12 14:22:18 +03:00
mey b5d84da03b Removing ability to return by reference: dangerous. 2013-04-12 14:22:16 +03:00
mey 15603bbafc Switching vector class_ instead of bound as an explicit type. 2013-04-12 14:22:15 +03:00
jinsuck 026a4d49e4 support creating val with null (needed for sending null parameter to a
WebGL function)
2013-04-12 14:22:14 +03:00
Todd Lee 73d2de4105 use simpler way to get length of an array 2013-04-12 14:22:12 +03:00
jinsuck 88b63143fa Upgrade libcxx from 11-month-ago version to the latest. The new version has memory
leak fixed in the weak_ptr. Note: to make this compile, I made two
 modifications (actually copied from the previous version) --
 system/include/libcxx/__locale line 28 and system/include/libcxx/locale
 line 229.
2013-04-12 14:22:11 +03:00
Todd Lee d161fccc9b added two utility functions to emval.
- check if a given key exists.
 - return length of an array.
2013-04-12 14:22:09 +03:00
Bill Welden 1b9928686e Automatic downcasting of function return values (first cut -- multiple inheritance still not supported). 2013-04-12 14:22:08 +03:00
Bill Welden ae311d2e8d Allow raw pointer return values (requires allow_raw_pointer<ret_val>) 2013-04-12 14:22:04 +03:00
Todd Lee 87b760c334 Add support for std::vector. 2013-04-12 14:22:03 +03:00
Chad Austin 8b7abef9db Returning an empty shared_ptr returns null to JavaScript. Similarly, passing null into a shared_ptr creates an empty shared_ptr. 2013-04-12 14:21:58 +03:00
Bill Welden 338d59e81e More files for upcast/downcast commit. 2013-04-12 14:21:57 +03:00
mey e237bfd79d Removing Functor as a specific type; folding operator call into the class definition. 2013-04-12 14:21:54 +03:00
jinsuck 0d745fa116 1) add a method to run global javascript function on val 2) fix a bug to
return val from interface wrapper
2013-04-12 14:21:53 +03:00
jinsuck 778b8eb983 add a syntactic sugar to for cloning to a shared pointer of interface
wrapper
2013-04-12 14:21:51 +03:00
jinsuck 2c34b6dc6c Allow constructing interface wrapper from existing interface object 2013-04-12 14:21:50 +03:00
mey 01212260c2 Merging. 2013-04-12 14:21:46 +03:00
mey d622aa9cab Exposing std::function to javascript. 2013-04-12 14:21:45 +03:00
Todd Lee 6326240227 This enables passing smart ptr as an element of val. 2013-04-12 14:21:43 +03:00
Llorens Marti Garcia d90ef85c03 Fix on EnumBindingType 2013-04-12 14:21:42 +03:00
Todd Lee 3c5dead674 Add support for std::vector. 2013-04-12 14:21:41 +03:00
Chad Austin 565823a14a Returning an empty shared_ptr returns null to JavaScript. Similarly, passing null into a shared_ptr creates an empty shared_ptr. 2013-04-12 14:21:39 +03:00
Chad Austin 848bdefa4e std::string's WireType::destroy should be free(), not delete. 2013-04-12 14:21:38 +03:00
jinsuck ebbe879255 to get string from emval 2013-04-12 14:21:36 +03:00
Chad Austin 8691fb1726 Allow multiple pointer arguments and allow multiple functions taking the same raw pointer type 2013-04-12 14:21:35 +03:00
Chad Austin 6014feed71 Add support for raw pointers to embind 2013-04-12 14:21:34 +03:00
Chad Austin eb5226e16c Class static methods were downright broken. 2013-04-12 14:21:29 +03:00
Chad Austin 3703d2b5cd Checkpoint work towards exposing call policies for raw pointers. 2013-04-12 14:21:28 +03:00
Chad Austin df6ba03eed Fix several ownership/lifetime bugs in argument wire types 2013-04-12 14:21:22 +03:00
Chad Austin 1c0c7be7aa Some minor generated code size reductions. 2013-04-12 14:21:21 +03:00
Todd Lee f91f1ddf37 removed duplicate code / unnecessary code 2013-04-12 14:21:20 +03:00
Todd Lee d0bf1b0aea Handle shared_ptr correctly.(keep underlying pointer point to the same address)
There was some global variable dependency. These bleed thru tests and affected test result. Adding a way to reset this state.
2013-04-12 14:21:18 +03:00
mey 681ea9fc51 Fixing some tabs and removing some duplication in smart ptr embind. 2013-04-12 14:21:17 +03:00
Chad Austin 60bae3faed Some simplifications and optimizations to smart pointer support 2013-04-12 14:21:15 +03:00
mey db4baa7a70 Exposing std::shared_ptr<T> to javascript. 2013-04-12 14:21:14 +03:00
mey a20c654c1f Supporting returning std::unique_ptr from C++ to javascript. 2013-04-12 14:21:12 +03:00
Arlo Breault b2a132cd66 consistent 2013-04-09 17:58:40 -07:00
Arlo Breault 294bdda3b3 implement setgroups 2013-04-09 17:53:10 -07:00
Alon Zakai eb50cbdde5 Merge pull request #1036 from arlolra/eai
Error codes
2013-04-08 19:25:38 -07:00
Arlo Breault 8e9e1f279b include arpa/inet.h in netinet/in.h 2013-04-08 17:21:42 -07:00
Arlo Breault ecaaf7a499 combine netdb.h 2013-04-08 17:20:08 -07:00
Arlo Breault 166cba0f6b pf_inet6 2013-04-05 09:05:17 -07:00
Arlo Breault 758d18bdbd Error codes. 2013-04-05 08:50:34 -07:00
Éloi Rivard 656bba1da1 * Added glfw headers and testcases. 2013-04-04 11:17:36 +02:00
Alon Zakai 00c2e03551 Merge pull request #1009 from waywardmonkeys/another-libcxx-update
Another libcxx update
2013-04-01 16:01:04 -07:00
Alon Zakai e4fec66245 fix resource.h for C++ usage 2013-03-31 17:39:36 -07:00
Alon Zakai b9d076fda6 headers fix; fixes #1013 2013-03-30 19:46:57 -07:00
Bruce Mitchener 09233ff934 Update symbols. 2013-03-29 16:39:38 +07:00
Bruce Mitchener fe73520cbf Update libcxx to work with emscripten. 2013-03-29 16:37:19 +07:00
Bruce Mitchener aa0108c75e Update to r178253 from March 29, 2013. 2013-03-29 16:19:55 +07:00
Alon Zakai 5cedd415bd Merge pull request #993 from waywardmonkeys/reinstate-attributes
Re-instate _ATTRIBUTE() usages.
2013-03-25 17:36:26 -07:00
Alon Zakai 8fd44ea267 Merge pull request #989 from waywardmonkeys/fix-strtof
Don't infinitely recurse in strtof().
2013-03-25 15:53:31 -07:00
Alon Zakai ad285f60d0 remove symbol removing hack; export all malloc symbols as weak; add test for a case where symbol removing made us not merge llvm constructors properly 2013-03-25 12:58:25 -07:00
Bruce Mitchener 09221ebd18 Get exceptions working as they were before.
This no longer uses headers from libcxxabi and
in fact uses libcxxabi a bit less than before.

This no longer lets some new C++11 stuff such as
exception_ptr work as the support for that relies
upon libcxxabi code.
2013-03-25 14:14:22 +07:00
Bruce Mitchener 90338c69f7 Get things working with the new libcxx / libcxxabi. 2013-03-25 00:34:11 +07:00
Bruce Mitchener 85879d9d47 Remove unused makefiles. 2013-03-25 00:34:11 +07:00
Bruce Mitchener 9e185cfabd update libcxxabi. 2013-03-25 00:34:11 +07:00
Bruce Mitchener 59ff5a6a3c Update to current libcxx.
This doesn't work yet as it needs to be customized for use with
emscripten still.
2013-03-25 00:34:11 +07:00
Bruce Mitchener bc2c6ba215 Re-instate _ATTRIBUTE() usages.
These were broken because the definition of _ATTRIBUTE() from
libcxx was different, so change the libc definition and usage
to match.

Fixes issue #992.
2013-03-23 12:46:34 +07:00
Bruce Mitchener ba50e35b5c Don't infinitely recurse in strtof(). 2013-03-22 15:57:03 +07:00
Bruce Mitchener 795a334b3b Replace broken _CTYPE_* definitions with correct.
These aren't currently used, but are used in the updated libcxx
port.

Fixes issues #939.
2013-03-19 23:08:15 +07:00
Ehsan Akhgari 38a151b96c Replace OpenAL headers with our own 2013-03-15 11:53:17 -07:00
Ehsan Akhgari 46e1c03ff0 Add OpenAL headers 2013-03-15 11:53:15 -07:00
Alon Zakai 645fcab6d3 Merge pull request #942 from waywardmonkeys/fix-typeof-decls
Use less generic names for variables.
2013-03-12 18:31:31 -07:00
Bruce Mitchener b7fd3b22de Use less generic names for variables.
These are generic enough that in libcxx, they get expanded into
functions which also have variables named the same thing (__x, __y)
and that then leads to a buggy libcxx.
2013-03-12 10:21:02 +07:00
Bruce Mitchener 8204d4ce68 Add missing iso646.h 2013-03-08 15:36:37 +07:00
Xuejie "Rafael" Xiao d4c9620fb5 Move strtod, strtold, strtof, strtod_l, strtold_l, atof from JS side to libc side, this can fix double precision bug in original strtod implementation. 2013-03-06 23:59:11 -05:00
manuels 6efef45cbf Add support for getopt/getopt_long 2013-03-05 22:05:11 +01:00
Alon Zakai 5f35f00af3 Merge pull request #908 from waywardmonkeys/fix-typos
Fix typos.
2013-03-05 12:42:19 -08:00
Alon Zakai ae342cbe2e Merge pull request #909 from waywardmonkeys/fix-stdbool-h
Ensure __bool_true_false_are_defined is defined.
2013-03-05 12:41:46 -08:00
Alon Zakai 6de84bc7da disable emscripten_jcache_printf in non-C++ 2013-03-04 17:24:47 -08:00
Alon Zakai 26a3a085fc emscripten_jcache_printf 2013-03-04 17:07:25 -08:00
Bruce Mitchener 057ab746df Ensure __bool_true_false_are_defined is defined.
Previously, when compiling in C++ mode, this wasn't defined which
led to test failures for the libcxx test suite.

This now behaves like it does on other platforms.
2013-03-04 16:07:43 +07:00
Bruce Mitchener 7562bddceb Fix typos. 2013-03-04 16:05:15 +07:00
Alon Zakai 2f0b24bad5 Merge pull request #846 from juj/dlmalloc_286
Dlmalloc 286
2013-03-03 10:43:46 -08:00
Alon Zakai dce808a762 update libc symbols 2013-02-23 14:12:54 -08:00
Alon Zakai 5afd8a25d1 remove bad_cast/typeinfo.cpp from libcxx, no longer needed since it is in libcxxabi 2013-02-20 16:58:18 -08:00
Alon Zakai dce46c9c2a build base type_info class with libcxxabi, fixes #862 2013-02-20 16:33:29 -08:00
Jukka Jylänki b2dcd0e2b9 Update to dlmalloc 2.8.6 and set HAVE_MMAP to 0 only if compiling under EMSCRIPTEN to fix an allocator failure issue on OSX when building test_dlmalloc to native code. Fixes #730. 2013-02-12 02:12:46 +02:00
Alon Zakai ed41d97300 GLES 1.1 headers 2013-02-04 16:43:45 -08:00
Bruce Mitchener defb31b122 gc.h: Missing include guards. 2013-02-04 10:08:58 +07:00
Bruce Mitchener c84352a563 dlfcn.h: Missing include guards. 2013-02-04 07:39:23 +07:00
Alon Zakai 33ba871c65 Merge pull request #820 from waywardmonkeys/sys-features
Move some definitions to sys/features.
2013-02-01 18:29:39 -08:00
Bruce Mitchener a5cc2f2fed Move some definitions to sys/features.
This moves some feature flags to sys/features.h where they belong
and gives them the same values that are established in the settings
file.

Fixes #812.
2013-02-01 16:35:07 +07:00
Bruce Mitchener 3c33204a2d Support GC_get_heap_size(). 2013-02-01 09:39:08 +07:00
Bruce Mitchener defdd23b21 Add support for GC_REALLOC(). 2013-02-01 09:05:24 +07:00
Bruce Mitchener 5105bc966c Add GC support for GC_MALLOC_UNCOLLECTABLE. 2013-02-01 01:24:59 +07:00
Aleksander Guryanov 24d03141d1 Fix select.h 2013-01-28 22:34:26 +07:00
Alon Zakai 4840a62f37 fix sockaddr_storage and sockaddr_in 2013-01-26 16:15:55 -08:00
LCID Fire eeac9bd8e2 Add id_t from FreeBSD headers, which is e.g. used by libarchive 2013-01-15 09:57:33 +01:00
LCID Fire 7e746a3961 Fix __gid_t_defined and __uid_t_define single definition ("once") handling. 2013-01-15 09:57:33 +01:00
Alon Zakai b41145cc84 use musl memcpy instead of out handwritten js one 2013-01-09 16:01:58 -08:00
Alon Zakai 8e283ee92b rename dlmalloc to libc in cache, in preparation for adding further code there 2013-01-09 12:38:43 -08:00
Alon Zakai 828a7ec134 refactor networking code to start supporting multiple backends 2013-01-08 11:05:45 -08:00
Alon Zakai 0cb8bcd6a8 wget2 docs 2013-01-07 18:50:53 -08:00
Alon Zakai 51980b34bf Merge remote-tracking branch 'wolfviking/incoming' into incoming
Conflicts:
	AUTHORS
	src/library_browser.js
	system/include/emscripten/emscripten.h
2013-01-07 17:43:36 -08:00
Alon Zakai 8e12485da5 sysexits.h 2013-01-06 10:08:00 -08:00
Alon Zakai b42a90360a deprecate EMSCRIPTEN_KEEPALIVE - add your functions to EXPORTED_FUNCTIONS instead 2013-01-01 11:03:10 -08:00
Alon Zakai e97f48a2c9 emscripten_async_wget_data 2012-12-30 16:36:28 -08:00
Anthony Liot 68d5248ff7 Add comment,test,authors. Change indentation and comma space
Modify the indentation
Add Author
Add comment
Add test inside runner.py
2012-12-28 09:36:13 +01:00
Alon Zakai fdf1bf5426 fix missing returns in embind code 2012-12-21 10:47:41 -08:00
Alon Zakai 34b153227d update libcxxabi 2012-12-21 10:47:39 -08:00
Anthony Liot af4716bb66 Add emscripten_async_wget2 with progress callback
Send request Post & Get with progress callback
Add sample HTTP using emscripten_async_wget2
2012-12-13 15:27:37 +01:00
Dominic Wong e0c208c493 Fixed embind for non-void non-const class methods (with test). 2012-11-30 15:16:00 +08:00
Alon Zakai 0d663f0cc9 fix socket.h 2012-11-23 13:49:20 +01:00
Alon Zakai b074f4241b emscripten_run_script_string 2012-11-21 20:26:26 +01:00
Alon Zakai 2a13b634d1 gc additions 2012-11-20 15:50:55 +01:00
Alon Zakai 4db72410f7 define GC_finalization_proc 2012-11-20 15:04:33 +01:00
Alon Zakai bfd1ba2cac networking and sockets header additions 2012-11-20 14:59:00 +01:00
Alon Zakai f05c9250ac socket.h additions and fixes 2012-11-19 17:51:58 +01:00
Alon Zakai 845400afe9 socket.h additions 2012-11-19 17:47:45 +01:00
Alon Zakai 3e6c99d062 socket.h additions 2012-11-19 17:44:10 +01:00
Alon Zakai 9611b18ee4 un.h fixes 2012-11-19 17:40:45 +01:00
Alon Zakai 9e77735042 un.h 2012-11-19 17:38:06 +01:00
Alon Zakai d477c4c2fb sa_sigaction 2012-11-19 17:34:25 +01:00
Alon Zakai 7c6c1f8a3e netdb.h additions 2012-11-19 17:26:53 +01:00
Alon Zakai 2b9827de1c header fixes 2012-11-19 17:24:11 +01:00
Alon Zakai 81ef175e1e header fixes 2012-11-19 17:17:48 +01:00
Alon Zakai 56ee0809f4 socket.h additions 2012-11-19 17:14:43 +01:00
Alon Zakai 9042d10e4c ioctl.h additions 2012-11-19 17:13:04 +01:00
Alon Zakai d50b93322d resource.h additions 2012-11-19 17:08:03 +01:00
Alon Zakai cfd19d81ec statvfs.h additions 2012-11-19 17:04:32 +01:00
Alon Zakai 89489358b1 fcntl additions 2012-11-19 17:01:56 +01:00
Alon Zakai 8dae54e147 limits.h additions 2012-11-19 16:54:46 +01:00
Alon Zakai dfad54341b add dlfcn constant 2012-11-19 16:45:40 +01:00
Alon Zakai 8beb256205 zoomSurface support; fixes #673 2012-11-12 18:40:23 -08:00
Alon Zakai 2ac32ae20a headers fix 2012-11-08 12:17:52 -08:00
Alon Zakai 65a66e915f restore lost emscripten_resume_main_loop 2012-11-01 17:54:02 -07:00
Alon Zakai 2c4a776b6f sleep in native emscripten_set_main_loop 2012-10-31 18:13:50 -07:00
Alon Zakai 4f75a99ff5 fix uio.h 2012-10-31 16:21:31 -07:00
Alon Zakai 8aa385d540 include uio.h in socket.h so iovec is defined 2012-10-31 16:21:13 -07:00
Alon Zakai b57f314162 emscripten_cancel_main_loop in native 2012-10-31 16:20:46 -07:00
Alon Zakai 7e6a8cfd87 rename worker_t to worker_handle 2012-10-31 10:51:43 -07:00
Alon Zakai fab83ed0ad Merge pull request #651 from larsxschneider/json_parser
Fix -O1 warning and use proper pointers for Jansson library.
2012-10-28 12:04:09 -07:00
Alon Zakai 3f855a246e emscripten_get_worker_queue_size 2012-10-26 11:45:21 -07:00
Lars Schneider f1e8583e47 Fix -O1 warning and use proper pointers for Jansson library.
See details: https://github.com/kripken/emscripten/pull/636#issuecomment-9456782
2012-10-25 09:19:27 +02:00
Alon Zakai 23b2a79035 comment on separate compilation of workers 2012-10-22 20:46:39 -07:00
Alon Zakai e48db465e2 initial work on worker api 2012-10-22 15:30:03 -07:00
Alon Zakai eeb03b05ad add argument to emscripten_async_prepare_data 2012-10-19 12:01:13 -07:00
Alon Zakai c56013b5a9 emscripten_async_prepare_data 2012-10-19 11:23:32 -07:00
Lars Schneider 31bba7e9b9 Add `library_jansson` for JSON parsing.
Jansson is a C library for encoding, decoding and manipulating JSON data [1]. `library_jansson` mimics this interface (currently only for decoding) to perform JSON parsing in Javascript.

[1] https://github.com/akheron/jansson
2012-10-17 12:43:59 -07:00
Alon Zakai 45ba35aa01 add parameter to emscripten_set_main_loop to optionally simulate an infinite loop by throwing an exception (like glutMainLoop) 2012-10-13 10:06:33 -07:00
Alon Zakai 7841ffa2c9 embind header fixes 2012-10-12 15:07:35 -05:00
Alon Zakai 2be2720852 emscripten_async_prepare 2012-10-04 18:13:17 -07:00
Alon Zakai 7d47c81e24 improve emscripten.h for native builds 2012-10-02 12:12:28 -07:00
Alon Zakai 375982d9c1 Merge pull request #592 from imvu/embind-pull-request
Embind pull request
2012-10-01 10:48:28 -07:00
Alon Zakai 7eaa78060c headers fix; fixes test_inet 2012-09-29 21:32:09 -07:00
Alon Zakai c80eb42407 SO_KEEPALIVE 2012-09-28 15:48:43 -07:00
Alon Zakai 32e88a57eb support ioctl-FIONREAD 2012-09-28 15:37:02 -07:00
Alon Zakai 31f7b2a5a6 initial (not-yet-working) sockets implementation 2012-09-27 16:11:55 -07:00
Chad Austin 5208548e7f Break embind's dependency on boost::optional 2012-09-25 23:25:30 -07:00
Chad Austin 2530052556 Move embind C++ implementation into emscripten repository 2012-09-25 18:14:28 -07:00
Chad Austin 86305a27d4 Add embind headers 2012-09-25 18:14:22 -07:00
Chad Austin a3e58eff17 Add a marker showing that we changed an upstream library. 2012-09-25 17:11:25 -07:00
Chad Austin e17141bff8 Fix a warning under -Wall 2012-09-25 16:57:09 -07:00
Alon Zakai a3e03954ae execinfo.h 2012-09-21 18:26:47 -07:00
Alon Zakai 1451f83b62 move pthreads defines earlier 2012-09-21 18:16:58 -07:00
Alon Zakai 0ca4dbb0f5 allow more pthreads header 2012-09-21 18:14:43 -07:00
Alon Zakai 8d64c579f3 add getrlimit 2012-09-21 18:05:36 -07:00
Alon Zakai 5088b0295c add freebsd spawn.h 2012-09-21 18:04:30 -07:00
Alon Zakai ccfa02a420 add bogus TIOCG* consts 2012-09-21 18:02:13 -07:00
Alon Zakai b4e76e4967 add dladdr 2012-09-21 17:58:29 -07:00
Alon Zakai 32fc1f1e50 add some more pthread constants 2012-09-21 17:55:37 -07:00
Alon Zakai 55f85c0aba mntent.h header 2012-09-20 18:15:16 -07:00
Alon Zakai 7ae024b94d add void* argument to emscripten_async_call and emscripten_push_main_loop_blocker 2012-09-17 13:16:39 -07:00
LCID Fire 9dff51d153 Make EGLNative* typedefs work without need for X11 headers. 2012-09-16 01:06:19 +02:00
Mokhtar Naamani bf49ee816f prevent <sys/select.h> from being included multiple times 2012-09-09 13:34:02 +03:00
Alon Zakai 7618310d96 add TCP and UDP to net/netinet/in.h 2012-08-14 17:02:32 -07:00
Alon Zakai 67ba7bdd02 emscripten_push_uncounted_main_loop_blocker 2012-07-21 21:39:43 -07:00
Alon Zakai 266923db9d improve emscripten_push_main_loop_blocker definition 2012-07-21 10:30:15 -07:00
Alon Zakai 411787e67d name main loop blockers 2012-07-21 10:24:00 -07:00
Alon Zakai e935757662 warning on emscripten_push_main_loop_blocker 2012-07-20 18:24:39 -07:00
Alon Zakai c26f7b7301 even better main loop blockers progress reporting 2012-07-20 17:04:09 -07:00
Alon Zakai f2273cc4c2 better main loop blockers progress reporting 2012-07-20 16:16:16 -07:00
Alon Zakai 9234eaa52f add some EMSCRIPTEN comments for the last merge 2012-07-13 15:45:29 -07:00
Alon Zakai 5ac912dbe9 Merge pull request #497 from imvu/c++11
Fix C++11 support in libcxx
2012-07-13 15:44:05 -07:00
Alon Zakai 7f34950cc7 emscripten_push_main_loop_blocker improvements 2012-07-13 10:58:05 -07:00
Alon Zakai 3b6025a2c4 emscripten_push_main_loop_blocker 2012-07-12 18:26:46 -07:00
Chad Austin 3a252e1924 Fix C++11 support in libcxx 2012-07-03 18:37:28 -07:00
Alon Zakai 92987e9dd2 misc library additions/fixes 2012-06-22 17:13:59 -07:00
Aleksander Guryanov 2c86cbf25b Implementation for emscripten_async_wget 2012-06-21 20:38:01 +07:00
Alon Zakai 27dae93151 fix emscripten_async_call for native builds with multiple files 2012-06-15 11:51:30 -07:00
Alon Zakai 4ab0c9fe43 move emscripten.h to emscripten/emscripten.h, so native builds can -I that dir and not get anything else 2012-06-15 11:16:06 -07:00
Alon Zakai 0bf5420d38 EMSCRIPTEN_KEEPALIVE 2012-06-14 21:19:42 -07:00
Alon Zakai f1c4dae2cb emscripten_random 2012-06-12 17:56:40 -07:00
Jukka Jylänki c19e66ece3 Added a helper function emscripten_set_canvas_size function which allows to resize the <canvas> element on the web page in 'generic' fashion without having to depend on SDL or X11 headers in C code. This function is intended to be used in conjunction with EGL to specify a custom pixel resolution for the canvas (EGL API does not have expressiveness to do arbitrary pixel sizes). 2012-06-05 00:23:17 +03:00
Alon Zakai 499ace020e fix test_gc for o1 and o2 2012-05-15 16:01:35 -07:00
Alon Zakai 46f641bf1e working early gc test 2012-05-15 13:37:09 -07:00
Alon Zakai 1a55bf326c further gc work, basic api written 2012-05-15 12:00:01 -07:00
Alon Zakai 1cd225a385 initial work on c++ gc support 2012-05-15 11:32:45 -07:00
Alon Zakai 354a88d763 emscripten_get_now 2012-05-14 16:49:25 -07:00
Alon Zakai 27379196d5 emscripten_hide_mouse 2012-05-10 17:03:26 -07:00
Alon Zakai fe319edc46 header additions for xmlvm 2012-05-08 20:10:08 -07:00
Alon Zakai ccf2e41978 emscripten_pause_main_loop and resume 2012-05-06 18:04:12 -07:00
Alon Zakai 9d1c43e2c5 remove unneeded libcxx makefile line for readme 2012-05-02 20:57:48 -07:00
Alon Zakai 50d59708df use requestAnimationFrame 2012-05-01 13:28:40 -07:00
Alon Zakai e2bd325199 sys/types.h header fix for some systems where local includes make them fail on redefinitions 2012-04-24 17:28:53 -07:00
Alon Zakai 3b725e2f95 add emscripten_async_run_script 2012-04-19 09:50:32 -07:00
Alon Zakai 735637e9a1 add emscripten_async_call 2012-04-17 20:32:14 -07:00
Alon Zakai c721f0efcf restore 2 constants in sys/ioctl.h 2012-04-16 18:11:34 -07:00
Ehsan Akhgari 8e0dfcf00f Add a bunch of defines needed to get socket based applications to compile 2012-04-16 16:45:05 -04:00
Alon Zakai 2f258b91ce pty.h 2012-04-08 13:17:06 -07:00
Alon Zakai d75b626543 sys/ioctl.h 2012-04-07 18:26:34 -07:00
Alon Zakai 4b32536246 fix test_glgears 2012-04-02 16:46:51 -07:00
Ehsan Akhgari aba3d417d5 Merge remote-tracking branch 'behdad/master' into behdad
Conflicts:
	src/library_gl.js
2012-04-02 17:56:14 -04:00
Alon Zakai 0c82f42676 add X headers 2012-03-31 15:21:22 -07:00
Alon Zakai 054b2403e9 do not use impure stuff for stdin etc, it makes comparing to native builds harder 2012-03-28 15:00:58 -07:00
Behdad Esfahbod 80bc58af4c Don't define u_int64_t and similar types twice
They are already typedef'ed earlier in the file.  This breaks emcc on my
Mac at least.

This was broken by f4018dfb.
2012-03-27 20:42:23 -04:00
Alon Zakai 6ad919104f SDL mouse support and emscripten_set_main_loop 2012-03-24 15:04:41 -07:00
Alon Zakai 3ca9645e0b alter SDL scancode mask, to help older SDL apps work 2012-03-23 17:35:13 -07:00
Sigmund Vik f829735cc3 Misc fixes for Windows.
Most of these changes have to do with how python scripts are invoked.

For Linux, 'Popen([EMCC] + args)' works because the first line in emcc
is '#!/usr/bin/env python'. On Windows, the python interpreter has
to be explicitly invoked, e.g. 'Popen(['python', EMCC] + args)'. Note
that there is no harm in explicitly invoking the python interpreter
on Linux, so this works on both platforms.

For Windows, execvp() behaves differently than on Linux:
http://mail.python.org/pipermail/python-list/2002-July/763863.html
http://msdn.microsoft.com/en-us/library/3xw6zy53.aspx

This causes many strange things to happen as the parent process
terminated before its children. In this change the use of execvp()
has been replaced with subprocess.call().

This change also fixes some code that assumed that the path separator
always is '/', but for Windows it is '\'. And where the path module
can be required, we use path.normalize() and path.resolve() to check
if a filename is absolute in a platform agnostic manner.
2012-03-20 14:26:50 +01:00
Sigmund Vik fbb596d277 Renamed __except to __exceptXXX in libcxx/ios header to avoid compilation
errors on windows using clang version 3.0 (tags/RELEASE_30/final).  This
can be reverted once emscripten upgrades to clang 3.1.

For more details, please see:
http://comments.gmane.org/gmane.comp.compilers.clang.scm/41578
2012-03-20 13:10:15 +01:00
Alon Zakai f66a74ac34 add SDL_gfxPrimitives.h 2012-03-19 18:08:25 -07:00
Alon Zakai c89ace6de6 add SDL mixer and ttf headers 2012-03-19 18:02:36 -07:00
Alon Zakai aaa5e6acf9 headers fix 2012-03-19 16:49:59 -07:00
Alon Zakai 1a1d011c9b tweak building of libcxx to work around windows failure 2012-03-16 10:35:59 -07:00
Alon Zakai 470919bea9 almost working SDL_image test, just need async decoding 2012-03-15 16:49:37 -07:00
Alon Zakai 6342971b3e add some networking headers 2012-03-15 11:23:47 -07:00
Alon Zakai dd44676707 start filesystem descriptors at 1, since we intermix them with pointers, so keep 0 free as null 2012-03-10 20:46:28 -08:00
Alon Zakai 8a40a7eaa3 add unwind.h 2012-02-23 14:47:40 -08:00
Alon Zakai 02837b9218 misc library fixes for libcxxabi+test_typed_exceptions 2012-02-22 18:19:54 -08:00
Alon Zakai 2b8f77f6e3 add symbols for libcxxabi 2012-02-22 18:19:14 -08:00
Alon Zakai 2c14a7b749 use libcxxabi for dynamic_cast 2012-02-22 12:29:38 -08:00
Alon Zakai dd979ed995 bundle libcxxabi 2012-02-22 11:23:32 -08:00
Ehsan Akhgari 7e97c880b6 Always pick the JS implementation of uncaught_exception 2012-02-09 14:53:31 -05:00
Alon Zakai 7b088a2235 Merge pull request #239 from ehsan/ogre_upstream_2
Header additions for ogre
2012-02-09 11:01:01 -08:00
Ehsan Akhgari 0b6c2edd9b Add EGL headers 2012-02-09 13:59:06 -05:00
Ehsan Akhgari fb1f5b0bb7 Add gl2ext.h 2012-02-09 13:59:06 -05:00
Ehsan Akhgari 68755bd3af Implement std::uncaught_exception() in js 2012-02-09 13:52:42 -05:00
julien.hamaide 595717c22f Missing files
Fix to keep library.js unchanged
2012-02-08 13:59:06 +01:00
julien.hamaide 29fbebcc21 Fix libcxx locale (now use emscripten mask table ) 2012-02-07 13:22:39 +01:00
Alon Zakai 74b319a0a4 fix xlocale.h header 2012-02-02 16:23:37 -08:00
Alon Zakai 88c3f16304 Merge branch 'master' into llvmopts 2012-01-31 18:11:28 -08:00
Alon Zakai 4cca0de78b header fixes for building python from source 2012-01-31 10:59:36 -08:00
Ehsan Akhgari f4018dfb97 Make sure that sys/types.h defines old-style C sized types 2012-01-30 20:21:04 -05:00
Alon Zakai 687b8cfa3d Merge branch 'master' into llvmopts 2012-01-28 21:29:02 -08:00
Ehsan Akhgari 60f50b53e7 Use the freeglut header 2012-01-28 14:20:48 -05:00
Ehsan Akhgari 65febb8bf9 Merge branch 'handle_broken_lli' into glgears
Conflicts:
	src/preamble.js
2012-01-27 15:02:10 -05:00
Alon Zakai d57236a76b Merge branch 'master' into llvmopts 2012-01-25 18:40:31 -08:00
Alon Zakai 8d4226c06c improve nativize_llvm 2012-01-25 15:49:31 -08:00
Alon Zakai a6026f992e headers 2012-01-25 14:26:39 -08:00
Alon Zakai 5526b1d10e some headers 2012-01-25 14:19:48 -08:00
Ehsan Akhgari 93633b3bcc Add the glut header file 2012-01-23 17:28:47 -05:00
Ehsan Akhgari 08036c648c Add the GLES2 headers 2012-01-21 18:48:15 -05:00
Alon Zakai 02cf5021ed Merge branch 'master' into libcxx 2012-01-20 18:48:51 -08:00
Ehsan Akhgari 28273cd235 Add glext.h 2012-01-20 10:35:41 -05:00
Alon Zakai d7f770295c remove std::terminate from libc++ symbols; it isn't enough of a reason to include all of libc++ (if you need it, you also need set_terminate etc.) 2012-01-19 11:24:58 -08:00
Alon Zakai f0c1bdde63 move libc++ new into dlmalloc in terms of emcc library autolinking 2012-01-18 21:02:12 -08:00
Alon Zakai 28686e4941 move dlmalloc to system/lib 2012-01-18 19:39:01 -08:00
Alon Zakai a14d24ce9c Merge branch 'master' into libcxx 2012-01-18 15:21:52 -08:00
Alon Zakai 8069c3cd2a mman.h header fix 2012-01-18 13:30:09 -08:00
Alon Zakai dd68fbf78c further refactor the library scanning code, and prepare for libcxx 2012-01-18 10:40:29 -08:00
Alon Zakai 2a9a546698 add (unfiltered) libcxx symbols file 2012-01-17 19:15:08 -08:00
Alon Zakai 2c41ebb1e6 headers fix; libcxx now builds 2012-01-17 19:12:09 -08:00
Alon Zakai 8aeacb662b add stub for sys/sysctl.h 2012-01-17 19:09:22 -08:00
Alon Zakai c3be0254c5 preparations for libcxx building 2012-01-17 19:05:12 -08:00
Alon Zakai e9539c95b7 library fixes 2012-01-17 17:04:21 -08:00
Alon Zakai 76ddb80912 libc++ sources 2012-01-17 14:08:09 -08:00
Alon Zakai 7cef5581eb more xlocale.h stuff 2012-01-16 20:56:38 -08:00
Alon Zakai 3ca8dcd08e additional xlocale.h specs 2012-01-16 20:18:27 -08:00
Alon Zakai 1cb0ec225d restore libcxx to pristine state, undoing all our hacks, and work towards fixing test_exceptions given that 2012-01-16 16:25:08 -08:00
Jeff Terrace 89bc4f4a20 Update float.h to define FLT_ROUNDS 2012-01-13 17:32:11 -05:00
Alon Zakai 1be1e7a6d2 add some dirent.h stuff 2012-01-13 10:08:58 -08:00
Alon Zakai e02762158e Merge pull request #170 from FishingCactus/class_exception
Catching specific exception type now works
2012-01-12 11:59:50 -08:00
Alon Zakai 76b5adaf55 networking header additions 2012-01-12 11:32:59 -08:00
Alon Zakai aa5dfee7c6 some inet.h additions 2012-01-12 11:20:22 -08:00
Alon Zakai 3682e4b3b4 header fixes 2012-01-12 11:13:39 -08:00
julien.hamaide 664caa0c75 Catching specific exception type now works 2012-01-11 05:21:47 +01:00
Alon Zakai 6efa942efd add some GL headers 2012-01-05 17:38:41 -08:00
Alon Zakai 5ad5df53ba Merge pull request #162 from jterrace/incoming
Endianness, cross-compiling, and missing headers
2012-01-05 11:32:10 -08:00