Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNAerator fails on specific typedef/struct definition #449

Closed
ghost opened this issue Sep 25, 2013 · 1 comment
Closed

JNAerator fails on specific typedef/struct definition #449

ghost opened this issue Sep 25, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 25, 2013

With jnaerator-0.12-SNAPSHOT-20130727.jar, and options:

-v -o "test"  -f  -library Test  test.h  -mode Directory  -noLibBundle  -runtime JNA

The following test.h file:

typedef struct myStruct
{
  char typeName[120];
} Mine;

_jnaerator.preprocessed.c looks like this (Good):

#line 1 "C:\\Sagem-ID\\JNA\\test.h" 1
typedef struct myStruct
{
  char typeName[120];
} Mine;

_jnaerator.rawParsed.cpp looks like this (NOT GOOD):

[] ();
 Mine;

_jnaerator.normalizedParsed.cpp:

/** Original signature : <code>[] null()</code> */
[] ();
 Mine;

_jnaerator.macros.cpp:

__STDC__=__STDC__ => 1
__LINE__=__LINE__
HAVE_PROTOTYPES=HAVE_PROTOTYPES => 1
STDC_HEADERS=STDC_HEADERS => 1
TARGET_CPU_X86=TARGET_CPU_X86 => 1
__LITTLE_ENDIAN__=__LITTLE_ENDIAN__ => 1
_WIN32=_WIN32 => 1
_M_I86=_M_I86 => 1
NDEBUG=NDEBUG => 1
_NATIVE_WCHAR_T_DEFINED=_NATIVE_WCHAR_T_DEFINED => 1
__COUNTER__=__COUNTER__
__i386__=__i386__ => 1
_WCHAR_T_DEFINED=_WCHAR_T_DEFINED => 1
M_I86=M_I86 => 1
G_BYTE_ORDER=G_BYTE_ORDER => 1234
_MSC_VER=_MSC_VER => 1100
WIN32_LEAN_AND_MEAN=WIN32_LEAN_AND_MEAN => 1
__attribute__=__attribute__(x)
__FILE__=__FILE__
_CHAR_UNSIGNED=_CHAR_UNSIGNED => 1
WINAPI=WINAPI => __stdcall
__cplusplus=__cplusplus => 1

_jnaerator.choices:

<This file is 0 bytes / empty>
ochafik added a commit that referenced this issue Sep 26, 2013
@ochafik
Copy link
Member

ochafik commented Sep 26, 2013

Hi @cranphin,

Thanks for your report!
This is fixed in the latest snapshot.

Cheers

@ochafik ochafik closed this as completed Sep 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant