summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartłomiej Zimoń2008-08-27 10:04:50 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commite5b573b75c942ee00ae4d6b73ca990e6f740d3d0 (patch)
tree57e07a8a7df87864934651db0aaf4c362a8dc274
parente6fbe2fad7767737a89da8201167a6f7de64b247 (diff)
downloadfbpager-e5b573b75c942ee00ae4d6b73ca990e6f740d3d0.zip
fbpager-e5b573b75c942ee00ae4d6b73ca990e6f740d3d0.tar.gz
- initial
- patch from debian Changed files: fbpager-namespace.patch -> 1.1
-rw-r--r--fbpager-namespace.patch77
1 files changed, 77 insertions, 0 deletions
diff --git a/fbpager-namespace.patch b/fbpager-namespace.patch
new file mode 100644
index 0000000..ff440fb
--- /dev/null
+++ b/fbpager-namespace.patch
@@ -0,0 +1,77 @@
+--- ./src/Resources.hh 2004-03-02 17:49:51.000000000 +0100
++++ /home/sean/tmp/dpep-work.kCLHyF/fbpager-0.1.4/src/Resources.hh 2006-05-29 22:05:44.000000000 +0200
+@@ -8,8 +8,10 @@
+ #include <cstdio>
+ #include <cstring>
+
++namespace FbTk {
++
+ template<>
+-void FbTk::Resource<bool>::
++void Resource<bool>::
+ setFromString(char const *strval) {
+ if (strcasecmp(strval, "true") == 0 ||
+ strcasecmp(strval, "yes") == 0)
+@@ -19,38 +21,37 @@
+ }
+
+ template<>
+-std::string FbTk::Resource<bool>::
++std::string Resource<bool>::
+ getString() {
+ return std::string(**this == true ? "true" : "false");
+ }
+
+ template <>
+-void FbTk::Resource<std::string>::setFromString(const char *str) {
++void Resource<std::string>::setFromString(const char *str) {
+ *(*this) = (str ? str : "");
+ }
+
+ template <>
+-std::string FbTk::Resource<std::string>::getString() {
++std::string Resource<std::string>::getString() {
+ return *(*this);
+ }
+
+ template <>
+-void FbTk::Resource<int>::setFromString(const char *str) {
++void Resource<int>::setFromString(const char *str) {
+ if (str == 0)
+ return;
+ sscanf(str, "%d", &(*(*this)));
+ }
+
+ template <>
+-std::string FbTk::Resource<int>::getString() {
++std::string Resource<int>::getString() {
+ char buff[16];
+ sprintf(buff, "%d", (*(*this)));
+ return std::string(buff);
+ }
+
+-namespace FbPager {
+ template <>
+-void FbTk::Resource<FbPager::Alignment>::setFromString(const char *str) {
++void Resource<FbPager::FbPager::Alignment>::setFromString(const char *str) {
+ if (strcmp("TopToBottom", str) == 0)
+ *(*this) = FbPager::FbPager::TOP_TO_BOTTOM;
+ else
+@@ -58,7 +59,7 @@
+ }
+
+ template <>
+-std::string FbTk::Resource<FbPager::Alignment>::getString() {
++std::string Resource<FbPager::FbPager::Alignment>::getString() {
+ switch (*(*this)) {
+ case FbPager::FbPager::LEFT_TO_RIGHT:
+ return "LeftToRight";
+@@ -67,6 +68,6 @@
+ }
+ }
+
+-} // end namespace FbPager
++} // end namespace FbTk
+
+ #endif // RESOURCES
+