1#!/bin/bash
2
3##########################################################################
4# Copyright (c) 2007, 2008, 2009, ETH Zurich.
5# All rights reserved.
6#
7# This file is distributed under the terms in the attached LICENSE file.
8# If you do not find this file, copies can be found by writing to:
9# ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
10##########################################################################
11
12FILES="../icparc_solver/ic.c ../icparc_solver/bitmap.c ../icparc_solver/edge_finder.c"
13echo "
14#include <dlfcn.h>
15"
16
17for f in $FILES; do
18#    sed -r -n -e 's/(^[a-zA-Z0-9_]+)\(.*\).*/extern void \1();/p' $f
19    sed -r -n -e 's/(^[a-zA-Z0-9_]+)\(.*/extern void \1();/p' $f
20done
21
22
23echo "
24struct function_entry funcs[] = {
25"
26
27for f in $FILES; do
28#    sed -r -n -e 's/(^[a-zA-Z0-9_]+)\(.*\).*/{.name="\1",.f=\1},/p' $f
29    sed -r -n -e 's/(^[a-zA-Z0-9_]+)\(.*/{.name="\1",.f=\1},/p' $f
30done
31
32echo "};"
33
34