diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-02-16 18:37:26 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-02-16 18:37:26 -0700 |
commit | 2af81be4177c32137b8b2672bf4973f9b8e80f6f (patch) | |
tree | 9573bd064ac8ae9bb3bb66daa7f6549625a06ec9 | |
parent | 87c682dc0b53c8fd120bf67cba71096ada543cf6 (diff) | |
download | noteless-2af81be4177c32137b8b2672bf4973f9b8e80f6f.tar.gz noteless-2af81be4177c32137b8b2672bf4973f9b8e80f6f.tar.xz |
Initial renaming commit for refactor from c++ to c
This is the first commit in a long line, for converting from c++ to c. This
particular change will fail compiling as all of the code is still c++. This is
just a rename.
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | src/config.c (renamed from src/lib/config.cpp) | 0 | ||||
-rw-r--r-- | src/config.h (renamed from src/lib/config.h) | 0 | ||||
-rw-r--r-- | src/main.c (renamed from src/main.cpp) | 11 | ||||
-rw-r--r-- | src/note.c (renamed from src/lib/note.cpp) | 0 | ||||
-rw-r--r-- | src/note.h (renamed from src/lib/note.h) | 0 | ||||
-rw-r--r-- | src/note_list.c (renamed from src/lib/note_list.cpp) | 0 | ||||
-rw-r--r-- | src/note_list.h (renamed from src/lib/note_list.h) | 0 | ||||
-rw-r--r-- | src/path.c (renamed from src/lib/path.cpp) | 0 | ||||
-rw-r--r-- | src/path.h (renamed from src/lib/path.h) | 0 |
10 files changed, 10 insertions, 11 deletions
@@ -5,11 +5,11 @@ obj = obj/ all: if [[ ! -d obj ]]; then mkdir obj; fi - g++ $(debug) -c $(libs)path.cpp -o $(obj)path.o - g++ $(debug) -c $(libs)config.cpp -o $(obj)config.o - g++ $(debug) -c $(libs)note.cpp -o $(obj)note.o - g++ $(debug) -c $(libs)note_list.cpp -o $(obj)note_list.o - g++ $(debug) src/main.cpp $(obj)*.o -o $(out) + g++ $(debug) -c $(libs)path.c -o $(obj)path.o + g++ $(debug) -c $(libs)config.c -o $(obj)config.o + g++ $(debug) -c $(libs)note.c -o $(obj)note.o + g++ $(debug) -c $(libs)note_list.c -o $(obj)note_list.o + g++ $(debug) src/main.c $(obj)*.o -o $(out) debug: make all debug="-g" diff --git a/src/lib/config.cpp b/src/config.c index dfb78ca..dfb78ca 100644 --- a/src/lib/config.cpp +++ b/src/config.c diff --git a/src/lib/config.h b/src/config.h index 8a52bd7..8a52bd7 100644 --- a/src/lib/config.h +++ b/src/config.h diff --git a/src/main.cpp b/src/main.c index 9a6712e..d023ac1 100644 --- a/src/main.cpp +++ b/src/main.c @@ -15,13 +15,12 @@ * along with noteless. If not, see <http://www.gnu.org/licenses/>. */ using namespace std; -#include <iostream> #include <stdlib.h> -#include <string> -#include "lib/config.h" -#include "lib/note.h" -#include "lib/note_list.h" -#include "lib/path.h" +#include <string.h> +#include "config.h" +#include "note.h" +#include "note_list.h" +#include "path.h" int get_help() { string out = "\nNoteless provides a simple command line interface for note " diff --git a/src/lib/note.cpp b/src/note.c index 1e6a102..1e6a102 100644 --- a/src/lib/note.cpp +++ b/src/note.c diff --git a/src/lib/note.h b/src/note.h index 8dc63f2..8dc63f2 100644 --- a/src/lib/note.h +++ b/src/note.h diff --git a/src/lib/note_list.cpp b/src/note_list.c index dcd39f4..dcd39f4 100644 --- a/src/lib/note_list.cpp +++ b/src/note_list.c diff --git a/src/lib/note_list.h b/src/note_list.h index 3e3a2c6..3e3a2c6 100644 --- a/src/lib/note_list.h +++ b/src/note_list.h diff --git a/src/lib/path.cpp b/src/path.c index faa9419..faa9419 100644 --- a/src/lib/path.cpp +++ b/src/path.c diff --git a/src/lib/path.h b/src/path.h index 88156e4..88156e4 100644 --- a/src/lib/path.h +++ b/src/path.h |