]> git.sur5r.net Git - openldap/blob - include/lber_types.nt
Suck in lber types from lber.h (which were moved to lber_types.h.in).
[openldap] / include / lber_types.nt
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 /*
13  * LBER types for Windows NT (and Win32)
14  * copied by setup.mak to lber_types.h (when confingure is not used).
15  */
16
17 #ifndef _LBER_TYPES_H
18 #define _LBER_TYPES_H
19
20 /*
21  * NT types:
22  *
23  *      bitsof(short) == 2
24  *      bitsof(int)     == 4
25  *      bitsof(long) == 4
26  *
27  *  typedef unsigned int size_t;
28  *      typedef unsigned int SOCKET;
29  *
30  *      we use native C types to avoid sucking in system headers
31  */
32
33 /* LBER boolean, enum, integers - 32 bits or larger*/
34 #define LBER_INT_T      int
35
36 /* LBER tags - 32 bits or larger */
37 #define LBER_TAG_T      long
38
39 /* LBER socket descriptor */
40 #define LBER_SOCKET_T   unsigned int
41
42 /* LBER lengths - 32 bits or larger*/
43 #define LBER_LEN_T              int
44
45 /* ------------------------------------------------------------ */
46
47 /* booleans, enumerations, and integers */
48 typedef LBER_INT_T ber_int_t;
49
50 /* signed and unsigned versions */
51 typedef signed LBER_INT_T ber_sint_t;
52 typedef unsigned LBER_INT_T ber_uint_t;
53
54 /* tags */
55 typedef unsigned LBER_TAG_T ber_tag_t;
56
57 /* "socket" descriptors */
58 typedef LBER_SOCKET_T ber_socket_t;
59
60 /* lengths */
61 typedef unsigned LBER_LEN_T ber_len_t;
62
63 /* signed lengths */
64 typedef signed LBER_LEN_T ber_slen_t;
65
66 #endif /* _LBER_TYPES_H */