Move duplicated utilities to the common util folder and remove NEXT_DIR (#29)

* move things to the common library and remove next_dir

* fix for windows

* one last windows fix

* last fix for real this time

* debug listener test

* fix listener threading bug
This commit is contained in:
water111
2020-09-10 20:03:31 -04:00
committed by GitHub
parent 8cbcb36687
commit de5aa7e5e4
45 changed files with 138 additions and 351 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
* (+ 1 (+ a b)) ; compute the sum
*/
#include "goalc/util/file_io.h"
#include "common/util/FileUtil.h"
#include "TextDB.h"
@@ -79,7 +79,7 @@ std::pair<int, int> SourceText::get_containing_line(int offset) {
* Read text from a file.
*/
FileText::FileText(std::string filename_) : filename(std::move(filename_)) {
text = util::read_text_file(filename);
text = file_util::read_text_file(filename);
build_offsets();
}