aboutsummaryrefslogblamecommitdiffstats
path: root/genheader.sh
blob: 5146af1d7a8e208e6c8418c019689da49a01163b (plain) (tree)
1
2
3
4
         
                                  

                                                                                                   
#!/bin/sh
L=$(grep -c '^.*$' libhashtable.c)
cat libhashtable.c | grep -A "$L" _A_ | grep -B "$L" _B_ | grep -v "_[AB]_" > hashtable.h
cat libhashtable.c | grep '(.*) *{' | egrep -v 'switch|if|for|while' | sed 's/ {/;/' >> hashtable.h