public
/
Ack-5.5.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Pristine Ack-5.5
[Ack-5.5.git]
/
lang
/
cem
/
ctest
/
ctgen
/
ei.sed
1
1i\
2
/* A sample sed script to show the use of the 'ops' file.\
3
ops is converted into a test program for local integers \
4
*/
5
/LSTART/d
6
s/FN/main/
7
/ISTART/c\
8
int x=255 , y= -256 ;
9
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
10
/Z1/s/#/ %d&/
11
/Z1/s/@/, Z1&/
12
/Z2/s/#/ %d&/
13
/Z2/s/@/, Z2&/
14
/Z1/s/^/Z1 = 255 ; /
15
/Z2/s/^/Z2 = 255 ; /
16
/[XYZS]/s/^/ /
17
s/X/4/g
18
s/Y/5/g
19
s/S/15/g
20
s/Z1/x/g
21
s/Z2/y/g
22
s/#/\\n/
23
s/@//