renamed _ -> -

This commit is contained in:
e.gavrin
2014-07-02 13:54:22 +04:00
parent 91313597c6
commit 5923418e69
25 changed files with 73 additions and 69 deletions
+10 -6
View File
@@ -20,22 +20,26 @@ SOURCES = \
$(sort \ $(sort \
$(wildcard ./src/*.c)) $(wildcard ./src/*.c))
INCLUDES = -I src INCLUDES = \
-I src \
-I src/libperipherals \
-I src/libcoreint
OBJS = $(sort \ OBJS = \
$(sort \
$(patsubst %.c,./$(OBJ_DIR)/%.o,$(notdir $(SOURCES)))) $(patsubst %.c,./$(OBJ_DIR)/%.o,$(notdir $(SOURCES))))
CC = $(CROSS_COMPILE)gcc-4.8 CC = $(CROSS_COMPILE)gcc-4.9
LD = $(CROSS_COMPILE)ld LD = $(CROSS_COMPILE)ld
OBJDUMP = $(CROSS_COMPILE)objdump OBJDUMP = $(CROSS_COMPILE)objdump
OBJCOPY = $(CROSS_COMPILE)objcopy OBJCOPY = $(CROSS_COMPILE)objcopy
SIZE = $(CROSS_COMPILE)size SIZE = $(CROSS_COMPILE)size
# General flags # General flags
CFLAGS ?= $(INCLUDES) -Wall -std=c99 -m32# -fdiagnostics-color=always CFLAGS ?= $(INCLUDES) -std=c99 -m32 -fdiagnostics-color=always
#CFLAGS += -Wextra -Wpedantic -Wformat-security -Wlogical-op #CFLAGS += -Wall -Wextra -Wpedantic -Wlogical-op -Winline
#CFLAGS += -Wformat-nonliteral -Winit-self -Wstack-protector #CFLAGS += -Wformat-nonliteral -Winit-self -Wstack-protector
#CFLAGS += -Wconversion -Wsign-conversion -Winline #CFLAGS += -Wconversion -Wsign-conversion -Wformat-security
#CFLAGS += -Wstrict-prototypes -Wmissing-prototypes #CFLAGS += -Wstrict-prototypes -Wmissing-prototypes
# Flags for MCU # Flags for MCU
+9 -9
View File
@@ -13,16 +13,16 @@
* limitations under the License. * limitations under the License.
*/ */
#include "ctx_manager.h" #include "ctx-manager.h"
#include "ctx-reference.h" #include "ctx-reference.h"
#include "defs.h" #include "globals.h"
#include "ecma_alloc.h" #include "ecma-alloc.h"
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_conversion.h" #include "ecma-conversion.h"
#include "ecma_gc.h" #include "ecma-gc.h"
#include "ecma_helpers.h" #include "ecma-helpers.h"
#include "jerry_libc.h" #include "jerry-libc.h"
#include "mem_poolman.h" #include "mem-poolman.h"
/** \addtogroup ctxman Context manager /** \addtogroup ctxman Context manager
* @{ * @{
+2 -2
View File
@@ -17,8 +17,8 @@
#define JERRY_CTX_MANAGER_H #define JERRY_CTX_MANAGER_H
#include "ctx-reference.h" #include "ctx-reference.h"
#include "defs.h" #include "globals.h"
#include "ecma_defs.h" #include "ecma-defs.h"
/** \addtogroup ctxman Context manager /** \addtogroup ctxman Context manager
* @{ * @{
+3 -3
View File
@@ -24,9 +24,9 @@
* Implementation of Reference's operations * Implementation of Reference's operations
*/ */
#include "defs.h" #include "globals.h"
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_helpers.h" #include "ecma-helpers.h"
#include "ctx-reference.h" #include "ctx-reference.h"
/** /**
+2 -2
View File
@@ -17,8 +17,8 @@
#define CTX_REFERENCE_H #define CTX_REFERENCE_H
#include "ctx-reference.h" #include "ctx-reference.h"
#include "defs.h" #include "globals.h"
#include "ecma_defs.h" #include "ecma-defs.h"
/** \addtogroup ctxman Context manager /** \addtogroup ctxman Context manager
* @{ * @{
+5 -5
View File
@@ -32,11 +32,11 @@
* else - shutdown engine. * else - shutdown engine.
*/ */
#include "defs.h" #include "globals.h"
#include "ecma_alloc.h" #include "ecma-alloc.h"
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_gc.h" #include "ecma-gc.h"
#include "mem_poolman.h" #include "mem-poolman.h"
/** /**
* Template of an allocation routine. * Template of an allocation routine.
+1 -1
View File
@@ -23,7 +23,7 @@
#ifndef JERRY_ECMA_ALLOC_H #ifndef JERRY_ECMA_ALLOC_H
#define JERRY_ECMA_ALLOC_H #define JERRY_ECMA_ALLOC_H
#include "ecma_defs.h" #include "ecma-defs.h"
/** /**
* Allocate memory for ecma-object * Allocate memory for ecma-object
@@ -23,8 +23,8 @@
#ifndef JERRY_ECMA_CONVERSION_H #ifndef JERRY_ECMA_CONVERSION_H
#define JERRY_ECMA_CONVERSION_H #define JERRY_ECMA_CONVERSION_H
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_helpers.h" #include "ecma-helpers.h"
extern ecma_Object_t* ecma_ToObject( ecma_Value_t value); extern ecma_Object_t* ecma_ToObject( ecma_Value_t value);
+2 -2
View File
@@ -23,8 +23,8 @@
#ifndef JERRY_ECMA_DEFS_H #ifndef JERRY_ECMA_DEFS_H
#define JERRY_ECMA_DEFS_H #define JERRY_ECMA_DEFS_H
#include "defs.h" #include "globals.h"
#include "mem_allocator.h" #include "mem-allocator.h"
/** \addtogroup compressedpointer Compressed pointer /** \addtogroup compressedpointer Compressed pointer
* @{ * @{
+5 -5
View File
@@ -24,11 +24,11 @@
* Garbage collector implementation * Garbage collector implementation
*/ */
#include "defs.h" #include "globals.h"
#include "ecma_alloc.h" #include "ecma-alloc.h"
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_gc.h" #include "ecma-gc.h"
#include "ecma_helpers.h" #include "ecma-helpers.h"
/** /**
* Queue of objects, awaiting for GC * Queue of objects, awaiting for GC
+1 -1
View File
@@ -27,7 +27,7 @@
* Garbage collector interface * Garbage collector interface
*/ */
#include "ecma_defs.h" #include "ecma-defs.h"
extern void ecma_GCInit( void); extern void ecma_GCInit( void);
extern void ecma_RefObject(ecma_Object_t *pObject); extern void ecma_RefObject(ecma_Object_t *pObject);
+4 -4
View File
@@ -24,10 +24,10 @@
* Implementation of helpers for operations with ECMA data types * Implementation of helpers for operations with ECMA data types
*/ */
#include "ecma_alloc.h" #include "ecma-alloc.h"
#include "ecma_defs.h" #include "ecma-defs.h"
#include "ecma_helpers.h" #include "ecma-helpers.h"
#include "jerry_libc.h" #include "jerry-libc.h"
/** /**
* Compress pointer. * Compress pointer.
+1 -1
View File
@@ -23,7 +23,7 @@
#ifndef JERRY_ECMA_HELPERS_H #ifndef JERRY_ECMA_HELPERS_H
#define JERRY_ECMA_HELPERS_H #define JERRY_ECMA_HELPERS_H
#include "ecma_defs.h" #include "ecma-defs.h"
extern uintptr_t ecma_CompressPointer(void *pointer); extern uintptr_t ecma_CompressPointer(void *pointer);
extern void* ecma_DecompressPointer(uintptr_t compressedPointer); extern void* ecma_DecompressPointer(uintptr_t compressedPointer);
View File
+1 -1
View File
@@ -17,7 +17,7 @@
* Jerry libc implementation * Jerry libc implementation
*/ */
#include "jerry_libc.h" #include "jerry-libc.h"
#include <stdarg.h> #include <stdarg.h>
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef JERRY_LIBC_H #ifndef JERRY_LIBC_H
#define JERRY_LIBC_H #define JERRY_LIBC_H
#include "defs.h" #include "globals.h"
extern void *libc_memset(void *s, int c, size_t n); extern void *libc_memset(void *s, int c, size_t n);
extern int libc_memcmp(const void *s1, const void *s2, size_t n); extern int libc_memcmp(const void *s1, const void *s2, size_t n);
+2 -2
View File
@@ -22,8 +22,8 @@
#include "parser.h" #include "parser.h"
#include "pretty-printer.h" #include "pretty-printer.h"
#include "ctx_manager.h" #include "ctx-manager.h"
#include "mem_allocator.h" #include "mem-allocator.h"
int int
main (int argc, char **argv) main (int argc, char **argv)
+5 -5
View File
@@ -17,11 +17,11 @@
* Allocator implementation * Allocator implementation
*/ */
#include "defs.h" #include "globals.h"
#include "mem_allocator.h" #include "mem-allocator.h"
#include "mem_heap.h" #include "mem-heap.h"
#include "mem_poolman.h" #include "mem-poolman.h"
#include "ctx_manager.h" #include "ctx-manager.h"
/** /**
* Area for heap * Area for heap
+2 -2
View File
@@ -23,8 +23,8 @@
#ifndef JERRY_MEM_ALLOCATOR_H #ifndef JERRY_MEM_ALLOCATOR_H
#define JERRY_MEM_ALLOCATOR_H #define JERRY_MEM_ALLOCATOR_H
#include "defs.h" #include "globals.h"
#include "mem_heap.h" #include "mem-heap.h"
/** /**
* Logarithm of required alignment for allocated units/blocks * Logarithm of required alignment for allocated units/blocks
+4 -4
View File
@@ -24,10 +24,10 @@
* Heap implementation * Heap implementation
*/ */
#include "defs.h" #include "globals.h"
#include "jerry_libc.h" #include "jerry-libc.h"
#include "mem_allocator.h" #include "mem-allocator.h"
#include "mem_heap.h" #include "mem-heap.h"
/** /**
* Magic numbers for heap memory blocks * Magic numbers for heap memory blocks
+1 -1
View File
@@ -26,7 +26,7 @@
#ifndef JERRY_MEM_HEAP_H #ifndef JERRY_MEM_HEAP_H
#define JERRY_MEM_HEAP_H #define JERRY_MEM_HEAP_H
#include "defs.h" #include "globals.h"
/** /**
* Type of allocation (argument of mem_Alloc) * Type of allocation (argument of mem_Alloc)
+4 -4
View File
@@ -26,10 +26,10 @@
#define JERRY_MEM_POOL_INTERNAL #define JERRY_MEM_POOL_INTERNAL
#include "defs.h" #include "globals.h"
#include "jerry_libc.h" #include "jerry-libc.h"
#include "mem_allocator.h" #include "mem-allocator.h"
#include "mem_pool.h" #include "mem-pool.h"
/** /**
* Magic number to fill free chunks in debug version * Magic number to fill free chunks in debug version
View File
+5 -5
View File
@@ -26,11 +26,11 @@
#define JERRY_MEM_POOL_INTERNAL #define JERRY_MEM_POOL_INTERNAL
#include "defs.h" #include "globals.h"
#include "mem_allocator.h" #include "mem-allocator.h"
#include "mem_heap.h" #include "mem-heap.h"
#include "mem_pool.h" #include "mem-pool.h"
#include "mem_poolman.h" #include "mem-poolman.h"
/** /**
* Lists of pools for possible chunk sizes * Lists of pools for possible chunk sizes
+1 -1
View File
@@ -27,7 +27,7 @@
#ifndef JERRY_MEM_POOLMAN_H #ifndef JERRY_MEM_POOLMAN_H
#define JERRY_MEM_POOLMAN_H #define JERRY_MEM_POOLMAN_H
#include "defs.h" #include "globals.h"
/** /**
* Pool chunks's possible sizes * Pool chunks's possible sizes