File: calling-convention-attributes.c

package info (click to toggle)
sparse 0.4.1%2Bgit20081218-1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze
  • size: 1,348 kB
  • ctags: 2,852
  • sloc: ansic: 25,201; perl: 236; makefile: 181; sh: 181
file content (26 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extern void __attribute__((cdecl)) c1(void);
typedef void (__attribute__((cdecl)) *c2)(void);
typedef c2 c2ptr;

extern void __attribute__((__cdecl__)) c_1(void);
typedef void (__attribute__((__cdecl__)) *c_2)(void);
typedef c_2 c_2ptr;

extern void __attribute__((stdcall)) s1(void);
typedef void (__attribute__((stdcall)) *s2)(void);
typedef s2 s2ptr;

extern void __attribute__((__stdcall__)) s_1(void);
typedef void (__attribute__((__stdcall__)) *s_2)(void);
typedef s_2 s_2ptr;

extern void __attribute__((fastcall)) f1(void);
typedef void (__attribute__((fastcall)) *f2)(void);
typedef f2 f2ptr;

extern void __attribute__((__fastcall__)) f_1(void);
typedef void (__attribute__((__fastcall__)) *f_2)(void);
typedef f_2 f_2ptr;
/*
 * check-name: Calling convention attributes
 */