summaryrefslogtreecommitdiffstats
path: root/ast/cexpand
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-11-02 19:11:06 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-11-02 19:11:06 (GMT)
commit33c55bd916dff8c4932b01c7db58f0103ac31c31 (patch)
treea4cdca3287dd2df5247ce8079c424ffa438b4c2e /ast/cexpand
parent4121637f3d41d6dc23e6543a445b5a3aed9e6ddc (diff)
downloadblt-33c55bd916dff8c4932b01c7db58f0103ac31c31.zip
blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.gz
blt-33c55bd916dff8c4932b01c7db58f0103ac31c31.tar.bz2
update ast
Diffstat (limited to 'ast/cexpand')
-rwxr-xr-xast/cexpand32
1 files changed, 0 insertions, 32 deletions
diff --git a/ast/cexpand b/ast/cexpand
deleted file mode 100755
index b40957a..0000000
--- a/ast/cexpand
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/tcsh
-#+
-
-# Name:
-# cexpand
-
-# Purpose:
-# Expand a C source file using the C pre-processor and re-format it
-# into a readable form. The output is written to a file with the same
-# base-name as the input file, but with a file type of ".cpp".
-
-# Usage:
-# % cexpand fred.c
-
-#-
-
-if( "$1" == "" ) then
- echo "Usage: cexpand <file.c>"
- exit
-endif
-
-set file = `basename $1 .c`
-cpp -CC -P $file.c -DTHREAD_SAFE -DHAVE_CONFIG_H -I. -I.. -I/star/include > aaxx
-indent aaxx -kr -o bbxx
-cat bbxx | sed -e 's#/\*#\n/\*#g' > ccxx
-cat ccxx | cexpand.pl > ddxx
-indent ddxx -kr -o $file.cpp
-rm aaxx bbxx ccxx ddxx
-
-echo "Output in $file.cpp"
-echo ""
-