Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h b/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
index 32683d8dd..b1c7d7cae 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/base/etMemory.h
@@ -1,47 +1,47 @@
-/*******************************************************************************
- * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * CONTRIBUTORS:
- * Henrik Rentz-Reichert (initial contribution)
- *
- *******************************************************************************/
-
-#ifndef _ETMEMORY_H_
-#define _ETMEMORY_H_
-
-#include "etDatatypes.h"
-
-#define CEIL_ALIGN(n) ((n)+((ALIGNMENT-((n)&(ALIGNMENT-1)))&(ALIGNMENT-1)))
-
-struct etMemory;
-
-/**
- * allocates memory from the heap
- *
- * \param heap pointer to the heap memory
- * \param size the size of the requested memory in bytes
- */
-typedef void* etMemory_alloc(struct etMemory* heap, etUInt16 size);
-
-/**
- * frees memory previously allocated from the heap
- *
- * \param heap pointer to the heap memory
- * \param obj pointer to the memory returned
- * \param size the size in bytes of the memory returned
- */
-typedef void etMemory_free(struct etMemory* heap, void* obj, etUInt16 size);
-
-typedef struct etMemory {
- /** size of the heap in bytes */
- etUInt32 size;
-
- etMemory_alloc* alloc;
- etMemory_free* free;
-} etMemory;
-
-#endif /* _ETMEMORY_H_ */
+/*******************************************************************************
+ * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * CONTRIBUTORS:
+ * Henrik Rentz-Reichert (initial contribution)
+ *
+ *******************************************************************************/
+
+#ifndef _ETMEMORY_H_
+#define _ETMEMORY_H_
+
+#include "etDatatypes.h"
+
+#define CEIL_ALIGN(n) ((n)+((ALIGNMENT-((n)&(ALIGNMENT-1)))&(ALIGNMENT-1)))
+
+struct etMemory;
+
+/**
+ * allocates memory from the heap
+ *
+ * \param heap pointer to the heap memory
+ * \param size the size of the requested memory in bytes
+ */
+typedef void* etMemory_alloc(struct etMemory* heap, etUInt16 size);
+
+/**
+ * frees memory previously allocated from the heap
+ *
+ * \param heap pointer to the heap memory
+ * \param obj pointer to the memory returned
+ * \param size the size in bytes of the memory returned
+ */
+typedef void etMemory_free(struct etMemory* heap, void* obj, etUInt16 size);
+
+typedef struct etMemory {
+ /** size of the heap in bytes */
+ etUInt32 size;
+
+ etMemory_alloc* alloc;
+ etMemory_free* free;
+} etMemory;
+
+#endif /* _ETMEMORY_H_ */

Back to the top