fix trailing whitespace
[krb5.git] / src / util / support / k5buf-int.h
1 /* -*- mode: c; indent-tabs-mode: nil -*- */
2
3 /*
4  * k5buf-int.h
5  *
6  * Copyright 2008 Massachusetts Institute of Technology.
7  * All Rights Reserved.
8  *
9  * Export of this software from the United States of America may
10  *   require a specific license from the United States Government.
11  *   It is the responsibility of any person or organization contemplating
12  *   export to obtain such a license before exporting.
13  *
14  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
15  * distribute this software and its documentation for any purpose and
16  * without fee is hereby granted, provided that the above copyright
17  * notice appear in all copies and that both that copyright notice and
18  * this permission notice appear in supporting documentation, and that
19  * the name of M.I.T. not be used in advertising or publicity pertaining
20  * to distribution of the software without specific, written prior
21  * permission.  Furthermore if you modify this software you must label
22  * your software as modified software and not distribute it in such a
23  * fashion that it might be confused with the original M.I.T. software.
24  * M.I.T. makes no representations about the suitability of
25  * this software for any purpose.  It is provided "as is" without express
26  * or implied warranty.
27  *
28  * Internal declarations for the k5buf string buffer module.
29  */
30
31 #ifndef K5BUF_INT_H
32 #define K5BUF_INT_H
33
34 #include "k5-platform.h"
35 #include "k5-buf.h"
36
37 /* The k5buf structure has funny field names to discourage callers
38    from violating the abstraction barrier.  Define less funny names
39    for them here. */
40 #define buftype xx_buftype
41 #define data xx_data
42 #define space xx_space
43 #define len xx_len
44
45 #define DYNAMIC_INITIAL_SIZE 128
46 #define SPACE_MAX (SIZE_MAX / 2) /* rounds down, since SIZE_MAX is odd */
47
48 /* Buffer type values. */
49 enum { FIXED, DYNAMIC, ERROR };
50
51 #endif /* K5BUF_INT_H */