From 3b0c9d02139ba4aac998322a0801b454aa79d70f Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Wed, 17 Aug 2011 15:33:26 +0000
Subject: [PATCH] Forgot to add & commit 2 files

---
 .gitattributes                      |  2 ++
 tools/transforms/p1transform.cpp    | 25 -----------------------
 tools/transforms/transformutils.cpp | 31 +++++++++++++++++++++++++++++
 tools/transforms/transformutils.h   |  9 +++++++++
 4 files changed, 42 insertions(+), 25 deletions(-)
 create mode 100644 tools/transforms/transformutils.cpp
 create mode 100644 tools/transforms/transformutils.h

diff --git a/.gitattributes b/.gitattributes
index 235e3805f..8155c9142 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -204,6 +204,8 @@ tools/transforms/integerbugtransform.cpp -text
 tools/transforms/nulltransform.cpp -text
 tools/transforms/p1transform.cpp -text
 tools/transforms/p1transform.h -text
+tools/transforms/transformutils.cpp -text
+tools/transforms/transformutils.h -text
 xform/Makefile -text
 xform/all.h -text
 xform/aspri.h -text
diff --git a/tools/transforms/p1transform.cpp b/tools/transforms/p1transform.cpp
index d18c2d4a1..574549335 100644
--- a/tools/transforms/p1transform.cpp
+++ b/tools/transforms/p1transform.cpp
@@ -5,31 +5,6 @@
 using namespace libIRDB;
 using namespace std;
 
-/*
-static set<std::string> getFunctionList(char *p_filename)
-{
-	set<std::string> functionList;
-
-	ifstream candidateFile;
-	candidateFile.open(p_filename);
-
-	if(candidateFile.is_open())
-	{
-		while(!candidateFile.eof())
-		{
-			string functionName;
-			getline(candidateFile, functionName);
-
-			functionList.insert(functionName);
-		}
-
-		candidateFile.close();
-	}
-
-	return functionList;
-}
-*/
-
 P1Transform::P1Transform()
 {
   /* Initialize regular expressions */
diff --git a/tools/transforms/transformutils.cpp b/tools/transforms/transformutils.cpp
new file mode 100644
index 000000000..2adea8d13
--- /dev/null
+++ b/tools/transforms/transformutils.cpp
@@ -0,0 +1,31 @@
+#include <iostream>
+#include <fstream>
+#include <string>
+
+#include "transformutils.h"
+
+using namespace std;
+
+set<string> getFunctionList(char *p_filename)
+{
+	set<string> functionList;
+
+	ifstream candidateFile;
+	candidateFile.open(p_filename);
+
+	if(candidateFile.is_open())
+	{
+		while(!candidateFile.eof())
+		{
+			string functionName;
+			getline(candidateFile, functionName);
+
+			functionList.insert(functionName);
+		}
+
+		candidateFile.close();
+	}
+
+	return functionList;
+}
+
diff --git a/tools/transforms/transformutils.h b/tools/transforms/transformutils.h
new file mode 100644
index 000000000..b43cd6c09
--- /dev/null
+++ b/tools/transforms/transformutils.h
@@ -0,0 +1,9 @@
+#ifndef _TRANSFORM_UTILS_
+#define _TRANSFORM_UTILS_
+
+#include <string>
+#include <set>
+
+extern std::set<std::string> getFunctionList(char *p_filename);
+
+#endif
-- 
GitLab