[Pinfo-devel] r138 - pinfo/branches/cxx/src

Nathanael Nerode neroden-guest at costa.debian.org
Fri Sep 2 06:22:14 UTC 2005


Author: neroden-guest
Date: 2005-09-02 06:22:13 +0000 (Fri, 02 Sep 2005)
New Revision: 138

Modified:
   pinfo/branches/cxx/src/filehandling_functions.cxx
   pinfo/branches/cxx/src/utils.cxx
   pinfo/branches/cxx/src/utils.h
Log:
Move compare_tag into utils.cxx.


Modified: pinfo/branches/cxx/src/filehandling_functions.cxx
===================================================================
--- pinfo/branches/cxx/src/filehandling_functions.cxx	2005-09-02 06:18:14 UTC (rev 137)
+++ pinfo/branches/cxx/src/filehandling_functions.cxx	2005-09-02 06:22:13 UTC (rev 138)
@@ -21,6 +21,7 @@
  ***************************************************************************/
 
 #include "common_includes.h"
+#include "utils.h"
 #include <string>
 using std::string;
 #include <vector>
@@ -94,16 +95,6 @@
 
 vector<string> infopaths;
 
-bool
-compare_tags(TagTable a, TagTable b) {
-	/* Should a be sorted before b? */
-	int result = compare_tag_table_string(a.nodename.c_str(), b.nodename.c_str());
-	if (result < 0)
-		return true;
-	else
-		return false;
-}
-
 void
 sort_tag_table(void) {
 	if (!tag_table.empty())

Modified: pinfo/branches/cxx/src/utils.cxx
===================================================================
--- pinfo/branches/cxx/src/utils.cxx	2005-09-02 06:18:14 UTC (rev 137)
+++ pinfo/branches/cxx/src/utils.cxx	2005-09-02 06:22:13 UTC (rev 138)
@@ -347,6 +347,16 @@
 	return 0;
 }
 
+bool
+compare_tags(TagTable a, TagTable b) {
+	/* Should a be sorted before b? */
+	int result = compare_tag_table_string(a.nodename.c_str(), b.nodename.c_str());
+	if (result < 0)
+		return true;
+	else
+		return false;
+}
+
 int
 gettagtablepos_search_internal(char *node, int left, int right)
 {

Modified: pinfo/branches/cxx/src/utils.h
===================================================================
--- pinfo/branches/cxx/src/utils.h	2005-09-02 06:18:14 UTC (rev 137)
+++ pinfo/branches/cxx/src/utils.h	2005-09-02 06:22:13 UTC (rev 138)
@@ -23,6 +23,7 @@
 #ifndef __UTILS_H
 #define __UTILS_H
 
+#include "datatypes.h"
 #include <string>
 
 extern std::string safe_user;
@@ -67,6 +68,7 @@
 
 /* strcmp, which is insensitive to whitespaces */
 int compare_tag_table_string (const char *base, const char *compared);
+bool compare_tags (TagTable a, TagTable b);
 
 /* get offset of "node" in tag_table variable */
 int gettagtablepos (std::string node);




More information about the Pinfo-devel mailing list