Commit dfa9afb
authored
Introduce JERRY_ZSTR_ARG macro to avoid jerryx_print_string, jerryx_print_byte, jerry_port_print_byte, strlen (#4982)
Replace usage of jerryx_print_byte, jerryx_print_string with jerryx_print_buffer.
As we now have JERRY_ZSTR_ARG, so we can take advantage of it
With this, the jerry_port_print_byte port api won't need any more
this reduced the port api surface
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com1 parent e4017f0 commit dfa9afbCopy full SHA for dfa9afb
File tree
Expand file treeCollapse file tree
15 files changed
+64
-125
lines changedOpen diff view settings
Filter options
- docs
- jerry-core
- api
- include
- jerry-ext
- include/jerryscript-ext
- util
- jerry-main
- jerry-port/common
- targets/os
- nuttx
- zephyr/src
Expand file treeCollapse file tree
15 files changed
+64
-125
lines changedOpen diff view settings
Collapse file
-12Lines changed: 0 additions & 12 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
116 | 116 | |
117 | 117 | |
118 | 118 | |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | 119 | |
132 | 120 | |
133 | 121 | |
|
Collapse file
docs/10.EXT-REFERENCE-HANDLER.md
Copy file name to clipboardExpand all lines: docs/10.EXT-REFERENCE-HANDLER.md+4-5Lines changed: 4 additions & 5 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
316 | 316 | |
317 | 317 | |
318 | 318 | |
319 | | - |
320 | | - |
321 | | - |
| 319 | + |
| 320 | + |
322 | 321 | |
323 | 322 | |
324 | 323 | |
325 | 324 | |
326 | 325 | |
327 | | - |
| 326 | + |
328 | 327 | |
329 | 328 | |
330 | 329 | |
| ||
345 | 344 | |
346 | 345 | |
347 | 346 | |
348 | | - |
| 347 | + |
349 | 348 | |
350 | 349 | |
351 | 350 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
770 | 770 | |
771 | 771 | |
772 | 772 | |
| 773 | + |
Collapse file
jerry-core/api/jerry-snapshot.c
Copy file name to clipboardExpand all lines: jerry-core/api/jerry-snapshot.c+30-28Lines changed: 30 additions & 28 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1455 | 1455 | |
1456 | 1456 | |
1457 | 1457 | |
1458 | | - |
1459 | | - |
| 1458 | + |
| 1459 | + |
1460 | 1460 | |
1461 | 1461 | |
1462 | 1462 | |
1463 | 1463 | |
1464 | 1464 | |
1465 | 1465 | |
1466 | | - |
1467 | | - |
1468 | | - |
1469 | | - |
1470 | | - |
1471 | 1466 | |
1472 | 1467 | |
1473 | | - |
| 1468 | + |
1474 | 1469 | |
1475 | 1470 | |
1476 | 1471 | |
| ||
1492 | 1487 | |
1493 | 1488 | |
1494 | 1489 | |
1495 | | - |
1496 | | - |
| 1490 | + |
| 1491 | + |
| 1492 | + |
| 1493 | + |
1497 | 1494 | |
1498 | 1495 | |
1499 | 1496 | |
| ||
1516 | 1513 | |
1517 | 1514 | |
1518 | 1515 | |
1519 | | - |
| 1516 | + |
| 1517 | + |
| 1518 | + |
| 1519 | + |
1520 | 1520 | |
1521 | 1521 | |
1522 | 1522 | |
| ||
1609 | 1609 | |
1610 | 1610 | |
1611 | 1611 | |
1612 | | - |
| 1612 | + |
| 1613 | + |
1613 | 1614 | |
1614 | 1615 | |
1615 | 1616 | |
1616 | 1617 | |
1617 | | - |
| 1618 | + |
1618 | 1619 | |
1619 | 1620 | |
1620 | | - |
| 1621 | + |
1621 | 1622 | |
1622 | 1623 | |
1623 | 1624 | |
1624 | | - |
| 1625 | + |
1625 | 1626 | |
1626 | 1627 | |
1627 | 1628 | |
1628 | 1629 | |
1629 | 1630 | |
1630 | 1631 | |
1631 | | - |
| 1632 | + |
1632 | 1633 | |
1633 | 1634 | |
1634 | 1635 | |
| ||
1645 | 1646 | |
1646 | 1647 | |
1647 | 1648 | |
1648 | | - |
| 1649 | + |
1649 | 1650 | |
1650 | 1651 | |
1651 | 1652 | |
1652 | | - |
| 1653 | + |
1653 | 1654 | |
1654 | 1655 | |
1655 | | - |
| 1656 | + |
1656 | 1657 | |
1657 | 1658 | |
1658 | | - |
| 1659 | + |
| 1660 | + |
1659 | 1661 | |
1660 | 1662 | |
1661 | | - |
| 1663 | + |
1662 | 1664 | |
1663 | 1665 | |
1664 | 1666 | |
| ||
1668 | 1670 | |
1669 | 1671 | |
1670 | 1672 | |
1671 | | - |
| 1673 | + |
1672 | 1674 | |
1673 | 1675 | |
1674 | 1676 | |
1675 | | - |
| 1677 | + |
1676 | 1678 | |
1677 | 1679 | |
1678 | 1680 | |
1679 | 1681 | |
1680 | | - |
| 1682 | + |
1681 | 1683 | |
1682 | | - |
| 1684 | + |
1683 | 1685 | |
1684 | 1686 | |
1685 | 1687 | |
1686 | | - |
| 1688 | + |
1687 | 1689 | |
1688 | 1690 | |
1689 | 1691 | |
1690 | 1692 | |
1691 | 1693 | |
1692 | 1694 | |
1693 | 1695 | |
1694 | | - |
| 1696 | + |
1695 | 1697 | |
1696 | 1698 | |
1697 | 1699 | |
1698 | 1700 | |
1699 | | - |
| 1701 | + |
1700 | 1702 | |
1701 | 1703 | |
1702 | 1704 | |
|
Collapse file
jerry-core/include/jerryscript-port.h
Copy file name to clipboardExpand all lines: jerry-core/include/jerryscript-port.h-10Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
154 | | - |
155 | 145 | |
156 | 146 | |
157 | 147 | |
|
Collapse file
jerry-core/include/jerryscript-types.h
Copy file name to clipboardExpand all lines: jerry-core/include/jerryscript-types.h+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
856 | 856 | |
857 | 857 | |
858 | 858 | |
| 859 | + |
| 860 | + |
| 861 | + |
| 862 | + |
| 863 | + |
859 | 864 | |
860 | 865 | |
861 | 866 | |
|
Collapse file
jerry-ext/include/jerryscript-ext/print.h
Copy file name to clipboardExpand all lines: jerry-ext/include/jerryscript-ext/print.h-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
26 | 25 | |
27 | | - |
28 | 26 | |
29 | 27 | |
30 | 28 | |
|
Collapse file
jerry-ext/include/jerryscript-ext/repl.h
Copy file name to clipboardExpand all lines: jerry-ext/include/jerryscript-ext/repl.h+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
|
Collapse file
+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
| 28 | + |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
|
Collapse file
+1-33Lines changed: 1 addition & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
61 | 61 | |
62 | 62 | |
63 | 63 | |
64 | | - |
| 64 | + |
65 | 65 | |
66 | 66 | |
67 | 67 | |
| ||
111 | 111 | |
112 | 112 | |
113 | 113 | |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | 114 | |
129 | 115 | |
130 | 116 | |
| ||
140 | 126 | |
141 | 127 | |
142 | 128 | |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
157 | | - |
158 | | - |
159 | | - |
160 | | - |
161 | 129 | |
162 | 130 | |
163 | 131 | |
|
0 commit comments