1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008 - 2009
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE included in
* the packaging of this file.
|
|
|
1
2
3
4
5
6
7
8
9
|
/*
* Copyright (c) 2008 - 2010
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* This file is part of ObjFW. It may be distributed under the terms of the
* Q Public License 1.0, which can be found in the file LICENSE included in
* the packaging of this file.
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
OF_NUMBER_PTRDIFF,
OF_NUMBER_INTPTR,
OF_NUMBER_FLOAT,
OF_NUMBER_DOUBLE,
};
/**
* The OFNumber class provides a way to store a number in an object and to
* manipulate it.
*/
@interface OFNumber: OFObject
{
union {
char char_;
short short_;
int int_;
|
|
<
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
OF_NUMBER_PTRDIFF,
OF_NUMBER_INTPTR,
OF_NUMBER_FLOAT,
OF_NUMBER_DOUBLE,
};
/**
* \brief Provides a way to store a number in an object.
*/
@interface OFNumber: OFObject
{
union {
char char_;
short short_;
int int_;
|