This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository eshell.

View the commit online.

commit 46ee35a2617a44e72327582b902bf0ebeef9cca3
Author: swagtoy <m...@ow.swag.toys>
AuthorDate: Sun Oct 27 17:58:14 2024 -0400

    Add escript
---
 CMakeLists.txt            |  3 ++-
 escript/CMakeLists.txt    | 20 ++++++++++++++++++++
 escript/include/escript.h | 15 +++++++++++++++
 escript/src/escript.c     | 14 ++++++++++++++
 eshell/CMakeLists.txt     |  3 ++-
 eshell/src/eshell.c       |  2 ++
 6 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39f4b25..e01dd07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,8 @@
 cmake_minimum_required(VERSION 3.15)
 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
-project(Escript)
+project(EscriptRoot)
 
 add_subdirectory(eshell)
+add_subdirectory(escript)
 
diff --git a/escript/CMakeLists.txt b/escript/CMakeLists.txt
new file mode 100644
index 0000000..1382426
--- /dev/null
+++ b/escript/CMakeLists.txt
@@ -0,0 +1,20 @@
+project(
+	Escript
+	VERSION 0.0
+	DESCRIPTION "Escript library"
+	LANGUAGES C)
+
+# TODO not just PkgConfig
+find_package(PkgConfig)
+pkg_check_modules(EFL REQUIRED efl ecore)
+
+add_library(Escript
+	src/escript.c)
+
+set_target_properties(Escript PROPERTIES PUBLIC_HEADER include/)
+target_include_directories(Escript PUBLIC
+	${EFL_INCLUDE_DIRS}
+	PRIVATE
+	include/)
+target_link_libraries(Escript
+	${EFL_LIBRARIES})
diff --git a/escript/include/escript.h b/escript/include/escript.h
new file mode 100644
index 0000000..d6f8688
--- /dev/null
+++ b/escript/include/escript.h
@@ -0,0 +1,15 @@
+/* Escript - escript.h
+ * Licensed under BSD 2-Clause
+ */
+
+#ifndef ESCRIPT_ESCRIPT_H
+#define ESCRIPT_ESCRIPT_H
+
+struct Escript
+{
+	int stub;
+};
+
+int escript_init(struct Escript* env, int argc, char** argv);
+
+#endif
diff --git a/escript/src/escript.c b/escript/src/escript.c
new file mode 100644
index 0000000..cc179bc
--- /dev/null
+++ b/escript/src/escript.c
@@ -0,0 +1,14 @@
+/* Eshell - eshell.c
+ * Licensed under BSD 2-Clause
+ * ---
+ * Main shell loop. 
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include "escript.h"
+
+int escript_init(struct Escript* escript, int argc, char** argv)
+{
+	return 0;
+}
diff --git a/eshell/CMakeLists.txt b/eshell/CMakeLists.txt
index bdaac73..f6bd4b1 100644
--- a/eshell/CMakeLists.txt
+++ b/eshell/CMakeLists.txt
@@ -1,6 +1,7 @@
 project(
 	Eshell
-	VERSION 0.1
+	VERSION 0.0
+	DESCRIPTION "Eshell shell program"
 	LANGUAGES C)
 
 # TODO not just PkgConfig
diff --git a/eshell/src/eshell.c b/eshell/src/eshell.c
index d0c7284..36317ce 100644
--- a/eshell/src/eshell.c
+++ b/eshell/src/eshell.c
@@ -32,6 +32,8 @@ int eshell_io_loop(struct Eshell* eshell)
 		if (res[res_len-1] == '\n')
 			res[res_len-1] = '\0';
 		
+		
+		
 		puts(res);
 	}
 	return 0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to