summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-01-12 13:24:24 -0330
committerMatthew Newhook <matthew@zeroc.com>2009-01-12 13:24:24 -0330
commit86d1e1192e81e9eb684d647238fff7a67ec45fcb (patch)
tree95a2ec73eba6e321aec75c76a3f0a34a2a7f9719 /cpp/src/Slice/Preprocessor.cpp
parentFix spelling and style in NRVO demo README (diff)
downloadice-86d1e1192e81e9eb684d647238fff7a67ec45fcb.tar.bz2
ice-86d1e1192e81e9eb684d647238fff7a67ec45fcb.tar.xz
ice-86d1e1192e81e9eb684d647238fff7a67ec45fcb.zip
Squashed commit of the following:
commit b73098371dca786520d9eab2731d1887a60685b1 Author: Matthew Newhook <matthew@zeroc.com> Date: Mon Jan 12 13:22:59 2009 -0330 http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=3518 slice2XXX --depend exit status is bogus
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 263aa37149a..b61d43cc5c0 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -216,12 +216,12 @@ Slice::Preprocessor::preprocess(bool keepComments)
return _cppHandle;
}
-void
+bool
Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<string>& includePaths)
{
if(!checkInputFile())
{
- return;
+ return false;
}
//
@@ -261,7 +261,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
// Calling this again causes the memory buffers to be freed.
//
mcpp_use_mem_buffers(1);
- return;
+ return false;
}
//
@@ -469,6 +469,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
// Output result
//
fputs(result.c_str(), stdout);
+ return true;
}
bool