| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
typedef unsigned short U16; |
| 8 |
typedef signed int int32_t; |
| 9 |
|
| 10 |
|
| 11 |
al: åäö */ |
| 12 |
|
| 13 |
typedef struct _POINT_T |
| 14 |
{ |
| 15 |
int x; |
| 16 |
int y; |
| 17 |
} POINT_T; |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
typedef void VOID_TYPE_CRAZINESS; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
void var_args1(int a, ...); |
| 26 |
void var_args2(int a, int b, ...); |
| 27 |
|
| 28 |
VOID_TYPE_CRAZINESS void_type_craziness1(int, float, double, char, short, long, long int, long long, void*); |
| 29 |
int void_type_craziness2( VOID_TYPE_CRAZINESS ); |
| 30 |
|
| 31 |
void crazy_whitespace ( int lint, double shot , short stack ) ; |
| 32 |
|
| 33 |
char |
| 34 |
crazy_multiline |
| 35 |
( |
| 36 |
int a, |
| 37 |
unsigned int b); |
| 38 |
|
| 39 |
|
| 40 |
static const unsigned int foo = (1); |
| 41 |
|
| 42 |
U16 *ptr_return1(int a); |
| 43 |
U16* ptr_return2(int a); |
| 44 |
U16 * ptr_return3(int a); |
| 45 |
|
| 46 |
unsigned int** ptr_ptr_return1(unsigned int** a); |
| 47 |
unsigned int* *ptr_ptr_return2(unsigned int* *a); |
| 48 |
unsigned int **ptr_ptr_return3(unsigned int **a); |
| 49 |
unsigned int ** ptr_ptr_return4(unsigned int ** a); |
| 50 |
|
| 51 |
extern unsigned long int incredible_descriptors(register const unsigned short a); |
| 52 |
|
| 53 |
int32_t example_c99_type(int32_t param1); |
| 54 |
|
| 55 |
void I2CIntRegister(uint32_t ui32Base, void (*pfnHandler)(void)); |
| 56 |
|
| 57 |
|
| 58 |
int (* func_pointer)(void); |
| 59 |
extern int (*another_func_pointer)(unsigned int argument); |
| 60 |
struct struct_to_be_ignored { |
| 61 |
union { |
| 62 |
int i32; |
| 63 |
void *p; |
| 64 |
} variant; |
| 65 |
void (*a_function_pointer_in_a_struct)(void *); |
| 66 |
}; |
| 67 |
|
| 68 |
typedef struct |
| 69 |
{ |
| 70 |
uint32_t a; |
| 71 |
struct |
| 72 |
{ |
| 73 |
uint32_t bb; |
| 74 |
float bc; |
| 75 |
float bd; |
| 76 |
} b; |
| 77 |
int (*another_function_pointer_in_a_struct) (void); |
| 78 |
} another_thing_that_should_get_ignored; |
| 79 |
|
| 80 |
inline int stuff(int num) |
| 81 |
{ |
| 82 |
int reg = 0x12; |
| 83 |
if (num > 0) |
| 84 |
{ |
| 85 |
reg |= (0x0Eu); |
| 86 |
} |
| 87 |
else |
| 88 |
{ |
| 89 |
reg |= (0x07u); |
| 90 |
} |
| 91 |
return reg; |
| 92 |
} |