RE: [ANN] s2n LuaJIT binding

  • From: William Adams <william_a_adams@xxxxxxxxxxx>
  • To: "luajit@xxxxxxxxxxxxx" <luajit@xxxxxxxxxxxxx>
  • Date: Fri, 3 Jul 2015 00:44:24 +0000


Thanks for that.  I'll change it.

-- William


===============================
- Shaping clay is easier than digging it out of the ground.


----------------------------------------

Date: Fri, 3 Jul 2015 01:09:12 +0200
From: mike-1507@xxxxxxxxxx
To: luajit@xxxxxxxxxxxxx
Subject: Re: [ANN] s2n LuaJIT binding

William Adams wrote:
The only interesting bit is the usage of ssize_t, which I defined as
int64_t, which may or may not be correct depending.

ssize_t is a POSIX thing and not in C89 or C99. Defining it as an
int64_t is wrong for 32 bit platforms. A better workaround is:

typedef intptr_t ssize_t;

That works on all platforms that LuaJIT supports or is likely to
ever support.

--Mike


Other related posts: