[Pinfo-devel] r252 - pinfo/branches/cxx/src
Nathanael Nerode
neroden-guest at costa.debian.org
Mon Sep 26 04:52:15 UTC 2005
Author: neroden-guest
Date: 2005-09-26 04:52:14 +0000 (Mon, 26 Sep 2005)
New Revision: 252
Modified:
pinfo/branches/cxx/src/filehandling_functions.cxx
pinfo/branches/cxx/src/initializelinks.cxx
pinfo/branches/cxx/src/mainfunction.cxx
pinfo/branches/cxx/src/manual.cxx
pinfo/branches/cxx/src/tmpfiles.cxx
pinfo/branches/cxx/src/utils.cxx
Log:
Correct C++ includes.
Modified: pinfo/branches/cxx/src/filehandling_functions.cxx
===================================================================
--- pinfo/branches/cxx/src/filehandling_functions.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/filehandling_functions.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -26,6 +26,7 @@
using std::string;
#include <vector>
using std::vector;
+#include <algorithm> // for std::sort
#include "colors.h"
#include "tmpfiles.h"
Modified: pinfo/branches/cxx/src/initializelinks.cxx
===================================================================
--- pinfo/branches/cxx/src/initializelinks.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/initializelinks.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -24,6 +24,7 @@
using std::string;
#include <vector>
using std::vector;
+#include <algorithm> // for std::sort
#define MENU_DOT 0
#define NOTE_DOT 1
Modified: pinfo/branches/cxx/src/mainfunction.cxx
===================================================================
--- pinfo/branches/cxx/src/mainfunction.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/mainfunction.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -25,8 +25,8 @@
using std::string;
#include <vector>
using std::vector;
-#include <exception>
-#include <stdexcept>
+#include <exception> // For 'throw'
+#include <stdexcept> // For std::invalid_argument
#include <ctype.h>
Modified: pinfo/branches/cxx/src/manual.cxx
===================================================================
--- pinfo/branches/cxx/src/manual.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/manual.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -25,6 +25,7 @@
using std::string;
#include <vector>
using std::vector;
+#include <algorithm> // for std::sort and std::find
#include <ctype.h>
#include <sys/stat.h>
Modified: pinfo/branches/cxx/src/tmpfiles.cxx
===================================================================
--- pinfo/branches/cxx/src/tmpfiles.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/tmpfiles.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -21,9 +21,9 @@
#include <string>
using std::string;
-#include <iostream>
+#include <iostream> // for ostringstream and cerr
using std::cerr;
-#include <sstream>
+#include <sstream> // for ostringstream
using std::ostringstream;
Modified: pinfo/branches/cxx/src/utils.cxx
===================================================================
--- pinfo/branches/cxx/src/utils.cxx 2005-09-26 04:38:29 UTC (rev 251)
+++ pinfo/branches/cxx/src/utils.cxx 2005-09-26 04:52:14 UTC (rev 252)
@@ -26,6 +26,8 @@
using std::string;
#include <vector>
using std::vector;
+#include <utility> // for std::pair
+#include <algorithm> // for std::equal_range
#include <ctype.h>
@@ -220,7 +222,7 @@
std::pair<typeof(tag_table.begin()), typeof(tag_table.begin())> my_result;
/* The following does binary search */
my_result = std::equal_range(tag_table.begin(), tag_table.end(),
- dummy, compare_tags);
+ dummy, compare_tags);
if (my_result.first == my_result.second) {
/* Degenerate range: it's a miss. */
return -1;
More information about the Pinfo-devel
mailing list