Very old versions for history.
[opsoft_archive.git] / silentbob / silentbob-1.1 / src / head.h
blobc29ee8a5753a12cd714f22057206c79e34ca3abc
1 /*
2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
4 *
5 */
7 #ifndef DEFINE_HEAD_H
8 #define DEFINE_HEAD_H
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <unistd.h>
13 #include <fcntl.h>
14 #include <dlib.h>
15 #include "structs.h"
16 #include "env.h"
17 #include "temp_names.h"
18 #include "proto.h"
20 enum {
21 SB_FLVERBOSE = 0,
22 SB_FLLINEAR,
23 SB_FLNOLINKS,
24 SB_FLSIMULATE,
25 SB_FLNOCSCOPE,
26 SB_FLTAGSTYLE,
27 SB_FLORIGINAL,
28 SB_FLFNAMES,
29 SB_FLALL,
30 SB_FLPERL,
31 SB_FLTEST,
32 SB_FLRTREE,
33 SB_FLCTAGSAPPEND
37 enum {
38 cmd_give_structs = 1,
39 cmd_file,
40 cmd_globals,
41 cmd_indent,
42 cmd_tags,
43 cmd_the_tt,
44 cmd_call_tags,
45 cmd_cgrep,
46 cmd_makectags,
49 #define SB_FLSET(arg) (ENV->sb_flags |= (1<<arg))
50 #define SB_FLGET(arg) (ENV->sb_flags & (1<<arg))
51 #define container_of(var, type) ((type) var)
53 #ifdef HAVE_CONFIG_H
54 # include <config.h>
55 #else
56 # define PACKAGE "silent_bob"
57 #endif
59 inline bool abc_test (char * ptr)
61 while (*ptr) {
62 if (if_abc (ptr))
63 return true;
64 ptr++;
66 return false;
69 #endif