Skip to content

Commit

Permalink
moved lib to src/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
omaraflak committed Aug 28, 2023
1 parent 0bb86d6 commit f530f73
Show file tree
Hide file tree
Showing 25 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 17)

project (banana)

file(GLOB SOURCES "lib/*.cpp")
file(GLOB SOURCES "src/lib/*.cpp")
add_library(banana_lib ${SOURCES})
target_link_libraries(banana_lib -lffi)

Expand Down
2 changes: 1 addition & 1 deletion native/prime.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../lib/c_interface.h"
#include "../src/lib/c_interface.h"

bool is_prime(const long& n) {
for (long i=2; i<n; i++) {
Expand Down
6 changes: 3 additions & 3 deletions src/assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <vector>
#include <map>
#include <stdint.h>
#include "../lib/instructions.h"
#include "../lib/byteutils.h"
#include "../lib/fileutils.h"
#include "lib/instructions.h"
#include "lib/byteutils.h"
#include "lib/fileutils.h"

std::string trim(const std::string& str, const std::string& character) {
size_t begin = str.find_first_not_of(character);
Expand Down
8 changes: 4 additions & 4 deletions src/banana.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <iostream>
#include <vector>
#include <map>
#include "../lib/ast.h"
#include "../lib/scanner.h"
#include "../lib/parser.h"
#include "../lib/fileutils.h"
#include "lib/ast.h"
#include "lib/scanner.h"
#include "lib/parser.h"
#include "lib/fileutils.h"

std::vector<std::unique_ptr<const Instruction>> get_instructions(
const std::string& filename,
Expand Down
8 changes: 4 additions & 4 deletions src/banana_test.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <iostream>
#include <sstream>
#include "../lib/ast.h"
#include "../lib/scanner.h"
#include "../lib/parser.h"
#include "../lib/vm.h"
#include "lib/ast.h"
#include "lib/scanner.h"
#include "lib/parser.h"
#include "lib/vm.h"
#include "gtest/gtest.h"

namespace {
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f530f73

Please sign in to comment.