summaryrefslogtreecommitdiffhomepage
path: root/dev/crt/alloca.hxx
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-28 19:13:46 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-28 19:13:46 +0200
commit421db65331663304466577b7187780d9eba18077 (patch)
tree3c7c4dc68537935b8cf98313e6a5bfe51786b7d2 /dev/crt/alloca.hxx
parentb6e416c9986bb545956a642d626e6aafd54f3b76 (diff)
feat: Add common XPCOM controls directory, restructure project, and introduce API breaking changes
- Added a new directory for common XPCOM controls to organize reusable components. - Restructured project layout for better modularity and maintainability. - Introduced API breaking changes in the process, requiring adjustments for backward compatibility. Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/crt/alloca.hxx')
-rw-r--r--dev/crt/alloca.hxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev/crt/alloca.hxx b/dev/crt/alloca.hxx
new file mode 100644
index 00000000..fedcb25d
--- /dev/null
+++ b/dev/crt/alloca.hxx
@@ -0,0 +1,18 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+ File: alloca.hxx
+ Purpose: Stack allocation functions.
+
+------------------------------------------- */
+
+#pragma once
+
+typedef void* ptr_type;
+typedef __SIZE_TYPE__ size_type;
+
+inline ptr_type __ndk_alloca(size_type sz)
+{
+ return __builtin_alloca(sz);
+}