1 /******************************************************************************
2 *
3 * Copyright (C) 2006, The Gentee Group. All rights reserved.
4 * This file is part of the Gentee open source project - http://www.gentee.com.
5 *
6 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
7 * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS
8 * ACCEPTANCE OF THE AGREEMENT.
9 *
10 * ID: number 18.10.06 0.0.A.
11 *
12 * Author: Alexey Krivonogov
13 *
14 * Summary: This file provides functionality for numbers.
15 *
16 ******************************************************************************/
17
18 #ifndef _NUMBER_
19 #define _NUMBER_
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif // __cplusplus
24
25 #include "types.h"
26
27 /*-----------------------------------------------------------------------------
28 *
29 * ID: number 23.10.06 0.0.A.
30 *
31 * Summary: The type of number
32 *
33 -----------------------------------------------------------------------------*/
34
35 typedef struct
36 {
37 uint type; // The type of the number T****
38 union {
39 uint vint;
40 ulong64 vlong;
41 float vfloat;
42 double vdouble;
43 };
44 } number, * pnumber;
45
46 pubyte STDCALL num_gethex( pubyte in, pnumber pnum, uint mode );
47 pubyte STDCALL num_getval( pubyte in, pnumber pnum );
48
49 //--------------------------------------------------------------------------
50
51 #ifdef __cplusplus
52 }
53 #endif // __cplusplus
54
55 #endif // _NUMBER_
56
Редактировать