source: mainline/uspace/app/sbi/src/mytypes.h

Last change on this file was 10de842, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 8 years ago

Change the way errno_t is defined, and put libhttp and libext4 error codes in <errno.h>.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*
2 * Copyright (c) 2010 Jiri Svoboda
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef MYTYPES_H_
30#define MYTYPES_H_
31
32/** Boolean type compatible with builtin C 'boolean' operators. */
33typedef enum {
34 b_false = 0,
35 b_true = 1
36} bool_t;
37
38/** Node state for walks. */
39typedef enum {
40 ws_unvisited,
41 ws_active,
42 ws_visited
43} walk_state_t;
44
45/** Static vs. nonstatic */
46typedef enum {
47 sn_nonstatic,
48 sn_static
49} statns_t;
50
51/** Error return codes. */
52#include <errno.h>
53/** We need NULL defined. */
54#include <stddef.h>
55
56#ifndef EOK
57#define EOK 0
58#endif
59
60#include "bigint_t.h"
61#include "builtin_t.h"
62#include "cspan_t.h"
63#include "input_t.h"
64#include "intmap_t.h"
65#include "lex_t.h"
66#include "list_t.h"
67#include "parse_t.h"
68#include "rdata_t.h"
69#include "run_t.h"
70#include "stree_t.h"
71#include "strtab_t.h"
72#include "stype_t.h"
73#include "tdata_t.h"
74
75#endif
Note: See TracBrowser for help on using the repository browser.