Unify (and fix) the naming convention of structures (#1358)

The naming convention of the project for `struct`s is
`typedef struct x_t { } x_t`, but only if it has self-recursive
pointer members, otherwise `typedef struct { } x_t` is enough.
This patch applies this style consistently throughout the code
base.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-09-21 10:41:36 +02:00
committed by GitHub
parent 513d9f4c9c
commit 2300a68c88
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -533,7 +533,7 @@ typedef enum
* Description of ECMA-object or lexical environment * Description of ECMA-object or lexical environment
* (depending on is_lexical_environment). * (depending on is_lexical_environment).
*/ */
typedef struct ecma_object_t typedef struct
{ {
/** type : 3 bit : ecma_object_type_t or ecma_lexical_environment_type_t /** type : 3 bit : ecma_object_type_t or ecma_lexical_environment_type_t
depending on ECMA_OBJECT_FLAG_BUILT_IN_OR_LEXICAL_ENV depending on ECMA_OBJECT_FLAG_BUILT_IN_OR_LEXICAL_ENV
@@ -891,7 +891,7 @@ typedef enum
/** /**
* ECMA string-value descriptor * ECMA string-value descriptor
*/ */
typedef struct ecma_string_t typedef struct
{ {
/** Reference counter for the string */ /** Reference counter for the string */
uint16_t refs_and_container; uint16_t refs_and_container;
+2 -2
View File
@@ -103,9 +103,9 @@ typedef struct
/** /**
* Node for free chunk list * Node for free chunk list
*/ */
typedef struct mem_pools_chunk typedef struct jmem_pools_chunk_t
{ {
struct mem_pools_chunk *next_p; /* pointer to next pool chunk */ struct jmem_pools_chunk_t *next_p; /* pointer to next pool chunk */
} jmem_pools_chunk_t; } jmem_pools_chunk_t;
/** /**