summaryrefslogtreecommitdiff
path: root/volk/gen/make_c.py
diff options
context:
space:
mode:
authorJosh Blum2011-05-06 12:41:16 -0700
committerJosh Blum2011-05-06 12:41:16 -0700
commit5b4c7d27e9d49ab58df1f1d9350dcaf64c60a1ce (patch)
treef90d624a0e9973cd5876030c862395466b6ba64d /volk/gen/make_c.py
parent12413747c90754482582e16c95b551e1b36c6074 (diff)
downloadgnuradio-5b4c7d27e9d49ab58df1f1d9350dcaf64c60a1ce.tar.gz
gnuradio-5b4c7d27e9d49ab58df1f1d9350dcaf64c60a1ce.tar.bz2
gnuradio-5b4c7d27e9d49ab58df1f1d9350dcaf64c60a1ce.zip
volk: top-level common header cleanup
Since we already have a volk_common.h, moved the attributes, API declaration, and c-linkage macros into volk_common.h This change removes volk_attributes.h, in favor of one common include header. The implementation headers that require attributes now include volk_common.h This change removes the emit_omnilog.py script, in favor of pre-processor macros in volk_common.h In addition, extern C is only defined when in C++ and in GCC because non-GCC does not have complex.h
Diffstat (limited to 'volk/gen/make_c.py')
-rw-r--r--volk/gen/make_c.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/volk/gen/make_c.py b/volk/gen/make_c.py
index 3fe604f39..4e67f31ff 100644
--- a/volk/gen/make_c.py
+++ b/volk/gen/make_c.py
@@ -17,7 +17,6 @@
from volk_regexp import *
import string
-from emit_omnilog import *
#ok todo list:
#put n_archs into the info struct so it doesn't have to be arch_defs[0].
@@ -38,8 +37,7 @@ def make_c(machines, archs, functions, arched_arglist, my_arglist):
#include <string.h>
"""
- tempstring += emit_prolog();
-
+
#OK here's the deal. the .h prototypes the functions. the .c impls them as fptrs, can use p_whatever.
#also .c impls the get_machine call
#also .c impls the default call for each fn
@@ -93,8 +91,6 @@ static unsigned int get_index(const char *indices[], unsigned int n_archs, const
tempstring += " struct volk_func_desc desc = {get_machine()->%s_indices, get_machine()->%s_arch_defs, get_machine()->%s_n_archs};\n" % (functions[i], functions[i], functions[i])
tempstring += " return desc;\n}\n"
- tempstring += emit_epilog();
-
return tempstring