renamed ecma-defs.h -> src/ecma-globals.h
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Produced files
|
||||
jerry
|
||||
|
||||
# IDE related files
|
||||
nbproject
|
||||
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
*.lo
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
#include "ctx-reference.h"
|
||||
#include "globals.h"
|
||||
#include "ecma-alloc.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-conversion.h"
|
||||
#include "ecma-gc.h"
|
||||
#include "ecma-helpers.h"
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "ctx-reference.h"
|
||||
#include "globals.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
|
||||
/** \addtogroup ctxman Context manager
|
||||
* @{
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "globals.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-helpers.h"
|
||||
#include "ctx-reference.h"
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "ctx-reference.h"
|
||||
#include "globals.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
|
||||
/** \addtogroup ctxman Context manager
|
||||
* @{
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@
|
||||
|
||||
#include "globals.h"
|
||||
#include "ecma-alloc.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-gc.h"
|
||||
#include "mem-poolman.h"
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
#ifndef JERRY_ECMA_ALLOC_H
|
||||
#define JERRY_ECMA_ALLOC_H
|
||||
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
|
||||
/**
|
||||
* Allocate memory for ecma-object
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef JERRY_ECMA_CONVERSION_H
|
||||
#define JERRY_ECMA_CONVERSION_H
|
||||
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-helpers.h"
|
||||
|
||||
extern ecma_Object_t* ecma_ToObject( ecma_Value_t value);
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "globals.h"
|
||||
#include "ecma-alloc.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-gc.h"
|
||||
#include "ecma-helpers.h"
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
* Garbage collector interface
|
||||
*/
|
||||
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
|
||||
extern void ecma_GCInit( void);
|
||||
extern void ecma_RefObject(ecma_Object_t *pObject);
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifndef JERRY_ECMA_DEFS_H
|
||||
#define JERRY_ECMA_DEFS_H
|
||||
#ifndef JERRY_ECMA_GLOBALS_H
|
||||
#define JERRY_ECMA_GLOBALS_H
|
||||
|
||||
#include "globals.h"
|
||||
#include "mem-allocator.h"
|
||||
@@ -309,7 +309,7 @@ typedef struct {
|
||||
uint8_t m_Elements[ ECMA_ARRAY_CHUNK_SIZE_IN_BYTES - sizeof (uint16_t) ];
|
||||
} ecma_ArrayNonFirstChunk_t;
|
||||
|
||||
#endif /* JERRY_ECMA_DEFS_H */
|
||||
#endif /* JERRY_ECMA_GLOBALS_H */
|
||||
|
||||
/**
|
||||
* @}
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "ecma-alloc.h"
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "ecma-helpers.h"
|
||||
#include "jerry-libc.h"
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
#ifndef JERRY_ECMA_HELPERS_H
|
||||
#define JERRY_ECMA_HELPERS_H
|
||||
|
||||
#include "ecma-defs.h"
|
||||
#include "ecma-globals.h"
|
||||
|
||||
extern uintptr_t ecma_CompressPointer(void *pointer);
|
||||
extern void* ecma_DecompressPointer(uintptr_t compressedPointer);
|
||||
|
||||
+3
-4
@@ -13,8 +13,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef JERRY_DEFS_H
|
||||
#define JERRY_DEFS_H
|
||||
#ifndef JERRY_GLOBALS_H
|
||||
#define JERRY_GLOBALS_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
@@ -42,7 +42,6 @@ typedef signed int int32_t;
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
#define NULL ((void*)0)
|
||||
|
||||
#define JERRY_BITSINBYTE 8
|
||||
|
||||
@@ -153,4 +152,4 @@ jerry_SetBitFieldValue(uint32_t container, /**< container to insert bit-field to
|
||||
return ( container & ~shiftedBitFieldMask) | shiftedNewBitFieldValue;
|
||||
} /* jerry_SetBitFieldValue */
|
||||
|
||||
#endif /* !JERRY_DEFS_H */
|
||||
#endif /* !JERRY_GLOBALS_H */
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: actuators.h
|
||||
* Author: egavrin
|
||||
*
|
||||
* Created on July 2, 2014, 2:06 PM
|
||||
*/
|
||||
|
||||
#ifndef ACTUATORS_H
|
||||
#define ACTUATORS_H
|
||||
|
||||
|
||||
#endif /* ACTUATORS_H */
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: common-io.h
|
||||
* Author: egavrin
|
||||
*
|
||||
* Created on July 2, 2014, 2:14 PM
|
||||
*/
|
||||
|
||||
#ifndef COMMON_IO_H
|
||||
#define COMMON_IO_H
|
||||
|
||||
int digital_read(int, int);
|
||||
void digital_write(int, int);
|
||||
|
||||
int analog_read(int, int);
|
||||
void analog_write(int, int);
|
||||
|
||||
#endif /* COMMON_IO_H */
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: sensors.h
|
||||
* Author: egavrin
|
||||
*
|
||||
* Created on July 2, 2014, 2:05 PM
|
||||
*/
|
||||
|
||||
#ifndef SENSORS_H
|
||||
#define SENSORS_H
|
||||
|
||||
|
||||
#endif /* SENSORS_H */
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
|
||||
#include "pretty-printer.h"
|
||||
#include "error.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "globals.h"
|
||||
|
||||
static int intendation;
|
||||
static bool was_function_expression;
|
||||
|
||||
Reference in New Issue
Block a user