1 /* -*- mode: c; indent-tabs-mode: nil -*- */
6 * Copyright 2008 Massachusetts Institute of Technology.
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.
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.
28 * Internal declarations for the k5buf string buffer module.
34 #include "k5-platform.h"
37 /* The k5buf structure has funny field names to discourage callers
38 from violating the abstraction barrier. Define less funny names
40 #define buftype xx_buftype
42 #define space xx_space
45 #define DYNAMIC_INITIAL_SIZE 128
46 #define SPACE_MAX (SIZE_MAX / 2) /* rounds down, since SIZE_MAX is odd */
48 /* Buffer type values. */
49 enum { FIXED, DYNAMIC, ERROR };
51 #endif /* K5BUF_INT_H */