add util repo as submodule

This commit is contained in:
Daniel Micay 2012-10-05 10:55:52 -04:00
parent aadd8008b2
commit a905414491
5 changed files with 6 additions and 13 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "util"]
path = util
url = git://github.com/thestinger/util.git

View File

@ -28,7 +28,7 @@ endif
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS} LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}} 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 $@ ${CXX} ${CXXFLAGS} ${LDFLAGS} $< ${LDLIBS} -o $@
install: termite install: termite

View File

@ -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

View File

@ -12,8 +12,8 @@
#include <vte/vte.h> #include <vte/vte.h>
#include <vte/vteaccess.h> #include <vte/vteaccess.h>
#include "memory.hh"
#include "url_regex.hh" #include "url_regex.hh"
#include "util/memory.hh"
using namespace std::placeholders; using namespace std::placeholders;

1
util Submodule

@ -0,0 +1 @@
Subproject commit 4d9248982472c774ea539c4180a0f89103ebaec3