Skip to content

Commit eac28d2

Browse files
committed
create cJSON package
1 parent 46117a3 commit eac28d2

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

package/cJSON/cJSON.pyi

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import imp
2+
from PikaObj import *
3+
4+
5+
class cJSON(TinyObj):
6+
def __init__(self): ...

package/cJSON/cJSON_cJSON.c

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "cJSON_cJSON.h"
2+
3+
void cJSON_cJSON___init__(PikaObj* self) {}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import imp
2+
from PikaObj import *
3+
4+
5+
class cJSON(TinyObj):
6+
def __init__(self): ...

port/linux/package/pikascript/main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import test_cmodule
1010
import TempDevTest as dev
1111
import TemplateDevice
12-
from PikaStdData import String
12+
import cJSON
13+
from PikaStdData import String as S
1314

1415
mem = PikaStdLib.MemChecker()
1516
print('hello pikascript!')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "cJSON_cJSON.h"
2+
3+
void cJSON_cJSON___init__(PikaObj* self) {}

0 commit comments

Comments
 (0)