xaizek / dit (License: GPLv3) (since 2018-12-07)
Command-line task keeper that remembers all old values and is meant to combine several orthogonal features to be rather flexible in managing items.
Commit 4021f492c7d9702713779a0e4db16bcf081f486e

Use boost::multi_array instead of VLA in "log"
Size of that matrix is quadratic on input length, so it's better to
be kept on the heap.
Author: xaizek
Author date (UTC): 2016-06-07 20:35
Committer name: xaizek
Committer date (UTC): 2016-06-07 20:35
Parent(s): d77c9c3ee989dff1f4305c3cdbbd3b575f57fe01
Signing key: 99DC5E4DB05F6BE2
Tree: 1d95583c5f2aec8a6010e48df9ed95dc0ccd6190
File Lines added Lines deleted
src/cmds/LogCmd.cpp 3 1
File src/cmds/LogCmd.cpp changed (mode: 100644) (index 85c8689..84f71f8)
15 15 // You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
16 16 // along with dit. If not, see <http://www.gnu.org/licenses/>. // along with dit. If not, see <http://www.gnu.org/licenses/>.
17 17
18 #include <boost/multi_array.hpp>
19
18 20 #include <cstdlib> #include <cstdlib>
19 21
20 22 #include <deque> #include <deque>
 
... ... LogCmd::run(Project &project, const std::vector<std::string> &args)
130 132 static std::string static std::string
131 133 diff(const std::vector<std::string> &f, const std::vector<std::string> &s) diff(const std::vector<std::string> &f, const std::vector<std::string> &s)
132 134 { {
133 int d[f.size() + 1][s.size() + 1];
135 boost::multi_array<int, 2> d(boost::extents[f.size() + 1][s.size() + 1]);
134 136
135 137 // Modified edit distance finding. // Modified edit distance finding.
136 138 using size_type = std::vector<std::string>::size_type; using size_type = std::vector<std::string>::size_type;
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master