diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-11-18 11:33:45 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-11-18 11:33:45 +0800 |
commit | b9edd66fc477e67a25c864fa50f0c25f697189cf (patch) | |
tree | 5e60435a1a4efabb63931724182c0ffbe3ba0ce5 /devel/bcpp/files | |
parent | e533c6e0ddc417d3e9e95e3625309b84106c6ca3 (diff) | |
download | freebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.tar.gz freebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.tar.zst freebsd-ports-gnome-b9edd66fc477e67a25c864fa50f0c25f697189cf.zip |
add bcpp
Simple utility to indent C++ code
PR: 31831
Submitted by: Mike Buchanon <buchanon@mlss15.cl.msu.edu>
Diffstat (limited to 'devel/bcpp/files')
-rw-r--r-- | devel/bcpp/files/patch-bcpp.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/bcpp/files/patch-bcpp.cpp b/devel/bcpp/files/patch-bcpp.cpp new file mode 100644 index 000000000000..f270b0c8e252 --- /dev/null +++ b/devel/bcpp/files/patch-bcpp.cpp @@ -0,0 +1,24 @@ +--- bcpp.cpp.orig Tue Aug 10 20:54:52 1999 ++++ bcpp.cpp Wed Nov 7 10:48:27 2001 +@@ -2721,6 +2721,7 @@ + char* pSPath = getenv ("PATH"); + char* pEPath = NULL; + char* pNameMem = NULL; ++ char* tmpCfgName = new char[ 16 + strlen(pCfgName) + 1]; + char sepChar = NULLC; + const char* pathSepChar; + char backUp; +@@ -2729,6 +2730,13 @@ + // test to see if file is in current directory first ! + if ((pCfgFile = fopen(pCfgName, "r")) != NULL) + return; ++ ++ // look to see if it's in /usr/local/etc ++ tmpCfgName = strcat( tmpCfgName, "/usr/local/etc/" ); ++ tmpCfgName = strcat( tmpCfgName, pCfgName ); ++ if ((pCfgFile = fopen(tmpCfgName, "r")) != NULL) ++ return; ++ + + // environment variable not found, lord knows what it is ! + if (pSPath == NULL) |