summaryrefslogtreecommitdiffstats
path: root/funtools/doc/funcalc.sed
diff options
context:
space:
mode:
Diffstat (limited to 'funtools/doc/funcalc.sed')
-rw-r--r--funtools/doc/funcalc.sed9
1 files changed, 9 insertions, 0 deletions
diff --git a/funtools/doc/funcalc.sed b/funtools/doc/funcalc.sed
new file mode 100644
index 0000000..d865a5d
--- /dev/null
+++ b/funtools/doc/funcalc.sed
@@ -0,0 +1,9 @@
+# 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