Add jerryscript.h and mark jerry-api.h as deprecated (#1579)

Add a notification for JerryScript API users that the jerry-api.h
will be removed in the future and should use the jerryscript.h
header instead.

Also update the examples in the docs and the targets where
the jerry-api.h is used.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
Péter Gál
2017-02-16 08:46:08 +01:00
committed by László Langó
parent 64a340ffeb
commit 75d8226af3
26 changed files with 381 additions and 358 deletions
+8 -8
View File
@@ -6,7 +6,7 @@ This guide is intended to introduce you to JerryScript embedding API through cre
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
int
main (int argc, char *argv[])
@@ -38,7 +38,7 @@ Here we perform the same actions, as `jerry_run_simple`, while splitting into se
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
int
main (int argc, char *argv[])
@@ -77,7 +77,7 @@ Our code is more complex now, but it introduces possibilities to interact with J
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
int
main (int argc, char *argv[])
@@ -119,7 +119,7 @@ This way, we execute two independent script parts in one execution environment.
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
int
main (int argc, char *argv[]) {
@@ -176,7 +176,7 @@ The following example function will output a JavaScript value:
#include <stdlib.h>
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
#include "jerry-port.h"
static void
@@ -246,7 +246,7 @@ Shell operation can be described with the following loop:
#include <stdlib.h>
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
#include "jerry-port.h"
static void print_value (const jerry_value_t);
@@ -324,7 +324,7 @@ In this example we demonstrate how to use native function and structures in Java
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
struct my_struct
{
@@ -410,7 +410,7 @@ Here we create a JS Object with `jerry_eval`, then extend it with a native funct
```c
#include <string.h>
#include "jerry-api.h"
#include "jerryscript.h"
/**
* Add param to 'this.x'