From 2e74dfd96fb97b03bf44035d7a3864066af4ece8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 29 Nov 2025 13:58:35 -0500 Subject: chore: Redesigned sysroot repository. Signed-off-by: Amlal El Mahrouss --- lib/libsteps/include/.keep | 0 lib/libsteps/include/steps/config.hpp | 17 --------- lib/libsteps/include/steps/steps.hpp | 71 ----------------------------------- lib/libsteps/make_dist_linux.sh | 12 ------ lib/libsteps/make_dist_osx.sh | 11 ------ 5 files changed, 111 deletions(-) delete mode 100644 lib/libsteps/include/.keep delete mode 100644 lib/libsteps/include/steps/config.hpp delete mode 100644 lib/libsteps/include/steps/steps.hpp delete mode 100755 lib/libsteps/make_dist_linux.sh delete mode 100755 lib/libsteps/make_dist_osx.sh (limited to 'lib/libsteps') diff --git a/lib/libsteps/include/.keep b/lib/libsteps/include/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/lib/libsteps/include/steps/config.hpp b/lib/libsteps/include/steps/config.hpp deleted file mode 100644 index 6eefe3c..0000000 --- a/lib/libsteps/include/steps/config.hpp +++ /dev/null @@ -1,17 +0,0 @@ -/* ------------------------------------------- - -Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -------------------------------------------- */ - -#pragma once - -#ifdef OCL_USE_UTF8 -#undef OCL_USE_UTF8 -#endif - -#include - -#include -#include - diff --git a/lib/libsteps/include/steps/steps.hpp b/lib/libsteps/include/steps/steps.hpp deleted file mode 100644 index c524149..0000000 --- a/lib/libsteps/include/steps/steps.hpp +++ /dev/null @@ -1,71 +0,0 @@ -/* ------------------------------------------- - -Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -------------------------------------------- */ - -#pragma once - -#include - -#define kStepsExtension ".stp" -#define kStepsStrLen (256U) - -#define kStepsMagic " pls" -#define kStepsMagicLen (4U) -#define kStepsVersion (0x0100) - -#ifdef __GNUC__ -#define STEPS_PACKED __attribute__((packed)) -#else -#define STEPS_PACKED -#endif - -namespace ocl::steps { -struct STEPS_PACKED record final { - ocl::char_type magic[kStepsMagicLen] = {kStepsMagic[0], kStepsMagic[1], - kStepsMagic[2], kStepsMagic[3]}; - ocl::char_type name[kStepsStrLen] = ""; - ocl::char_type company[kStepsStrLen] = ""; - ocl::char_type author[kStepsStrLen] = ""; - int32_t version = 0; - int32_t pages = 0; - int32_t check_page = 0, eula_page = 0; -}; - -inline bool is_valid(record& r) noexcept { - return r.pages > 1 && r.version > 0 && strcmp(r.magic, kStepsMagic) == 0; -} - -namespace operators { -/// =========================================================== /// -/// @brief Read operator for steps records. -/// =========================================================== /// -inline std::ifstream &operator>>(std::ifstream &f, record &r) { - f.read((char *)&r, sizeof(r)); - return f; -} - -/// =========================================================== /// -/// @brief Write operator for steps records. -/// =========================================================== /// -inline std::ofstream &operator<<(std::ofstream &f, record &r) { - f.write((char *)&r, sizeof(r)); - return f; -} - -/// =========================================================== /// -/// @brief Equal operator for steps records. -/// =========================================================== /// -inline bool operator==(const record &r, const record &l) { - return (std::strncmp(r.magic, l.magic, kStepsMagicLen) == 0); -} - -/// =========================================================== /// -/// @brief Not equal operator for steps records. -/// =========================================================== /// -inline bool operator!=(const record &r, const record &l) { - return (std::strncmp(r.magic, l.magic, kStepsMagicLen) > 0); -} -} // namespace operators -} // namespace ocl::steps diff --git a/lib/libsteps/make_dist_linux.sh b/lib/libsteps/make_dist_linux.sh deleted file mode 100755 index fe58a8d..0000000 --- a/lib/libsteps/make_dist_linux.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/sh - -outputDir=dist/lib/ - -mkdir -p $outputDir - -for f in *.hpp; do -baseName=`echo $f | cut -d "." -f 1` -echo "RUN:" cp --parents $f.hpp $outputDir$baseName -cp --parents $f.hpp $outputDir$baseName -done - diff --git a/lib/libsteps/make_dist_osx.sh b/lib/libsteps/make_dist_osx.sh deleted file mode 100755 index 318ae4d..0000000 --- a/lib/libsteps/make_dist_osx.sh +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh - -outputDir=dist/ - -mkdir -p $outputDir - -for f in *.hpp; do -baseName=`echo $f | cut -d "." -f 1` -echo "RUN:" ditto $baseName.hpp $outputDir$baseName -ditto $baseName.hpp $outputDir$baseName -done -- cgit v1.2.3