summaryrefslogtreecommitdiffstats
path: root/funtools/funcalc.sed
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-25 20:57:49 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-25 20:57:49 (GMT)
commitd1c4bf158203c4e8ec29fdeb83fd311e36320885 (patch)
tree15874534e282f67505ce4af5ba805a1ff70ec43e /funtools/funcalc.sed
parente19a18e035dc4d0e8e215f9b452bb9ef6f58b9d7 (diff)
parent339420dd5dd874c41f6bab5808291fb4036dd022 (diff)
downloadblt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.zip
blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.gz
blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.bz2
Merge commit '339420dd5dd874c41f6bab5808291fb4036dd022' as 'funtools'
Diffstat (limited to 'funtools/funcalc.sed')
-rw-r--r--funtools/funcalc.sed11
1 files changed, 11 insertions, 0 deletions
diff --git a/funtools/funcalc.sed b/funtools/funcalc.sed
new file mode 100644
index 0000000..d9f3b18
--- /dev/null
+++ b/funtools/funcalc.sed
@@ -0,0 +1,11 @@
+# cc <foo.c> 2>&1 | sed -n -f funauto.sed
+# Linux gcc (and others)
+s/.*[`'‘]\([^)]*\)['’] *undeclared (first use in this function).*/\1/p
+# Solaris cc
+s/.*undefined symbol: \([^)]*\)/\1/p
+# Dec Alpha/OSF cc
+s/.*In this statement, "\([^)]*\)" is not declared.*/\1/p
+# SGI cc
+s/.*The identifier "\([^)]*\)" is undefined.*/\1/p
+# Intel icc
+s/.*identifier "\([^)]*\)" is undefined.*/\1/p