Removed HAL dependant code. #9

Merged
MicheleC merged 1 commits from drop/hal-code into master 2 years ago
Owner

Cleanup of HAL left over code and comments.

Cleanup of HAL left over code and comments.
MicheleC added this to the R14.1.0 release milestone 2 years ago
MicheleC added 1 commit 2 years ago
c1a94699ce
Removed HAL dependant code.
SlavekB requested changes 2 years ago
SlavekB left a comment
Owner

Instead of removing config.h, it should have better content. At the same time, it should be used in CPP files instead of in H.

Instead of removing config.h, it should have better content. At the same time, it should be used in CPP files instead of in H.
CMakeLists.txt Outdated
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )
Owner

Instead of removing, we probably should do at least ordinary config.h.

Instead of removing, we probably should do at least ordinary `config.h`.
MicheleC marked this conversation as resolved
config.h.cmake Outdated
#cmakedefine HAVE_HAL_0_5_10 1
Owner

I suggest using the usual basic content instead of removal:

#define VERSION "@VERSION@"

// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
   significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
I suggest using the usual basic content instead of removal: ``` #define VERSION "@VERSION@" // Defined if you have fvisibility and fvisibility-inlines-hidden support. #cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ ```
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
src/hardware.cpp Outdated
// blocked by normal KDE/QT (GUI) calls
// need this functions to make events independent
// from Qt event loop and to allow TQt3 D-Bus bindings to get not
// blocked by normal TDE/QT (GUI) calls
Owner

At the same time, replace Qt => TQt.

At the same time, replace Qt => TQt.
MicheleC marked this conversation as resolved
src/hardware.h Outdated
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
// Global Header
#ifdef HAVE_CONFIG_H
#include <config.h>
Owner

Including config.h probably should be moved to CPP files.

Including `config.h` probably should be moved to CPP files.
MicheleC marked this conversation as resolved
MicheleC force-pushed drop/hal-code from c1a94699ce to 4112c3b486 2 years ago
Poster
Owner

I have updated the PR as per suggested feedback. Please take another look.

I have updated the PR as per suggested feedback. Please take another look.
SlavekB approved these changes 2 years ago
SlavekB left a comment
Owner

Tested, looks good.

Tested, looks good.
MicheleC merged commit 4112c3b486 into master 2 years ago
MicheleC deleted branch drop/hal-code 2 years ago

Reviewers

SlavekB approved these changes 2 years ago
The pull request has been merged as 4112c3b486.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdepowersave#9
Loading…
There is no content yet.