#!/bin/sed -f 

s/ISDNPort:://g
s/p_isdn_ntmode/nt/g
s/p_isdn_mISDNport/bc->stack/g
s/enc_ie\(.*(.*\))/enc_ie\1, int nt, bchannel_te_t *bc)/
s/dec_ie\(.*(.*\))/dec_ie\1, int nt, bchannel_te_t *bc)/
s/UNCPY/strncpy/
s/UCPY/strcpy/
s/printerror/printf/
s/printisdn/if (DEBG) printf/
s/printdebug/if (DEBG) printf/
s/UPRINT/if (DEBG) printf/
s/\(^.*DEBUG_PORT\)/\/\/\1/
