Skip to content

Commit

Permalink
Allow incorrect typedef with va_list
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard-ryan-immersaview committed May 27, 2024
1 parent 887da03 commit eba5eed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/expectations/va_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

typedef int32_t (*VaListFnPtr)(va_list);

typedef int32_t (*VaListFnPtr2)(va_list);
typedef int32_t (*VaListFnPtr2)(void);

int32_t va_list_test(va_list ap);

int32_t va_list_test2(va_list ap);

void va_list_fn_ptrs(int32_t (*ptr1)(va_list),
int32_t (*ptr2)(va_list),
int32_t (*ptr2)(void),
VaListFnPtr ptr3,
VaListFnPtr2 ptr4);
4 changes: 2 additions & 2 deletions tests/expectations/va_list.compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

typedef int32_t (*VaListFnPtr)(va_list);

typedef int32_t (*VaListFnPtr2)(va_list);
typedef int32_t (*VaListFnPtr2)(void);

#ifdef __cplusplus
extern "C" {
Expand All @@ -16,7 +16,7 @@ int32_t va_list_test(va_list ap);
int32_t va_list_test2(va_list ap);

void va_list_fn_ptrs(int32_t (*ptr1)(va_list),
int32_t (*ptr2)(va_list),
int32_t (*ptr2)(void),
VaListFnPtr ptr3,
VaListFnPtr2 ptr4);

Expand Down
4 changes: 2 additions & 2 deletions tests/expectations/va_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using VaListFnPtr = int32_t(*)(va_list);

using VaListFnPtr2 = int32_t(*)(va_list);
using VaListFnPtr2 = int32_t(*)();

extern "C" {

Expand All @@ -15,7 +15,7 @@ int32_t va_list_test(va_list ap);
int32_t va_list_test2(va_list ap);

void va_list_fn_ptrs(int32_t (*ptr1)(va_list),
int32_t (*ptr2)(va_list),
int32_t (*ptr2)(),
VaListFnPtr ptr3,
VaListFnPtr2 ptr4);

Expand Down
4 changes: 2 additions & 2 deletions tests/expectations/va_list.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ cdef extern from *:

ctypedef int32_t (*VaListFnPtr)(va_list);

ctypedef int32_t (*VaListFnPtr2)(va_list);
ctypedef int32_t (*VaListFnPtr2)();

int32_t va_list_test(va_list ap);

int32_t va_list_test2(va_list ap);

void va_list_fn_ptrs(int32_t (*ptr1)(va_list),
int32_t (*ptr2)(va_list),
int32_t (*ptr2)(),
VaListFnPtr ptr3,
VaListFnPtr2 ptr4);

0 comments on commit eba5eed

Please sign in to comment.