From 6687415374ca06a3b24d9c2375993232b913034f Mon Sep 17 00:00:00 2001 From: philipp schoenberger Date: Tue, 23 Jun 2015 14:00:50 +0200 Subject: [PATCH] cleanup --- lwrserv/Point.h | 0 lwrserv/SocketObject.cpp | 0 lwrserv/SocketObject.h | 0 lwrserv/StringTool.cpp | 0 lwrserv/StringTool.h | 0 lwrserv/SvrHandling.cpp | 0 lwrserv/SvrHandling.h | 0 lwrserv/config.h | 177 ++++++++++++++++++++++++ lwrserv/friComm.h | 0 lwrserv/friremote.cpp | 0 lwrserv/friremote.h | 0 lwrserv/friudp.cpp | 0 lwrserv/friudp.h | 0 lwrserv/header.h | 0 lwrserv/{ => include}/SvrData.h | 0 lwrserv/{ => include}/defines.h | 0 lwrserv/{ => include}/mat.h | 8 ++ lwrserv/program.cpp | 1 + lwrserv/resource.h | 0 lwrserv/sgn.h | 0 lwrserv/vec.h | 235 -------------------------------- 21 files changed, 186 insertions(+), 235 deletions(-) mode change 100755 => 100644 lwrserv/Point.h mode change 100755 => 100644 lwrserv/SocketObject.cpp mode change 100755 => 100644 lwrserv/SocketObject.h mode change 100755 => 100644 lwrserv/StringTool.cpp mode change 100755 => 100644 lwrserv/StringTool.h mode change 100755 => 100644 lwrserv/SvrHandling.cpp mode change 100755 => 100644 lwrserv/SvrHandling.h create mode 100644 lwrserv/config.h mode change 100755 => 100644 lwrserv/friComm.h mode change 100755 => 100644 lwrserv/friremote.cpp mode change 100755 => 100644 lwrserv/friremote.h mode change 100755 => 100644 lwrserv/friudp.cpp mode change 100755 => 100644 lwrserv/friudp.h mode change 100755 => 100644 lwrserv/header.h rename lwrserv/{ => include}/SvrData.h (100%) rename lwrserv/{ => include}/defines.h (100%) rename lwrserv/{ => include}/mat.h (96%) mode change 100755 => 100644 lwrserv/resource.h mode change 100755 => 100644 lwrserv/sgn.h delete mode 100644 lwrserv/vec.h diff --git a/lwrserv/Point.h b/lwrserv/Point.h old mode 100755 new mode 100644 diff --git a/lwrserv/SocketObject.cpp b/lwrserv/SocketObject.cpp old mode 100755 new mode 100644 diff --git a/lwrserv/SocketObject.h b/lwrserv/SocketObject.h old mode 100755 new mode 100644 diff --git a/lwrserv/StringTool.cpp b/lwrserv/StringTool.cpp old mode 100755 new mode 100644 diff --git a/lwrserv/StringTool.h b/lwrserv/StringTool.h old mode 100755 new mode 100644 diff --git a/lwrserv/SvrHandling.cpp b/lwrserv/SvrHandling.cpp old mode 100755 new mode 100644 diff --git a/lwrserv/SvrHandling.h b/lwrserv/SvrHandling.h old mode 100755 new mode 100644 diff --git a/lwrserv/config.h b/lwrserv/config.h new file mode 100644 index 0000000..623c90a --- /dev/null +++ b/lwrserv/config.h @@ -0,0 +1,177 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Compiling CppUTest itself */ +#define CPPUTEST_COMPILATION 1 + +/* memory leak detection disabled */ +/* #undef CPPUTEST_MEM_LEAK_DETECTION_DISABLED */ + +/* Standard C++ library disabled */ +/* #undef CPPUTEST_STD_CPP_LIB_DISABLED */ + +/* Standard C library disabled */ +/* #undef CPPUTEST_STD_C_LIB_DISABLED */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the `fork' function. */ +#define HAVE_FORK 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define if you have POSIX threads libraries and header files. */ +/* #undef HAVE_PTHREAD */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDDEF_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `vfork' function. */ +#define HAVE_VFORK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define to 1 if `fork' works. */ +#define HAVE_WORKING_FORK 1 + +/* Define to 1 if `vfork' works. */ +#define HAVE_WORKING_VFORK 1 + +/* Include the GTest-related tests in the build */ +/* #undef INCLUDE_GTEST_TESTS */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "cpputest" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://github.com/cpputest/cpputest" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "CppUTest" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "CppUTest 3.7.1" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "cpputest" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "3.7.1" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "3.7.1" + +/* Define for Solaris 2.5.1 so the uint32_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT32_T */ + +/* Define for Solaris 2.5.1 so the uint64_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT64_T */ + +/* Define for Solaris 2.5.1 so the uint8_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT8_T */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to the type of a signed integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int16_t */ + +/* Define to the type of a signed integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int32_t */ + +/* Define to the type of a signed integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int64_t */ + +/* Define to the type of a signed integer type of width exactly 8 bits if such + a type exists and the standard includes do not define it. */ +/* #undef int8_t */ + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define to the type of an unsigned integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint16_t */ + +/* Define to the type of an unsigned integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint32_t */ + +/* Define to the type of an unsigned integer type of width exactly 64 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint64_t */ + +/* Define to the type of an unsigned integer type of width exactly 8 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint8_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ diff --git a/lwrserv/friComm.h b/lwrserv/friComm.h old mode 100755 new mode 100644 diff --git a/lwrserv/friremote.cpp b/lwrserv/friremote.cpp old mode 100755 new mode 100644 diff --git a/lwrserv/friremote.h b/lwrserv/friremote.h old mode 100755 new mode 100644 diff --git a/lwrserv/friudp.cpp b/lwrserv/friudp.cpp old mode 100755 new mode 100644 diff --git a/lwrserv/friudp.h b/lwrserv/friudp.h old mode 100755 new mode 100644 diff --git a/lwrserv/header.h b/lwrserv/header.h old mode 100755 new mode 100644 diff --git a/lwrserv/SvrData.h b/lwrserv/include/SvrData.h similarity index 100% rename from lwrserv/SvrData.h rename to lwrserv/include/SvrData.h diff --git a/lwrserv/defines.h b/lwrserv/include/defines.h similarity index 100% rename from lwrserv/defines.h rename to lwrserv/include/defines.h diff --git a/lwrserv/mat.h b/lwrserv/include/mat.h similarity index 96% rename from lwrserv/mat.h rename to lwrserv/include/mat.h index dad28bb..d39cd10 100644 --- a/lwrserv/mat.h +++ b/lwrserv/include/mat.h @@ -258,15 +258,19 @@ public: if (indxr[1] != indxc[1]) { ir = indxr[1]; ic = indxc[1]; + temp = invOut(0,ir); invOut(0,ir) = invOut(0,ic); invOut(0,ic) = temp; + temp = invOut(1,ir); invOut(1,ir) = invOut(1,ic); invOut(1,ic) = temp; + temp = invOut(2,ir); invOut(2,ir) = invOut(2,ic); invOut(2,ic) = temp; + temp = invOut(3,ir); invOut(3,ir) = invOut(3,ic); invOut(3,ic) = temp; @@ -274,15 +278,19 @@ public: if (indxr[0] != indxc[0]) { ir = indxr[0]; ic = indxc[0]; + temp = invOut(0,ir); invOut(0,ir) = invOut(0,ic); invOut(0,ic) = temp; + temp = invOut(1,ir); invOut(1,ir) = invOut(1,ic); invOut(1,ic) = temp; + temp = invOut(2,ir); invOut(2,ir) = invOut(2,ic); invOut(2,ic) = temp; + temp = invOut(3,ir); invOut(3,ir) = invOut(3,ic); invOut(3,ic) = temp; diff --git a/lwrserv/program.cpp b/lwrserv/program.cpp index c66ca7b..f5d128a 100644 --- a/lwrserv/program.cpp +++ b/lwrserv/program.cpp @@ -53,6 +53,7 @@ float* abctomat(float a, float b, float c) rz(1,1) = cc; rz(2,2) = 1; rz(3,3) = 1; + Mat4f result; Mat4f temp; diff --git a/lwrserv/resource.h b/lwrserv/resource.h old mode 100755 new mode 100644 diff --git a/lwrserv/sgn.h b/lwrserv/sgn.h old mode 100755 new mode 100644 diff --git a/lwrserv/vec.h b/lwrserv/vec.h deleted file mode 100644 index ca034e6..0000000 --- a/lwrserv/vec.h +++ /dev/null @@ -1,235 +0,0 @@ -#ifndef _VEC_H_ -#define _VEC_H_ -#include -#include "mat.h" -#include - -template class Mat; -template class Vec; - -// Vector class for SIMPLE data types -template class Vec -{ -public: - - // standard constructor - Vec () - { // initialize all elements with zero - for (unsigned int i=0; i (const T atData[SIZE]) - { - for (unsigned int i=0; i (const Vec &vec) - { - if (this==&vec) - return; // nothing to do, it's me - for (unsigned int i=0; i &operator = (const Vec &vec) - { - if (this==&vec) - return (*this); // ok, it's me, so no L-value action - for (unsigned int i=0; i &operator = (const T atData[SIZE]) - { - for (unsigned int i=0; i