Package: libtolua-dev
Version: 5.1b-3
Severity: normal

If "tolua" is given a cleaned up header file for a module which
contains multiple "typedef struct..." declarations that have members
with same names, like this:

module test {
        typedef struct {
                int x;
                int y;
                int w;
                int h;
                int color;
        } box_t;
        extern void draw_box(box_t *box);

        typedef struct {
                int x;
                int y;
                int r;
                int color;
        } circle_t;
        extern void draw_circle(circle_t *circle);
}

...the compilation of the generated code will fail.  Tolua doesn't
give wrappers for these members different names, either by using
a running index for them, or by adding the structure name to
the wrapper name.

Note1: If one doesn't put these structures within the same module,
then tolua adds the type name to the function names and everything
is "fine" (but then results these are global and not within module).

Note2: Compiling the code generated by tolua for Lua v4 worked fine,
so this seems like regression (I didn't test whether the result
worked OK though, as I'm unfamiliar with Lua).


-- System Information:
Debian Release: 5.0.2
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libtolua-dev depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  liblua5.1-0                   5.1.3-1    Simple, extensible, embeddable pro
ii  liblua5.1-0-dev               5.1.3-1    Simple, extensible, embeddable pro

libtolua-dev recommends no packages.

libtolua-dev suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to