view nt/ad2c.sed @ 3556:2161ac78b41e

[xemacs-hg @ 2006-08-11 17:37:17 by james] Prevent potential buffer overflows. Also enable use of shutdown() on linux. <m37j1jez4n.fsf@jerrypc.cs.usu.edu>
author james
date Fri, 11 Aug 2006 17:37:18 +0000
parents 4be1180a9e89
children
line wrap: on
line source

/^!/d
/^$/d
s/\\/\\\\/g
s/\\$//g
s/"/\\"/g
s/^/(String) "/
: test
/\\$/b slash
s/$/",/
p
d
: slash
n
/^!/d
/^$/d
s/"/\\"/g
s/\\\\/\\/g
s/\\n/\\\\n/g
s/\\t/\\\\t/g
s/\\f/\\\\f/g
s/\\b/\\\\b/g
b test