Code Cleanup

- Eliminated '#include "x"' by changing all to '#include <x>'.
This commit is contained in:
Paul Beckingham 2011-05-28 00:19:59 -04:00
parent f67706c28e
commit 8fabffe18c
62 changed files with 185 additions and 183 deletions

View file

@ -28,7 +28,7 @@
#define INCLUDED_API #define INCLUDED_API
#define L10N // Localization complete. #define L10N // Localization complete.
#include "../cmake.h" #include <../cmake.h>
#ifdef HAVE_LIBLUA #ifdef HAVE_LIBLUA
#include <vector> #include <vector>

View file

@ -30,7 +30,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "Nibbler.h" #include <Nibbler.h>
class Att class Att
{ {

View file

@ -29,9 +29,9 @@
#include <sstream> #include <sstream>
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include "Color.h" #include <Color.h>
#include "text.h" #include <text.h>
#include "i18n.h" #include <i18n.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
static struct static struct

View file

@ -33,13 +33,13 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <pwd.h> #include <pwd.h>
#include "Directory.h" #include <Directory.h>
#include "Date.h" #include <Date.h>
#include "File.h" #include <File.h>
#include "Config.h" #include <Config.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "../cmake.h" #include <cmake.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// This string is used in two ways: // This string is used in two ways:

View file

@ -31,7 +31,7 @@
#include <map> #include <map>
#include <vector> #include <vector>
#include <string> #include <string>
#include "File.h" #include <File.h>
class Config : public std::map <std::string, std::string> class Config : public std::map <std::string, std::string>
{ {

View file

@ -30,7 +30,7 @@
#include <text.h> #include <text.h>
#include <i18n.h> #include <i18n.h>
#include <DOM.h> #include <DOM.h>
#include "../cmake.h" #include <cmake.h>
#ifdef HAVE_LIBLUA #ifdef HAVE_LIBLUA
extern "C" extern "C"

View file

@ -30,10 +30,10 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#include "Date.h" #include <Date.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "Context.h" #include <Context.h>
extern Context context; extern Context context;

View file

@ -31,7 +31,7 @@
#include <dirent.h> #include <dirent.h>
#include <string.h> #include <string.h>
#include <Directory.h> #include <Directory.h>
#include "../cmake.h" #include <cmake.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Directory::Directory () Directory::Directory ()

View file

@ -31,9 +31,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "Duration.h" #include <Duration.h>
static const char* durations[] = static const char* durations[] =
{ {

View file

@ -33,7 +33,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <sys/stat.h> #include <sys/stat.h>
#include "Path.h" #include <Path.h>
class File : public Path class File : public Path
{ {

View file

@ -26,9 +26,9 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <sstream> #include <sstream>
#include "Filter.h" #include <Filter.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// For every Att in the filter, lookup the equivalent in Record, and perform a // For every Att in the filter, lookup the equivalent in Record, and perform a

View file

@ -29,9 +29,9 @@
#define L10N // Localization complete. #define L10N // Localization complete.
#include <vector> #include <vector>
#include "Att.h" #include <Att.h>
#include "Task.h" #include <Task.h>
#include "Record.h" #include <Record.h>
class Filter : public std::vector <Att> class Filter : public std::vector <Att>
{ {

View file

@ -27,9 +27,9 @@
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include "Context.h" #include <Context.h>
#include "Hooks.h" #include <Hooks.h>
#include "Timer.h" #include <Timer.h>
extern Context context; extern Context context;

View file

@ -30,8 +30,8 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include "API.h" #include <API.h>
#include "../cmake.h" #include <cmake.h>
// Hook class representing a single hook, which is just a three-way map. // Hook class representing a single hook, which is just a three-way map.
class Hook class Hook

View file

@ -25,7 +25,7 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "Location.h" #include <Location.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Location::Location () Location::Location ()

View file

@ -31,8 +31,8 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <pwd.h> #include <pwd.h>
#include <unistd.h> #include <unistd.h>
#include "Path.h" #include <Path.h>
#include "../cmake.h" #include <cmake.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Path::Path () Path::Path ()

View file

@ -26,10 +26,10 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include "Permission.h" #include <Permission.h>
#include "Context.h" #include <Context.h>
#include "util.h" #include <util.h>
#include "i18n.h" #include <i18n.h>
extern Context context; extern Context context;

View file

@ -29,7 +29,7 @@
#define L10N // Localization complete. #define L10N // Localization complete.
#include <string> #include <string>
#include "Task.h" #include <Task.h>
class Permission class Permission
{ {

View file

@ -28,11 +28,11 @@
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <stdlib.h> #include <stdlib.h>
#include "util.h" #include <util.h>
#include "Nibbler.h" #include <Nibbler.h>
#include "Context.h" #include <Context.h>
#include "i18n.h" #include <i18n.h>
#include "Record.h" #include <Record.h>
extern Context context; extern Context context;

View file

@ -31,7 +31,7 @@
#include <vector> #include <vector>
#include <map> #include <map>
#include <string> #include <string>
#include "Att.h" #include <Att.h>
class Record : public std::map <std::string, Att> class Record : public std::map <std::string, Att>
{ {

View file

@ -29,11 +29,11 @@
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include <ctype.h> #include <ctype.h>
#include "util.h" #include <util.h>
#include "text.h" #include <text.h>
#include "i18n.h" #include <i18n.h>
#include "Context.h" #include <Context.h>
#include "Sequence.h" #include <Sequence.h>
extern Context context; extern Context context;

View file

@ -29,7 +29,7 @@
#define L10N // Localization complete. #define L10N // Localization complete.
#include <string> #include <string>
#include "Att.h" #include <Att.h>
class Subst class Subst
{ {

View file

@ -35,19 +35,19 @@
#include <stdio.h> #include <stdio.h>
#include <sys/file.h> #include <sys/file.h>
#include <stdlib.h> #include <stdlib.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "TDB.h" #include <TDB.h>
#include "Directory.h" #include <Directory.h>
#include "File.h" #include <File.h>
#include "ViewText.h" #include <ViewText.h>
#include "Timer.h" #include <Timer.h>
#include "Color.h" #include <Color.h>
#include "main.h" #include <main.h>
#define NDEBUG #define NDEBUG
#include "assert.h" #include <assert.h>
#include "Taskmod.h" #include <Taskmod.h>
#define DEBUG_OUTPUT 0 #define DEBUG_OUTPUT 0

View file

@ -31,9 +31,9 @@
#include <map> #include <map>
#include <vector> #include <vector>
#include <string> #include <string>
#include "Location.h" #include <Location.h>
#include "Filter.h" #include <Filter.h>
#include "Task.h" #include <Task.h>
// Length of longest line. // Length of longest line.
#define T_LINE_MAX 32768 #define T_LINE_MAX 32768

View file

@ -279,19 +279,19 @@ void TDB2::commit ()
#include <stdio.h> #include <stdio.h>
#include <sys/file.h> #include <sys/file.h>
#include <stdlib.h> #include <stdlib.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "TDB.h" #include <TDB.h>
#include "Directory.h" #include <Directory.h>
#include "File.h" #include <File.h>
#include "ViewText.h" #include <ViewText.h>
#include "Timer.h" #include <Timer.h>
#include "Color.h" #include <Color.h>
#include "main.h" #include <main.h>
#define NDEBUG #define NDEBUG
#include "assert.h" #include <assert.h>
#include "Taskmod.h" #include <Taskmod.h>
#define DEBUG_OUTPUT 0 #define DEBUG_OUTPUT 0

View file

@ -102,9 +102,9 @@ private:
/* /*
#include "Location.h" #include <Location.h>
#include "Filter.h" #include <Filter.h>
#include "Task.h" #include <Task.h>
// Length of longest line. // Length of longest line.
#define T_LINE_MAX 32768 #define T_LINE_MAX 32768

View file

@ -29,9 +29,9 @@
#define L10N // Localization complete. #define L10N // Localization complete.
#include <string> #include <string>
#include "Record.h" #include <Record.h>
#include "Subst.h" #include <Subst.h>
#include "Sequence.h" #include <Sequence.h>
class Task : public Record class Task : public Record
{ {

View file

@ -28,7 +28,7 @@
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
#include <assert.h> #include <assert.h>
#include "Taskmod.h" #include <Taskmod.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Taskmod::Taskmod () Taskmod::Taskmod ()

View file

@ -27,8 +27,8 @@
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
#include "Timer.h" #include <Timer.h>
#include "Context.h" #include <Context.h>
extern Context context; extern Context context;

View file

@ -27,11 +27,11 @@
#include <iostream> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include "util.h" #include <util.h>
#include "Transport.h" #include <Transport.h>
#include "TransportSSH.h" #include <TransportSSH.h>
#include "TransportRSYNC.h" #include <TransportRSYNC.h>
#include "TransportCurl.h" #include <TransportCurl.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Transport::Transport (const Uri& uri) Transport::Transport (const Uri& uri)

View file

@ -30,7 +30,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "Uri.h" #include <Uri.h>
class Transport { class Transport {
public: public:

View file

@ -25,9 +25,9 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "TransportCurl.h" #include <TransportCurl.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
TransportCurl::TransportCurl(const Uri& uri) : Transport(uri) TransportCurl::TransportCurl(const Uri& uri) : Transport(uri)

View file

@ -25,7 +25,7 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "TransportRSYNC.h" #include <TransportRSYNC.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
TransportRSYNC::TransportRSYNC(const Uri& uri) : Transport(uri) TransportRSYNC::TransportRSYNC(const Uri& uri) : Transport(uri)

View file

@ -25,7 +25,7 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "TransportSSH.h" #include <TransportSSH.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
TransportSSH::TransportSSH(const Uri& uri) : Transport(uri) TransportSSH::TransportSSH(const Uri& uri) : Transport(uri)

View file

@ -25,8 +25,8 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "Context.h" #include <Context.h>
#include "Uri.h" #include <Uri.h>
extern Context context; extern Context context;

View file

@ -1,5 +1,6 @@
cmake_minimum_required (VERSION 2.8) cmake_minimum_required (VERSION 2.8)
include_directories (${CMAKE_SOURCE_DIR}/src include_directories (${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/commands ${CMAKE_SOURCE_DIR}/src/commands
${CMAKE_SOURCE_DIR}/src/columns ${CMAKE_SOURCE_DIR}/src/columns
${TASK_INCLUDE_DIRS}) ${TASK_INCLUDE_DIRS})

View file

@ -36,17 +36,17 @@
#include <pwd.h> #include <pwd.h>
#include <time.h> #include <time.h>
#include "Permission.h" #include <Permission.h>
#include "Directory.h" #include <Directory.h>
#include "Nibbler.h" #include <Nibbler.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
#include "Transport.h" #include <Transport.h>
#include "ViewText.h" #include <ViewText.h>
#include "../cmake.h" #include <cmake.h>
#ifdef HAVE_COMMIT #ifdef HAVE_COMMIT
#include "../commit.h" #include <commit.h>
#endif #endif
extern Context context; extern Context context;

View file

@ -38,9 +38,9 @@
#include <File.h> #include <File.h>
#include <main.h> #include <main.h>
#include <util.h> #include <util.h>
#include "../cmake.h" #include <cmake.h>
#ifdef HAVE_COMMIT #ifdef HAVE_COMMIT
#include "../commit.h" #include <commit.h>
#endif #endif
#ifdef HAVE_LIBLUA #ifdef HAVE_LIBLUA

View file

@ -33,13 +33,13 @@
#include <stdlib.h> #include <stdlib.h>
#include <limits.h> #include <limits.h>
#include <string.h> #include <string.h>
#include "Directory.h" #include <Directory.h>
#include "File.h" #include <File.h>
#include "Date.h" #include <Date.h>
#include "Duration.h" #include <Duration.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
extern Context context; extern Context context;

View file

@ -29,11 +29,11 @@
#include <sstream> #include <sstream>
#include <stdlib.h> #include <stdlib.h>
#include "Att.h" #include <Att.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
#include "../cmake.h" #include <cmake.h>
extern Context context; extern Context context;

View file

@ -35,7 +35,7 @@
#include <main.h> #include <main.h>
#include <text.h> #include <text.h>
#include <util.h> #include <util.h>
#include "../cmake.h" #include <cmake.h>
extern Context context; extern Context context;

View file

@ -40,7 +40,7 @@
#define INCLUDED_I18N #define INCLUDED_I18N
#define L10N // Localization complete. #define L10N // Localization complete.
#include "../cmake.h" #include <cmake.h>
#if PACKAGE_LANGUAGE == LANGUAGE_EN_US #if PACKAGE_LANGUAGE == LANGUAGE_EN_US
#include <en-US.h> #include <en-US.h>

View file

@ -34,7 +34,7 @@
#include <text.h> #include <text.h>
#include <util.h> #include <util.h>
#include <main.h> #include <main.h>
#include "Transport.h" #include <Transport.h>
extern Context context; extern Context context;

View file

@ -28,10 +28,10 @@
#include <sstream> #include <sstream>
#include <stdio.h> #include <stdio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "Context.h" #include <Context.h>
#include "main.h" #include <main.h>
#include "i18n.h" #include <i18n.h>
#include "../cmake.h" #include <cmake.h>
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
int Context::getWidth () int Context::getWidth ()

View file

@ -36,7 +36,7 @@
#include <i18n.h> #include <i18n.h>
#include <Context.h> #include <Context.h>
#include "../cmake.h" #include <cmake.h>
Context context; Context context;

View file

@ -36,10 +36,10 @@
#include <vector> #include <vector>
#include <map> #include <map>
#include <sys/types.h> #include <sys/types.h>
#include "Context.h" #include <Context.h>
#include "Date.h" #include <Date.h>
#include "Color.h" #include <Color.h>
#include "../cmake.h" #include <cmake.h>
// recur.cpp // recur.cpp
void handleRecurrence (); void handleRecurrence ();

View file

@ -37,12 +37,12 @@
#include <pwd.h> #include <pwd.h>
#include <time.h> #include <time.h>
#include "Context.h" #include <Context.h>
#include "Date.h" #include <Date.h>
#include "Duration.h" #include <Duration.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
// Global context for use by all. // Global context for use by all.
extern Context context; extern Context context;

View file

@ -26,11 +26,11 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include "Context.h" #include <Context.h>
#include "Date.h" #include <Date.h>
#include "text.h" #include <text.h>
#include "util.h" #include <util.h>
#include "main.h" #include <main.h>
#define L10N // Localization complete. #define L10N // Localization complete.

View file

@ -27,7 +27,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <regex.h> #include <regex.h>
#include "rx.h" #include <rx.h>
#define L10N // Localization complete. #define L10N // Localization complete.

View file

@ -30,7 +30,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "../cmake.h" #include <cmake.h>
// text.cpp, Non-UTF-8 aware. // text.cpp, Non-UTF-8 aware.
void wrapText (std::vector <std::string>&, const std::string&, const int); void wrapText (std::vector <std::string>&, const std::string&, const int);

View file

@ -40,12 +40,12 @@
#include <pwd.h> #include <pwd.h>
#include <errno.h> #include <errno.h>
#include "Date.h" #include <Date.h>
#include "text.h" #include <text.h>
#include "main.h" #include <main.h>
#include "i18n.h" #include <i18n.h>
#include "util.h" #include <util.h>
#include "../cmake.h" #include <cmake.h>
extern Context context; extern Context context;

View file

@ -32,8 +32,8 @@
#include <vector> #include <vector>
#include <map> #include <map>
#include <sys/types.h> #include <sys/types.h>
#include "Task.h" #include <Task.h>
#include "../cmake.h" #include <cmake.h>
#ifndef min #ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b)) #define min(a,b) ((a) < (b) ? (a) : (b))

View file

@ -1,5 +1,6 @@
cmake_minimum_required (VERSION 2.8) cmake_minimum_required (VERSION 2.8)
include_directories (${CMAKE_SOURCE_DIR}/src include_directories (${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/commands ${CMAKE_SOURCE_DIR}/src/commands
${CMAKE_SOURCE_DIR}/src/columns ${CMAKE_SOURCE_DIR}/src/columns
${CMAKE_SOURCE_DIR}/test ${CMAKE_SOURCE_DIR}/test

View file

@ -26,7 +26,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>
#include "../cmake.h" #include <cmake.h>
#include <main.h> #include <main.h>
#include <test.h> #include <test.h>

View file

@ -24,10 +24,10 @@
// USA // USA
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "main.h" #include <main.h>
#include "test.h" #include <test.h>
#include "Filter.h" #include <Filter.h>
#include "Task.h" #include <Task.h>
Context context; Context context;

View file

@ -25,9 +25,9 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include "Context.h" #include <Context.h>
#include "main.h" #include <main.h>
#include "test.h" #include <test.h>
Context context; Context context;

View file

@ -25,9 +25,9 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <sys/time.h> #include <sys/time.h>
#include "Task.h" #include <Task.h>
#include "main.h" #include <main.h>
#include "test.h" #include <test.h>
Context context; Context context;

View file

@ -24,8 +24,8 @@
// USA // USA
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "main.h" #include <main.h>
#include "test.h" #include <test.h>
Context context; Context context;

View file

@ -27,8 +27,8 @@
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>
#include "main.h" #include <main.h>
#include "test.h" #include <test.h>
Context context; Context context;

View file

@ -31,7 +31,7 @@
#include <main.h> #include <main.h>
#include <util.h> #include <util.h>
#include <text.h> #include <text.h>
#include "test.h" #include <test.h>
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
UnitTest::UnitTest () UnitTest::UnitTest ()

View file

@ -25,10 +25,10 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include "main.h" #include <main.h>
#include "text.h" #include <text.h>
#include "utf8.h" #include <utf8.h>
#include "test.h" #include <test.h>
Context context; Context context;

View file

@ -25,9 +25,9 @@
// //
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include "main.h" #include <main.h>
#include "util.h" #include <util.h>
#include "test.h" #include <test.h>
Context context; Context context;