lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Nov 17, 2011 at 6:39 PM, Jeff Pohlmeyer
<yetanothergeek@gmail.com> wrote:
> On Thu, Nov 17, 2011 at 9:58 AM, Natanael Copa wrote:
>
>> I created a lua-file-magic project on code.google.com:
>> http://code.google.com/p/lua-file-magic/
>
> Sweet!
>
> I'm getting a couple of warnings:
>
> magic.c: In function 'Pload':
> magic.c:118:19: warning: initialization discards 'const' qualifier
> from pointer target type [enabled by default]
> magic.c:119:2: warning: passing argument 2 of 'lua_pushstring' makes
> pointer from integer without a cast [enabled by default]
> /usr/include/lua.h:164:16: note: expected 'const char *' but argument
> is of type 'int'
>
>
> The attached patch fixes the the warning, now load() will return true
> on success;
> on failure it returns nil plus an error message.
>
> The patch also adds a primitive implementation for setflags()
>
>  - Jeff

Applied.

Implemented some more stuff and did an official 0.1 release :)

Thanks!

-- 
Natanael Copa