History

Make array length helper public.

Tor Andersson committed 12 years ago

Commit 9f7141c1 parent 759d6092 files · +4 −2Browse files

Showing the changes to jsarray.c (1 of 2 files). Show all

Unified · Split

jsarray.c+2−2
@@ -2,7 +2,7 @@ · 1 unmodified line
22 #include "jsvalue.h"
33 #include "jsbuiltin.h"
44
5−static unsigned int js_getlength(js_State *J, int idx)
5+unsigned int js_getlength(js_State *J, int idx)
66 {
77 unsigned int len;
88 js_getproperty(J, idx, "length");
@@ -11,7 +11,7 @@ static unsigned int js_getlength(js_State *J, int idx) · 2 unmodified lines
1111 return len;
1212 }
1313
14−static void js_setlength(js_State *J, int idx, unsigned int len)
14+void js_setlength(js_State *J, int idx, unsigned int len)
1515 {
1616 js_pushnumber(J, len);
1717 js_setproperty(J, idx, "length");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t