libuv/include
Ben Noordhuis 3ee4d3f183 unix, windows: return error codes directly
This commit changes the libuv API to return error codes directly rather
than storing them in a loop-global field.

A code snippet like this one:

    if (uv_foo(loop) < 0) {
      uv_err_t err = uv_last_error(loop);
      fprintf(stderr, "%s\n", uv_strerror(err));
    }

Should be rewritten like this:

    int err = uv_foo(loop);
    if (err < 0)
      fprintf(stderr, "%s\n", uv_strerror(err));

The rationale for this change is that it should make creating bindings
for other languages a lot easier: dealing with struct return values is
painful with most FFIs and often downright buggy.
2013-07-07 09:51:00 +02:00
..
pthread-fixes.h build: switch to autotools 2013-07-02 01:21:16 +02:00
stdint-msvc2008.h build: switch to autotools 2013-07-02 01:21:16 +02:00
tree.h build: switch to autotools 2013-07-02 01:21:16 +02:00
uv-bsd.h build: switch to autotools 2013-07-02 01:21:16 +02:00
uv-darwin.h linux,darwin,win: link-local IPv6 addresses 2013-07-04 15:43:20 +02:00
uv-errno.h unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
uv-linux.h linux,darwin,win: link-local IPv6 addresses 2013-07-04 15:43:20 +02:00
uv-sunos.h build: switch to autotools 2013-07-02 01:21:16 +02:00
uv-unix.h build: switch to autotools 2013-07-02 01:21:16 +02:00
uv-win.h unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
uv.h unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00