From a84adcbb756f5048a9b847898845eb8bbba7dd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Sun, 23 Dec 2012 20:41:06 +0000 Subject: add generic setup() to hexloaded objects svn path=/trunk/externals/zexy/; revision=16753 --- src/0x260x260x7e.c | 7 +++++++ src/0x2e.c | 7 +++++++ src/0x3c0x7e.c | 7 +++++++ src/0x3d0x3d0x7e.c | 7 +++++++ src/0x3e0x7e.c | 7 +++++++ src/0x7c0x7c0x7e.c | 7 +++++++ 6 files changed, 42 insertions(+) (limited to 'src') diff --git a/src/0x260x260x7e.c b/src/0x260x260x7e.c index e11e0de..52dccd9 100644 --- a/src/0x260x260x7e.c +++ b/src/0x260x260x7e.c @@ -292,3 +292,10 @@ void setup_0x260x260x7e(void) zexy_register("&&~"); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x260x260x7e(); +} +#endif diff --git a/src/0x2e.c b/src/0x2e.c index e15f720..43b6444 100644 --- a/src/0x2e.c +++ b/src/0x2e.c @@ -169,3 +169,10 @@ void setup_0x2e(void) class_sethelpsymbol(scalmul_scal_class, gensym("scalarmult")); zexy_register("."); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x2e(); +} +#endif diff --git a/src/0x3c0x7e.c b/src/0x3c0x7e.c index b8012e1..681bdd9 100644 --- a/src/0x3c0x7e.c +++ b/src/0x3c0x7e.c @@ -248,3 +248,10 @@ void setup_0x3c0x7e(void) class_sethelpsymbol(scalarlt_tilde_class, gensym("zigbinops")); zexy_register("<~"); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x3c0x7e(); +} +#endif diff --git a/src/0x3d0x3d0x7e.c b/src/0x3d0x3d0x7e.c index 2bf3dbf..8f3b811 100644 --- a/src/0x3d0x3d0x7e.c +++ b/src/0x3d0x3d0x7e.c @@ -249,3 +249,10 @@ void setup_0x3d0x3d0x7e(void) zexy_register("==~"); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x3d0x3d0x7e(); +} +#endif diff --git a/src/0x3e0x7e.c b/src/0x3e0x7e.c index 82c681a..891b748 100644 --- a/src/0x3e0x7e.c +++ b/src/0x3e0x7e.c @@ -253,3 +253,10 @@ void setup_0x3e0x7e(void) zexy_register(">~"); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x3e0x7e(); +} +#endif diff --git a/src/0x7c0x7c0x7e.c b/src/0x7c0x7c0x7e.c index 3588c0f..b61d7b8 100644 --- a/src/0x7c0x7c0x7e.c +++ b/src/0x7c0x7c0x7e.c @@ -267,3 +267,10 @@ void setup_0x7c0x7c0x7e(void) zexy_register("||~"); } + +#ifndef ZEXY_LIBRARY +void setup(void) +{ + setup_0x7c0x7c0x7e(); +} +#endif -- cgit v1.2.1