Skip to content

Commit

Permalink
move src into src (#87)
Browse files Browse the repository at this point in the history
* move src into src

* format
  • Loading branch information
isaacbrodsky committed Feb 28, 2024
1 parent 7fd6873 commit c2298ea
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 15 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ set(BUILD_SHARED_LIBS ON)


set(EXTENSION_SOURCES
h3-extension.cpp
h3_common.cpp
h3_functions/h3_indexing.cpp
h3_functions/h3_inspection.cpp
h3_functions/h3_hierarchy.cpp
h3_functions/h3_traversal.cpp
h3_functions/h3_vertex.cpp
h3_functions/h3_directededge.cpp
h3_functions/h3_misc.cpp
h3_functions/h3_regions.cpp
src/h3ext_extension.cpp
src/h3_common.cpp
src/h3_indexing.cpp
src/h3_inspection.cpp
src/h3_hierarchy.cpp
src/h3_traversal.cpp
src/h3_vertex.cpp
src/h3_directededge.cpp
src/h3_misc.cpp
src/h3_regions.cpp
)
set(LIB_HEADER_FILES
src/include/h3_common.hpp
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions h3_functions/h3_regions.cpp → src/h3_regions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ static size_t readNumber(const std::string &str, size_t offset, double &num) {
offset++;
}
std::string part = str.substr(start, offset - start);
try {

try {
num = std::stod(part);
return offset;
} catch (std::invalid_argument const& ex) {
} catch (std::invalid_argument const &ex) {
throw InvalidInputException(StringUtil::Format("Invalid number around %lu, %lu", start, offset));
}
}
}

static size_t readGeoLoop(const std::string &str, size_t offset, duckdb::shared_ptr<std::vector<LatLng>> verts,
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion h3-extension.cpp → src/h3ext_extension.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#define DUCKDB_EXTENSION_MAIN
#include "h3ext_extension.hpp"

#include "duckdb/catalog/catalog_entry/macro_catalog_entry.hpp"
#include "duckdb/catalog/default/default_functions.hpp"
#include "duckdb/common/string_util.hpp"
#include "duckdb/parser/expression/constant_expression.hpp"
#include "duckdb/parser/expression/function_expression.hpp"
#include "duckdb/parser/tableref/table_function_ref.hpp"
#include "h3_functions.hpp"
#include "h3ext_extension.hpp"

namespace duckdb {

Expand Down

0 comments on commit c2298ea

Please sign in to comment.