summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-02 14:18:22 +0100
committerTyge Løvset <[email protected]>2022-01-02 14:18:22 +0100
commit9826f52e385e1ec019c63fd483f1c8acccf4a360 (patch)
tree415a95e035b35995781392f04cf0c0bcb986b41c /include/stc/cpque.h
parent8134d0f62ebc659741131eb79cec4fdcf5f774f7 (diff)
downloadSTC-modified-9826f52e385e1ec019c63fd483f1c8acccf4a360.tar.gz
STC-modified-9826f52e385e1ec019c63fd483f1c8acccf4a360.zip
Simplified and improved linkage configuration. Reorganized crandom.h a bit.
May define "i_opt c_shared", or "i_opt c_static" to specify individual container linkage, based on if STC_HEADER is defined, i.e static linkage is default, STC_HEADER defined makes shared symbols default.
Diffstat (limited to 'include/stc/cpque.h')
-rw-r--r--include/stc/cpque.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index 2347fc55..91d2ef04 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -20,10 +20,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
+#include "ccommon.h"
#ifndef CPQUE_H_INCLUDED
#include <stdlib.h>
-#include "ccommon.h"
#include "forward.h"
#endif
@@ -105,7 +105,7 @@ STC_INLINE void _cx_memb(_emplace)(_cx_self* self, _cx_raw raw)
#endif
/* -------------------------- IMPLEMENTATION ------------------------- */
-#if !defined(STC_SHARED) || c_option(c_static) || defined(STC_IMPLEMENTATION)
+#if defined(_i_implement)
STC_DEF void
_cx_memb(_sift_down_)(_cx_value* arr, const size_t idx, const size_t n) {
@@ -153,5 +153,5 @@ _cx_memb(_push)(_cx_self* self, _cx_value value) {
}
#endif
-#include "template.h"
#define CPQUE_H_INCLUDED
+#include "template.h"