diff options
| author | tylov <[email protected]> | 2023-07-23 23:43:55 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-23 23:43:55 +0200 |
| commit | 890e210893d96a6658a838331fa233b4a58723c7 (patch) | |
| tree | 02b7e0ff2b284eeeadb16caf1cc6f0475e304904 /include/stc/cdeq.h | |
| parent | 684769d5fb56c9ad4dadbca2ef872b49a8cdf695 (diff) | |
| download | STC-modified-890e210893d96a6658a838331fa233b4a58723c7.tar.gz STC-modified-890e210893d96a6658a838331fa233b4a58723c7.zip | |
Internal: Reorganized cqueue and cdeq: spliced out header and impl in cqueue.h to priv/cqueue_hdr.h and priv/cqueue_imp.h.
Diffstat (limited to 'include/stc/cdeq.h')
| -rw-r--r-- | include/stc/cdeq.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h index 056ef005..9892f6f1 100644 --- a/include/stc/cdeq.h +++ b/include/stc/cdeq.h @@ -20,16 +20,19 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ +#include "priv/linkage.h" + +#ifndef CDEQ_H_INCLUDED +#include "ccommon.h" +#include "forward.h" +#include <stdlib.h> +#include <string.h> +#endif // CDEQ_H_INCLUDED + #define _i_prefix cdeq_ #define _pop _pop_front #define _pull _pull_front -#ifdef i_more - #include "cqueue.h" - #define i_more -#else - #define i_more - #include "cqueue.h" -#endif +#include "priv/cqueue_hdr.h" #undef _pop STC_API _cx_value* _cx_MEMB(_push_front)(_cx_Self* self, i_key value); @@ -122,6 +125,8 @@ _cx_MEMB(_get_mut)(_cx_Self* self, _cx_raw raw) /* -------------------------- IMPLEMENTATION ------------------------- */ #if defined(i_implement) || defined(i_static) +#include "priv/cqueue_imp.h" + STC_DEF _cx_value* _cx_MEMB(_push_front)(_cx_Self* self, i_key value) { intptr_t start = (self->start - 1) & self->capmask; |
