Debian Codegraph @

vendor/onigmo-source/st.h

raw symbols SCIP
1 /* This is a public domain general purpose hash table package
2 originally written by Peter Moore @ UCB.
3
4 The hash table data strutures were redesigned and the package was
5 rewritten by Vladimir Makarov <[email protected]>. */
6
7 #ifndef RUBY_ST_H
8 #define RUBY_ST_Hcxx . . $ `vendor/onigmo-source/st.h:8:9`! 1
9
10 #if defined(__cplusplus)
11 extern "C" {
12 #if 0
13 } /* satisfy cc-mode */
14 #endif
15 #endif
16
17 #ifdef RUBY
18 #include "ruby/defines.h"
19 #else /* RUBY */
20 #ifndef RUBY_SYMBOL_EXPORT_BEGINcxx . . $ `vendor/onigmo-source/onigmo.h:64:11`!
21 #define RUBY_SYMBOL_EXPORT_BEGIN
22 #define RUBY_SYMBOL_EXPORT_END
23 #endif
24 #endif /* RUBY */
25
26 RUBY_SYMBOL_EXPORT_BEGINcxx . . $ `vendor/onigmo-source/onigmo.h:64:11`!
27
28 #if SIZEOF_LONGcxx . . $ `<built-in>:418:9`! == SIZEOF_VOIDPcxx . . $ `<built-in>:421:9`!
29 typedef unsigned long st_data_tcxx . . $ st_data_t#;
30 #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
31 typedef unsigned LONG_LONG st_data_t;
32 #else
33 # error ---->> st.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
34 #endif
35 #define ST_DATA_T_DEFINEDcxx . . $ `vendor/onigmo-source/st.h:35:9`!
36
37 #ifndef CHAR_BIT
38 # ifdef HAVE_LIMITS_H
39 # include <limits.h>
40 # else
41 # define CHAR_BITcxx . . $ `vendor/onigmo-source/st.h:41:11`! 8
42 # endif
43 #endif
44 #ifndef _
45 # define _cxx . . $ `vendor/onigmo-source/st.h:45:10`!(args) args
46 #endif
47 #ifndef ANYARGS
48 # ifdef __cplusplus
49 # define ANYARGS ...
50 # else
51 # define ANYARGScxx . . $ `vendor/onigmo-source/st.h:51:12`!
52 # endif
53 #endif
54
55 typedef struct st_tablecxx . . $ st_table# st_tablecxx . . $ st_table#;
56
57 typedef st_data_tcxx . . $ st_data_t# st_index_tcxx . . $ st_index_t#;
58
59 /* Maximal value of unsigned integer type st_index_t. */
60 #define MAX_ST_INDEX_VALcxx . . $ `vendor/onigmo-source/st.h:60:9`! (~(st_index_t) 0)
61
62 typedef int st_compare_funccxx . . $ st_compare_func#(st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#);
63 typedef st_index_tcxx . . $ st_index_t# st_hash_funccxx . . $ st_hash_func#(st_data_tcxx . . $ st_data_t#);
64
65 typedef char st_check_for_sizeof_st_index_tcxx . . $ st_check_for_sizeof_st_index_t#[SIZEOF_VOIDPcxx . . $ `<built-in>:421:9`! == (int)sizeof(st_index_tcxx . . $ st_index_t#) ? 1 : -1];
66 #define SIZEOF_ST_INDEX_Tcxx . . $ `vendor/onigmo-source/st.h:66:9`! SIZEOF_VOIDP
67
68 struct st_hash_typecxx . . $ st_hash_type# {
69 int (*comparecxx . . $ st_hash_type#compare.)(ANYARGScxx . . $ `vendor/onigmo-source/st.h:51:12`! /*st_data_t, st_data_t*/); /* st_compare_func* */
70 st_index_tcxx . . $ st_index_t# (*hashcxx . . $ st_hash_type#hash.)(ANYARGScxx . . $ `vendor/onigmo-source/st.h:51:12`! /*st_data_t*/); /* st_hash_func* */
71 };
72
73 #define ST_INDEX_BITScxx . . $ `vendor/onigmo-source/st.h:73:9`! (SIZEOF_ST_INDEX_T * CHAR_BIT)
74
75 #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR) && defined(HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P)
76 # define ST_DATA_COMPATIBLE_P(type) \
77 __builtin_choose_expr(__builtin_types_compatible_p(type, st_data_t), 1, 0)
78 #else
79 # define ST_DATA_COMPATIBLE_Pcxx . . $ `vendor/onigmo-source/st.h:79:10`!(type) 0
80 #endif
81
82 typedef struct st_table_entrycxx . . $ st_table_entry# st_table_entrycxx . . $ st_table_entry#;
83
84 struct st_table_entrycxx . . $ st_table_entry#; /* defined in st.c */
85
86 struct st_tablecxx . . $ st_table# {
87 /* Cached features of the table -- see st.c for more details. */
88 unsigned char entry_powercxx . . $ st_table#entry_power., bin_powercxx . . $ st_table#bin_power., size_indcxx . . $ st_table#size_ind.;
89 /* How many times the table was rebuilt. */
90 unsigned int rebuilds_numcxx . . $ st_table#rebuilds_num.;
91 const struct st_hash_typecxx . . $ st_hash_type# *typecxx . . $ st_table#type.;
92 /* Number of entries currently in the table. */
93 st_index_tcxx . . $ st_index_t# num_entriescxx . . $ st_table#num_entries.;
94 /* Array of bins used for access by keys. */
95 st_index_tcxx . . $ st_index_t# *binscxx . . $ st_table#bins.;
96 /* Start and bound index of entries in array entries.
97 entries_starts and entries_bound are in interval
98 [0,allocated_entries]. */
99 st_index_tcxx . . $ st_index_t# entries_startcxx . . $ st_table#entries_start., entries_boundcxx . . $ st_table#entries_bound.;
100 /* Array of size 2^entry_power. */
101 st_table_entrycxx . . $ st_table_entry# *entriescxx . . $ st_table#entries.;
102 };
103
104 #define st_is_membercxx . . $ `vendor/onigmo-source/st.h:104:9`!(table,key) st_lookup((table),(key),(st_data_t *)0)
105
106 enum st_retvalcxx . . $ st_retval# {ST_CONTINUEcxx . . $ ST_CONTINUE., ST_STOPcxx . . $ ST_STOP., ST_DELETEcxx . . $ ST_DELETE., ST_CHECKcxx . . $ ST_CHECK.};
107
108 st_tablecxx . . $ st_table# *st_init_tablecxx . . $ `vendor/onigmo-source/regint.h:176:10`!(const struct st_hash_typecxx . . $ st_hash_type# *);
109 st_tablecxx . . $ st_table# *st_init_table_with_sizecxx . . $ `vendor/onigmo-source/regint.h:177:10`!(const struct st_hash_typecxx . . $ st_hash_type# *, st_index_tcxx . . $ st_index_t#);
110 st_tablecxx . . $ st_table# *st_init_numtablecxx . . $ `vendor/onigmo-source/regint.h:178:10`!(void);
111 st_tablecxx . . $ st_table# *st_init_numtable_with_sizecxx . . $ `vendor/onigmo-source/regint.h:179:10`!(st_index_tcxx . . $ st_index_t#);
112 st_tablecxx . . $ st_table# *st_init_strtablecxx . . $ `vendor/onigmo-source/regint.h:180:10`!(void);
113 st_tablecxx . . $ st_table# *st_init_strtable_with_sizecxx . . $ `vendor/onigmo-source/regint.h:181:10`!(st_index_tcxx . . $ st_index_t#);
114 st_tablecxx . . $ st_table# *st_init_strcasetablecxx . . $ st_init_strcasetable(3550756526a2f02b).(void);
115 st_tablecxx . . $ st_table# *st_init_strcasetable_with_sizecxx . . $ st_init_strcasetable_with_size(a0d0106660aeca26).(st_index_tcxx . . $ st_index_t#);
116 int st_deletecxx . . $ `vendor/onigmo-source/regint.h:182:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t# *, st_data_tcxx . . $ st_data_t# *); /* returns 0:notfound 1:deleted */
117 int st_delete_safecxx . . $ `vendor/onigmo-source/regint.h:183:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t# *, st_data_tcxx . . $ st_data_t# *, st_data_tcxx . . $ st_data_t#);
118 int st_shiftcxx . . $ st_shift(907f2036be592bf8).(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t# *, st_data_tcxx . . $ st_data_t# *); /* returns 0:notfound 1:deleted */
119 int st_insertcxx . . $ `vendor/onigmo-source/regint.h:184:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#);
120 int st_insert2cxx . . $ st_insert2(fcb1a82045c6d9af).(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t# (*)(st_data_tcxx . . $ st_data_t#));
121 int st_lookupcxx . . $ `vendor/onigmo-source/regint.h:185:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t# *);
122 int st_get_keycxx . . $ st_get_key(86fb6c8e4d6ee4d4).(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t# *);
123 typedef int st_update_callback_funccxx . . $ st_update_callback_func#(st_data_tcxx . . $ st_data_t# *key, st_data_tcxx . . $ st_data_t# *value, st_data_tcxx . . $ st_data_t# arg, int existing);
124 /* *key may be altered, but must equal to the old key, i.e., the
125 * results of hash() are same and compare() returns 0, otherwise the
126 * behavior is undefined */
127 int st_updatecxx . . $ st_update(90745353215b0dee).(st_tablecxx . . $ st_table# *table, st_data_tcxx . . $ st_data_t# key, st_update_callback_funccxx . . $ st_update_callback_func# *func, st_data_tcxx . . $ st_data_t# arg);
128 int st_foreachcxx . . $ `vendor/onigmo-source/regint.h:186:10`!(st_tablecxx . . $ st_table# *, int (*)(ANYARGScxx . . $ `vendor/onigmo-source/st.h:51:12`!), st_data_tcxx . . $ st_data_t#);
129 int st_foreach_checkcxx . . $ st_foreach_check(ab86f49036f3a6e3).(st_tablecxx . . $ st_table# *, int (*)(ANYARGScxx . . $ `vendor/onigmo-source/st.h:51:12`!), st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#);
130 st_index_tcxx . . $ st_index_t# st_keyscxx . . $ st_keys(bb30b7cc49153063).(st_tablecxx . . $ st_table# *table, st_data_tcxx . . $ st_data_t# *keys, st_index_tcxx . . $ st_index_t# size);
131 st_index_tcxx . . $ st_index_t# st_keys_checkcxx . . $ st_keys_check(4318d6dfaa8fd2c4).(st_tablecxx . . $ st_table# *table, st_data_tcxx . . $ st_data_t# *keys, st_index_tcxx . . $ st_index_t# size, st_data_tcxx . . $ st_data_t# never);
132 st_index_tcxx . . $ st_index_t# st_valuescxx . . $ st_values(bb30b7cc49153063).(st_tablecxx . . $ st_table# *table, st_data_tcxx . . $ st_data_t# *values, st_index_tcxx . . $ st_index_t# size);
133 st_index_tcxx . . $ st_index_t# st_values_checkcxx . . $ st_values_check(4318d6dfaa8fd2c4).(st_tablecxx . . $ st_table# *table, st_data_tcxx . . $ st_data_t# *values, st_index_tcxx . . $ st_index_t# size, st_data_tcxx . . $ st_data_t# never);
134 void st_add_directcxx . . $ `vendor/onigmo-source/regint.h:187:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#);
135 void st_free_tablecxx . . $ `vendor/onigmo-source/regint.h:188:10`!(st_tablecxx . . $ st_table# *);
136 void st_cleanup_safecxx . . $ `vendor/onigmo-source/regint.h:189:10`!(st_tablecxx . . $ st_table# *, st_data_tcxx . . $ st_data_t#);
137 void st_clearcxx . . $ st_clear(7ca396bd81aa87b7).(st_tablecxx . . $ st_table# *);
138 st_tablecxx . . $ st_table# *st_copycxx . . $ `vendor/onigmo-source/regint.h:190:10`!(st_tablecxx . . $ st_table# *);
139 int st_numcmpcxx . . $ st_numcmp(8bdd4f646c1f3ab7).(st_data_tcxx . . $ st_data_t#, st_data_tcxx . . $ st_data_t#);
140 st_index_tcxx . . $ st_index_t# st_numhashcxx . . $ st_numhash(ecdaa1632f49f591).(st_data_tcxx . . $ st_data_t#);
141 int st_locale_insensitive_strcasecmpcxx . . $ st_locale_insensitive_strcasecmp(5ae29d726ae57f88).(const char *s1, const char *s2);
142 int st_locale_insensitive_strncasecmpcxx . . $ st_locale_insensitive_strncasecmp(fd278af2f295fa2e).(const char *s1, const char *s2, size_t n);
143 #define st_strcasecmpcxx . . $ `vendor/onigmo-source/st.h:143:9`! st_locale_insensitive_strcasecmp
144 #define st_strncasecmpcxx . . $ `vendor/onigmo-source/st.h:144:9`! st_locale_insensitive_strncasecmp
145 size_t st_memsizecxx . . $ st_memsize(70c77ce3238d41d4).(const st_tablecxx . . $ st_table# *);
146 st_index_tcxx . . $ st_index_t# st_hashcxx . . $ st_hash(2f17cf95f68cdac1).(const void *ptr, size_t len, st_index_tcxx . . $ st_index_t# h);
147 st_index_tcxx . . $ st_index_t# st_hash_uint32cxx . . $ st_hash_uint32(5f095f194b1adcd).(st_index_tcxx . . $ st_index_t# h, uint32_tcxx . . $ uint32_t# i);
148 st_index_tcxx . . $ st_index_t# st_hash_uintcxx . . $ st_hash_uint(80bad76eed2d2579).(st_index_tcxx . . $ st_index_t# h, st_index_tcxx . . $ st_index_t# i);
149 st_index_tcxx . . $ st_index_t# st_hash_endcxx . . $ st_hash_end(ecdaa1632f49f591).(st_index_tcxx . . $ st_index_t# h);
150 st_index_tcxx . . $ st_index_t# st_hash_startcxx . . $ st_hash_start(ecdaa1632f49f591).(st_index_tcxx . . $ st_index_t# h);
151 #define st_hash_startcxx . . $ `vendor/onigmo-source/st.h:151:9`!(h) ((st_index_t)(h))
152
153 RUBY_SYMBOL_EXPORT_ENDcxx . . $ `vendor/onigmo-source/onigmo.h:65:11`!
154
155 #if defined(__cplusplus)
156 #if 0
157 { /* satisfy cc-mode */
158 #endif
159 } /* extern "C" { */
160 #endif
161
162 #endif /* RUBY_ST_H */