raze-gles/polymer/eduke32/source/lunatic
helixhorned 4e5cdba646 Lose the 'packed' attribute for types declared in build.h.
Most of them are already aligned to their natural boundaries, so lowering
the alignment to 1 byte can only worsen things by making the C compiler
generate poorer (unaligned access) code for some platforms.

The layout of structures is not specified by the C Standard, but is rather
given by a particular platform + toolchain's ABI (application binary interface).
Most ABIs follow the expected pattern "alignment of scalars is their size,
alignment of arrays is that of its element type, alignment of structs is the
maximum alignment of its members". A couple of links to particular ABIs are
given in build.h.

Problems are expected with archs that care about unaligned access when a pointer
to a non-packed struct is taken that resides in a packed aggregate, but these
uses should be weeded out (I'm not sure if there are any in our codebase).

The following types are affected, only hitdata_t changes its size:
sectortype, walltype, spritetype, spriteext_t, spritesmooth_t,
struct validmode_t, picanm_t, palette_t, vec2_t, vec3_t, hitdata_t.

git-svn-id: https://svn.eduke32.com/eduke32@3455 1a8010ca-5511-0410-912e-c29ae57300e0
2013-02-03 12:48:11 +00:00
..
m32 Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
test Lunatic: sync with preceding change, complete two commands. 2013-01-24 20:02:57 +00:00
bcarray.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
bcheck.lua Lunatic (translator): provide checked write access to a couple more members. 2013-02-01 13:05:00 +00:00
bigytiles.lua Fix build.lua's loadarts(), add bigytiles.lua. 2012-12-23 14:00:00 +00:00
bitar.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
bittest.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
build.lua Fix build.lua's loadarts(), add bigytiles.lua. 2012-12-23 14:00:00 +00:00
con_lang.lua Lunatic translator: codegen for actor-tsprite accesses, sync some RO members. 2013-02-03 12:48:06 +00:00
control.lua Lunatic: Centralize all bound-checking in bcheck.lua. 2013-02-01 13:04:56 +00:00
defs.ilua Lunatic translator: codegen for actor-tsprite accesses, sync some RO members. 2013-02-03 12:48:06 +00:00
defs_common.lua Lose the 'packed' attribute for types declared in build.h. 2013-02-03 12:48:11 +00:00
defs_m32.ilua Lunatic: provide access to actor-tsprite. 2013-02-01 13:05:20 +00:00
dynsymlist Lunatic: provide access to actor-tsprite. 2013-02-01 13:05:20 +00:00
dynsymlist_m32 Lunatic: provide access to actor-tsprite. 2013-02-01 13:05:20 +00:00
findmaps.sh Lunatic: update structures, find maps case-insensitively in findmaps.sh. 2012-11-03 19:32:43 +00:00
foreachmap.lua build.lua: provide simplistic "readdefs()", use in foreachmap.lua. 2012-11-18 19:01:39 +00:00
geom.lua Lunatic: prefer to use ctype objects instead of C type strings. 2013-01-26 17:07:53 +00:00
listglobals.sh Lunatic: gasping for some air. 2012-12-09 13:24:28 +00:00
lunacon.lua Lunatic translator: codegen for actor-tsprite accesses, sync some RO members. 2013-02-03 12:48:06 +00:00
lunatic_game.c Lunatic: grabbag of different things. 2013-01-05 13:09:31 +00:00
lunatic_game.h Lunatic: print -> OSD_Printf, error reporting. 2012-12-25 16:13:41 +00:00
lunatic_m32.c Lunatic: fix stack discipline. 2013-01-01 15:24:11 +00:00
lunatic_m32.h Lunatic reorganization part 2: split into engine and editor/game parts. 2012-11-10 20:59:00 +00:00
map2text.lua build.lua map loader: add the option of canonicalizing sprite order. 2012-08-26 22:13:57 +00:00
mapastats.lua Lunatic: add 'stat' module for running statistics. 2012-08-02 10:52:32 +00:00
mapdiff.sh build.lua map loader: add the option of canonicalizing sprite order. 2012-08-26 22:13:57 +00:00
mapstats.lua Add ART loader for the LuaJIT BUILD struct loader module, 2 more examples. 2012-07-08 21:47:11 +00:00
mapypan.lua Add ART loader for the LuaJIT BUILD struct loader module, 2 more examples. 2012-07-08 21:47:11 +00:00
profdemo.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
randgen.lua Lunatic: better protection of array members inside structs. 2012-11-25 13:18:52 +00:00
stat.lua Lunatic: a couple of small changes. 2013-01-06 18:56:45 +00:00
strict.lua Lunatic t.: handle prefix-problematic commands for real, definelevelname, ... 2012-06-17 19:45:37 +00:00
test.elua Lunatic translator: codegen for actor-tsprite accesses, sync some RO members. 2013-02-03 12:48:06 +00:00