add util repo as submodule
This commit is contained in:
parent
aadd8008b2
commit
a905414491
|
@ -0,0 +1,3 @@
|
|||
[submodule "util"]
|
||||
path = util
|
||||
url = git://github.com/thestinger/util.git
|
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@ endif
|
|||
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
|
||||
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}
|
||||
|
||||
termite: termite.cc memory.hh url_regex.hh
|
||||
termite: termite.cc util/memory.hh url_regex.hh
|
||||
${CXX} ${CXXFLAGS} ${LDFLAGS} $< ${LDLIBS} -o $@
|
||||
|
||||
install: termite
|
||||
|
|
11
memory.hh
11
memory.hh
|
@ -1,11 +0,0 @@
|
|||
#ifndef MEMORY_HH
|
||||
#define MEMORY_HH
|
||||
|
||||
#include <memory>
|
||||
|
||||
template<typename T, typename Deleter>
|
||||
std::unique_ptr<T, Deleter> make_unique(T *p, Deleter d) {
|
||||
return std::unique_ptr<T, Deleter>(p, d);
|
||||
}
|
||||
|
||||
#endif
|
|
@ -12,8 +12,8 @@
|
|||
#include <vte/vte.h>
|
||||
#include <vte/vteaccess.h>
|
||||
|
||||
#include "memory.hh"
|
||||
#include "url_regex.hh"
|
||||
#include "util/memory.hh"
|
||||
|
||||
using namespace std::placeholders;
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 4d9248982472c774ea539c4180a0f89103ebaec3
|
Loading…
Reference in New Issue