From d0febf3f55c1de0c7600236583576ad26c7bb703 Mon Sep 17 00:00:00 2001
From: Michele Calgaro
Date: Fri, 18 Dec 2020 21:48:35 +0900
Subject: Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro
(cherry picked from commit b0b9b9401cf06859e99ce20b911014404bc08faf)
---
doc/html/ksquirrel-libs-olibs2.html | 6 +++---
doc/sources/Makefile.am | 4 ++--
doc/sources/c++/main.cpp | 2 +-
doc/sources/c++/polygon.h | 25 +++++++++++++++++++++++++
doc/sources/c++/polygon.hpp | 25 -------------------------
doc/sources/c++/triangle.cpp | 2 +-
6 files changed, 32 insertions(+), 32 deletions(-)
create mode 100644 doc/sources/c++/polygon.h
delete mode 100644 doc/sources/c++/polygon.hpp
(limited to 'doc')
diff --git a/doc/html/ksquirrel-libs-olibs2.html b/doc/html/ksquirrel-libs-olibs2.html
index 710df8a..80c6b7a 100644
--- a/doc/html/ksquirrel-libs-olibs2.html
+++ b/doc/html/ksquirrel-libs-olibs2.html
@@ -1143,7 +1143,7 @@ WIDTH="100%"
COLOR="#000000"
>#include "polygon.hpp"
+>#include "polygon.h"
#include <iostream>
#include <dlfcn.h>
@@ -1185,7 +1185,7 @@ int main() {
>polygon.hpp:
polygon.h:
#include "polygon.hpp"
+>#include "polygon.h"
#include <cmath>
class triangle : public polygon {
diff --git a/doc/sources/Makefile.am b/doc/sources/Makefile.am
index dc0e0e7..ad4be01 100644
--- a/doc/sources/Makefile.am
+++ b/doc/sources/Makefile.am
@@ -11,7 +11,7 @@ install-data-local:
$(INSTALL_SCRIPT) c++/compile $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/compile
$(INSTALL_DATA) c++/main.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/main.cpp
$(INSTALL_DATA) c++/triangle.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/triangle.cpp
- $(INSTALL_DATA) c++/polygon.hpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/polygon.hpp
+ $(INSTALL_DATA) c++/polygon.h $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/polygon.h
$(INSTALL_DATA) c++/README $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/c++/README
$(INSTALL_DATA) ttx/Makefile.am $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/Makefile.am
@@ -21,4 +21,4 @@ install-data-local:
$(INSTALL_DATA) ttx/fmt_codec_ttx.h $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.h
$(INSTALL_DATA) ttx/fmt_codec_ttx.cpp $(DESTDIR)$(datadir)/doc/ksquirrel-libs/$(PACKAGE_VERSION)/sources/ttx/fmt_codec_ttx.cpp
-EXTRA_DIST = c c++ ttx
\ No newline at end of file
+EXTRA_DIST = c c++ ttx
diff --git a/doc/sources/c++/main.cpp b/doc/sources/c++/main.cpp
index b8fb8cd..eb3b2fe 100644
--- a/doc/sources/c++/main.cpp
+++ b/doc/sources/c++/main.cpp
@@ -1,4 +1,4 @@
-#include "polygon.hpp"
+#include "polygon.h"
#include
#include
diff --git a/doc/sources/c++/polygon.h b/doc/sources/c++/polygon.h
new file mode 100644
index 0000000..e3189bf
--- /dev/null
+++ b/doc/sources/c++/polygon.h
@@ -0,0 +1,25 @@
+#ifndef POLYGON_HPP
+#define POLYGON_HPP
+
+class polygon
+{
+ protected:
+ double side_length_;
+
+ public:
+ polygon() : side_length_(0)
+ {}
+
+ void set_side_length(double side_length)
+ {
+ side_length_ = side_length;
+ }
+
+ virtual double area() const = 0;
+};
+
+// the types of the class factories
+typedef polygon* create_t();
+typedef void destroy_t(polygon*);
+
+#endif
diff --git a/doc/sources/c++/polygon.hpp b/doc/sources/c++/polygon.hpp
deleted file mode 100644
index e3189bf..0000000
--- a/doc/sources/c++/polygon.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef POLYGON_HPP
-#define POLYGON_HPP
-
-class polygon
-{
- protected:
- double side_length_;
-
- public:
- polygon() : side_length_(0)
- {}
-
- void set_side_length(double side_length)
- {
- side_length_ = side_length;
- }
-
- virtual double area() const = 0;
-};
-
-// the types of the class factories
-typedef polygon* create_t();
-typedef void destroy_t(polygon*);
-
-#endif
diff --git a/doc/sources/c++/triangle.cpp b/doc/sources/c++/triangle.cpp
index 96185d0..008d679 100644
--- a/doc/sources/c++/triangle.cpp
+++ b/doc/sources/c++/triangle.cpp
@@ -1,4 +1,4 @@
-#include "polygon.hpp"
+#include "polygon.h"
#include
class triangle : public polygon
--
cgit v1.2.1