Reid Spencer | 2461b73 | 2006-11-04 00:49:52 +0000 | [diff] [blame^] | 1 | #!/bin/sh |
2 | # | ||||
3 | # Program: notcast | ||||
4 | # | ||||
5 | # Synopsis: Returns 0 if the input does not contain a cast operator | ||||
6 | # | ||||
7 | # Syntax: notcast | ||||
8 | |||||
9 | if grep '\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)' | ||||
10 | then exit 1 | ||||
11 | else exit 0 | ||||
12 | fi |