Skip to content

Commit

Permalink
Software engineering to avoid #include "XXX.cpp": + file headers + co…
Browse files Browse the repository at this point in the history
…rrect includes

Signed-off-by: Tias Guns <tias@ulyssis.org>
  • Loading branch information
tonio73 authored and tias committed Jun 7, 2012
1 parent 6661579 commit 150cf5e
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Expand Up @@ -52,4 +52,4 @@ endif
EXTRA_DIST = \
calibrator.cpp \
calibrator.hh \
main_common.hpp
main_common.cpp
File renamed without changes.
6 changes: 3 additions & 3 deletions src/calibrator/Makefile.am
@@ -1,4 +1,4 @@
EXTRA_DIST = \
calibratorEvdev.cpp \
calibratorUsbtouchscreen.cpp \
calibratorXorgPrint.cpp
Evdev.cpp \
Usbtouchscreen.cpp \
XorgPrint.cpp
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/gui/Makefile.am
@@ -1,3 +1,3 @@
EXTRA_DIST = \
gui_gtkmm.cpp \
gui_x11.cpp
gtkmm.cpp \
x11.cpp
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/main_common.hpp → src/main_common.cpp
Expand Up @@ -104,9 +104,9 @@ char* my_strdup(const char* s) {

// all need struct XYinfo, and some the consts too
#include "calibrator.cpp"
#include "calibrator/calibratorXorgPrint.cpp"
#include "calibrator/calibratorEvdev.cpp"
#include "calibrator/calibratorUsbtouchscreen.cpp"
#include "calibrator/XorgPrint.cpp"
#include "calibrator/Evdev.cpp"
#include "calibrator/Usbtouchscreen.cpp"


/**
Expand Down
4 changes: 2 additions & 2 deletions src/main_gtkmm.cpp
Expand Up @@ -27,8 +27,8 @@
#include <gtkmm/drawingarea.h>
#include <cairomm/context.h>

#include "main_common.hpp"
#include "gui/gui_gtkmm.cpp"
#include "main_common.cpp"
#include "gui/gtkmm.cpp"

int main(int argc, char** argv)
{
Expand Down
4 changes: 2 additions & 2 deletions src/main_x11.cpp
Expand Up @@ -20,8 +20,8 @@
* THE SOFTWARE.
*/

#include "main_common.hpp"
#include "gui/gui_x11.cpp"
#include "main_common.cpp"
#include "gui/x11.cpp"

int main(int argc, char** argv)
{
Expand Down

0 comments on commit 150cf5e

Please sign in to comment.