mruby/mruby — pull request #30 by zunda (2012-04-21 03:26:17+00:00)
Title: Add a program `sizeof' to measure sizof(...) before preprocessing

SIZEOF_ST_INDEX_T seems to be missing its definition but is difficult to define dynamically as it will be used in #if. At least on NetBSD 4.0.1_PATCH amd64, gmake fails with the error like:
../../src/st.c:969:5: error: missing binary operator before token "("

This patch tries to run a small program `sizeof' before pre-processing the mruby source codes to define needed sizeof()'s into an additional header file, `sizeof.h'