Changeset 253 for trunk/include/void_stack.h
- Timestamp:
- 06/12/11 22:27:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/void_stack.h
r201 r253 34 34 #include <talloc.h> 35 35 36 /* GCC-specific macro for library exports */ 37 #ifdef _EXPORT 38 #undef _EXPORT 39 #endif 40 #define _EXPORT __attribute__((visibility("default"))) 36 #include "compat.h" 41 37 42 38 /** XXX: document this. */ … … 65 61 * or NULL if an error occurred. 66 62 */ 67 _EXPORT 63 _EXPORT() 68 64 void_stack* void_stack_new(unsigned short max_size); 69 65 … … 75 71 * @return a pointer to the duplicate void_stack, or NULL if an error occurred. 76 72 */ 77 _EXPORT 73 _EXPORT() 78 74 void_stack* void_stack_copy(const void_stack* v); 79 75 … … 86 82 * (which will be in reverse order), or NULL if an error occurred. 87 83 */ 88 _EXPORT 84 _EXPORT() 89 85 void_stack* void_stack_copy_reverse(const void_stack* v); 90 86 … … 95 91 * @param stack the stack to be free()d. 96 92 */ 97 _EXPORT 93 _EXPORT() 98 94 void void_stack_free(void_stack* stack); 99 95 … … 108 104 * @param stack the stack to be free()d. 109 105 */ 110 _EXPORT 106 _EXPORT() 111 107 void void_stack_free_deep(void_stack* stack); 112 108 … … 118 114 * @return the number of elements currently on the stack. 119 115 */ 120 _EXPORT 116 _EXPORT() 121 117 unsigned short void_stack_size(const void_stack* stack); 122 118 … … 129 125 * on the stack. 130 126 */ 131 _EXPORT 127 _EXPORT() 132 128 void* void_stack_pop(void_stack* stack); 133 129 … … 140 136 * @return true if the element was successfully added, false otherwise. 141 137 */ 142 _EXPORT 138 _EXPORT() 143 139 bool void_stack_push(void_stack* stack, void* e); 144 140 … … 151 147 * no elements exist in the stack. 152 148 */ 153 _EXPORT 149 _EXPORT() 154 150 const void* void_stack_cur(const void_stack* stack); 155 151 … … 161 157 * @return a new void_stack_iterator, or NULL if an error occurred. 162 158 */ 163 _EXPORT 159 _EXPORT() 164 160 void_stack_iterator* void_stack_iterator_new(const void_stack* stack); 165 161 … … 171 167 * @param iter the void_stack_iterator to be free()d. 172 168 */ 173 _EXPORT 169 _EXPORT() 174 170 void void_stack_iterator_free(void_stack_iterator* iter); 175 171 … … 183 179 * @return a pointer to the next element. 184 180 */ 185 _EXPORT 181 _EXPORT() 186 182 const void* void_stack_iterator_next(void_stack_iterator* iter); 187 183
Note: See TracChangeset
for help on using the changeset viewer.