Mercurial > pub > dyncall > dyncall
view test/call_suite/rand-sig.lua @ 251:3f7c69fadfc3
- regression fix for changing writable to executable memory for platforms where
mmap has no MAP_ANON (usually older platforms, e.g. solaris 7)
author | Tassilo Philipp |
---|---|
date | Sun, 14 May 2017 02:26:21 +0200 |
parents | 3e629dc19168 |
children | 1cb8a65ea27f |
line wrap: on
line source
require"config" rtypes = "v"..types math.randomseed(2342) local sigs = { } local id for i = 1, ncases do id = math.random(#rtypes) local nargs = math.random(minargs,maxargs) local sig = { rtypes:sub(id,id)} for j = 1, nargs do id = math.random(#types) sig[#sig+1] = types:sub(id,id) end io.write(table.concat(sig)) io.write("\n") end