Gammu internals
1.38.0
WINT_T.c
Go to the documentation of this file.
1
#include <sys/types.h>
2
#include <stdint.h>
3
#include <stddef.h>
4
#include "wchar.h"
5
6
7
#undef KEY
8
#if defined(__i386)
9
# define KEY '_','_','i','3','8','6'
10
#elif defined(__x86_64)
11
# define KEY '_','_','x','8','6','_','6','4'
12
#elif defined(__ppc__)
13
# define KEY '_','_','p','p','c','_','_'
14
#elif defined(__ppc64__)
15
# define KEY '_','_','p','p','c','6','4','_','_'
16
#endif
17
18
#define SIZE (sizeof(wint_t))
19
char
info_size
[] = {
'I'
,
'N'
,
'F'
,
'O'
,
':'
,
's'
,
'i'
,
'z'
,
'e'
,
'['
,
20
(
'0'
+ ((
SIZE
/ 10000)%10)),
21
(
'0'
+ ((
SIZE
/ 1000)%10)),
22
(
'0'
+ ((
SIZE
/ 100)%10)),
23
(
'0'
+ ((
SIZE
/ 10)%10)),
24
(
'0'
+ (
SIZE
% 10)),
25
']'
,
26
#ifdef KEY
27
' '
,
'k'
,
'e'
,
'y'
,
'['
, KEY,
']'
,
28
#endif
29
'\0'
};
30
31
#ifdef __CLASSIC_C__
32
int
main
(argc, argv)
int
argc;
char
*argv[];
33
#else
34
int
main
(
int
argc,
char
*argv[])
35
#endif
36
{
37
int
require = 0;
38
require +=
info_size
[argc];
39
(void)argv;
40
return
require;
41
}
info_size
char info_size[]
Definition:
WINT_T.c:19
SIZE
#define SIZE
Definition:
WINT_T.c:18
main
int main(int argc, char *argv[])
Definition:
WINT_T.c:34
CMakeFiles
CheckTypeSize
WINT_T.c
Generated on Wed Nov 16 2016 13:39:20 for Gammu internals by
1.8.12