• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Index: jsmn/jsmn.h
2===================================================================
3--- jsmn.orig/jsmn.h
4+++ jsmn/jsmn.h
5@@ -21,6 +21,12 @@
6  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7  * SOFTWARE.
8  */
9+// ANDROID CHANGE: Default to header only.
10+#ifndef JSMN_IMPL
11+#define JSMN_HEADER
12+#endif
13+// END ANDROID CHANGE
14+
15 #ifndef JSMN_H
16 #define JSMN_H
17
18Index: jsmn/jsmn.c
19===================================================================
20--- /dev/null
21+++ jsmn/jsmn.c
22@@ -0,0 +1,30 @@
23+/*
24+ * Copyright (C) 2019 The Android Open Source Project
25+ * All rights reserved.
26+ *
27+ * Redistribution and use in source and binary forms, with or without
28+ * modification, are permitted provided that the following conditions
29+ * are met:
30+ *  * Redistributions of source code must retain the above copyright
31+ *    notice, this list of conditions and the following disclaimer.
32+ *  * Redistributions in binary form must reproduce the above copyright
33+ *    notice, this list of conditions and the following disclaimer in
34+ *    the documentation and/or other materials provided with the
35+ *    distribution.
36+ *
37+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
38+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
39+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
40+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
41+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
42+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
43+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
44+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
45+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
46+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
47+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48+ * SUCH DAMAGE.
49+ */
50+
51+#define JSMN_IMPL
52+#include "jsmn.h"
53