diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-06 14:42:44 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-06 14:42:44 -0400 |
commit | 2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d (patch) | |
tree | 3812b4eaa09abf050b96404a615e18e95199966b /lib/stack.h | |
parent | 45faadfe2ddd0361d0268f836529c25e11f333b4 (diff) | |
download | c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.tar.gz c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.tar.bz2 c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.zip |
rewrote wolff in c++ with templates so that any system can be run with it
Diffstat (limited to 'lib/stack.h')
-rw-r--r-- | lib/stack.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/stack.h b/lib/stack.h index a354ab5..8d25aff 100644 --- a/lib/stack.h +++ b/lib/stack.h @@ -8,6 +8,11 @@ #include "types.h" + +#ifdef __cplusplus +extern "C" { +#endif + typedef struct ll_tag { v_t x; struct ll_tag *next; @@ -24,3 +29,7 @@ void stack_push_d(dll_t **q, double x); v_t stack_pop(ll_t **q); double stack_pop_d(dll_t **q); +#ifdef __cplusplus +} +#endif + |