Chad Austin
de9a8d6fec
make smart_ptr a method of class_ instead of a global
2013-04-12 14:25:46 +03:00
Chad Austin
495c40ce18
enable_if is scary and cool
2013-04-12 14:25:44 +03:00
Chad Austin
808e914ce1
Just toodling around with smart pointer binding syntax
2013-04-12 14:25:43 +03:00
Chad Austin
8a58711ab6
Throw an error if calling non-const methods on const objects.
2013-04-12 14:25:35 +03:00
Chad Austin
b2fb12ec07
I just learned about the sizeof... operator
2013-04-12 14:25:29 +03:00
Chad Austin
b72bbd3938
.field -> .property
2013-04-12 14:25:27 +03:00
Chad Austin
e698d8bbdb
classmethod -> class_function
2013-04-12 14:25:24 +03:00
Chad Austin
66b9991931
.method -> .function
2013-04-12 14:25:23 +03:00
Chad Austin
e7faeb6d50
reorder bindingtypes to make it easy to read
2013-04-12 14:25:15 +03:00
Chad Austin
3ac2105969
Kill the custom bindingtype for shared_ptr :)
2013-04-12 14:25:14 +03:00
Chad Austin
3dd168f24a
checkpoint work towards unifying the binding type for classes and smart pointers.
2013-04-12 14:25:12 +03:00
Chad Austin
6a0976ce2e
checkpoint work towards unifying the binding type for classes and smart pointers.
2013-04-12 14:25:11 +03:00
Chad Austin
6a1157c12b
Make it possible (again) to define a class before its base class is defined.
2013-04-12 14:25:06 +03:00
Chad Austin
ba6204bd5c
Rewrite how dependent type registrations are implemented. This reduces code size both in JS and C++. There are some known bugs. I'll get to those soon.
2013-04-12 14:25:02 +03:00
Chad Austin
8be7ebc9cc
Explicitly specify base classes. Alas, but it must be done for instanceof :(
2013-04-12 14:24:57 +03:00
Chad Austin
97373dc8c2
kinda start thinking about making isinstance work with base classes
2013-04-12 14:24:48 +03:00
Chad Austin
ececfcc02e
Add support for marshalling custom smart pointer types in and out of parameters.
2013-04-12 14:24:47 +03:00
Chad Austin
50c5092c4a
Kill the malloc(16) by writing a test with a 1 MB smart pointer type :)
2013-04-12 14:24:45 +03:00
Chad Austin
1a35260184
Preliminary support for custom smart pointers.
2013-04-12 14:24:44 +03:00
Chad Austin
067dbfd946
Mike Ey and I decided the smart pointer constructor form is different enough to deserve its own name.
2013-04-12 14:24:39 +03:00
Chad Austin
3adc0bd5ed
Turns out we can simplify and reuse a lot of code :o
2013-04-12 14:24:38 +03:00
Chad Austin
f23cc669e3
Add support for rvalue reference parameters on factories. I don't really understand this code.
2013-04-12 14:24:36 +03:00
Chad Austin
f22f586787
Apparently the WireType Marshaller is no longer necessary??
2013-04-12 14:24:34 +03:00
Chad Austin
612076a7cd
Kill a bunch of C-style casts
2013-04-12 14:24:33 +03:00
Chad Austin
088e1af2f1
allow specialization of get_element_type if using a smart pointer with a different mechanism for looking up the pointee type
2013-04-12 14:24:27 +03:00
Chad Austin
55ebc1f669
Rework how vectors and maps are bound: add bounds checking and return undefined if out of bounds.
2013-04-12 14:24:25 +03:00
Chad Austin
4185573aca
Support external raw pointer constructors.
2013-04-12 14:24:22 +03:00
Chad Austin
f7b5f283e1
Use length-prefix strings instead of null-terminated strings to support passing strings with embedded nul characters.
2013-04-12 14:24:12 +03:00
Chad Austin
78548810ba
Allow const non-member functions
2013-04-12 14:24:10 +03:00
Chad Austin
07cd277b4d
Use standard method machinery for array access.
2013-04-12 14:24:09 +03:00
Chad Austin
176000557d
allow non-member functions bound as methods.
2013-04-12 14:24:08 +03:00
Chad Austin
04d596f040
Replace operator call with a method invoking said operator call, so isinstance works again. When Function.create exists we can have the benefit of both worlds.
2013-04-12 14:24:06 +03:00
Chad Austin
68845c447d
fix a syntax error
2013-04-12 14:24:05 +03:00
Chad Austin
7d1614a3ee
simplify embind a bit and checkpoint progress towards external constructors
2013-04-12 14:24:03 +03:00
Bill Welden
88e9806813
Change register_smart_ptr to smart_ptr.
2013-04-12 14:24:02 +03:00
Chad Austin
dd618d24fc
implement an api for allowing JS subclasses of C++ interfaces
2013-04-12 14:23:59 +03:00
Bill Welden
51dfc764bd
Fix a couple of merge issues bringing down the lastest emscripten.
2013-04-12 14:23:57 +03:00
Chad Austin
771ee9e921
Fix a bunch of compiler warnings
2013-04-12 14:23:56 +03:00
Chad Austin
aef932e3a9
Bring back EMSCRIPTEN_KEEPALIVE
2013-04-12 14:23:55 +03:00
Chad Austin
848c186df3
Fix cxa_demangle compile errors
2013-04-12 14:23:53 +03:00
Chad Austin
70aebcde9e
EMSCRIPTEN_KEEPALIVE has been removed
2013-04-12 14:23:52 +03:00
Todd Lee
4fa56f7967
move vecFromJSArray from bind.h to val.h to make it unnecessary to include bind.h
2013-04-12 14:23:50 +03:00
Todd Lee
62b9f6a00f
header dependency fix
2013-04-12 14:23:49 +03:00
Andy Friesen
3b6ea45565
emscripten::internal::optional is now copyable.
...
Fix JSInterface::JSInterface copy constructor to take a const&
2013-04-12 14:23:47 +03:00
Bill Welden
c42eb7377e
Removed explicit cast capability from bindings.
2013-04-12 14:23:43 +03:00
Bill Welden
40ad51a5c8
Revert "register_smart_ptr changed to .shared_ptr (mod to class definition) -- shared_ptr (outside of class definition) is still allowed"
...
This reverts commit c38bb38e9d6393dfacb4afb0e9ba80ce42aee965.
2013-04-12 14:23:41 +03:00
Bill Welden
e5fca2885b
register_smart_ptr changed to .shared_ptr (mod to class definition) -- shared_ptr (outside of class definition) is still allowed
...
shared pointers passed by reference can be modified by the called code -- the change is now reflected at the Javascript calling level
other minor clean-up and small syntactic changes
2013-04-12 14:23:37 +03:00
Chad Austin
ba7a7200ec
Document operators that are not exposed
2013-04-12 14:23:34 +03:00
Chad Austin
50e05c30bf
Introduce val::new_ for constructor invocation
2013-04-12 14:23:30 +03:00
Chad Austin
bacb23ed1a
Kill eval_global_method: it's replaced with more primitives
2013-04-12 14:23:28 +03:00
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