Skip to content

Commit ec0cebd

Browse files
committed
base library
1 parent cfe385e commit ec0cebd

6 files changed

Lines changed: 11 additions & 4 deletions

File tree

jlibrary/system/main/regex.ijs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ NB. pcre2 library is in bin or tools/regex
180180
select. UNAME
181181
case. 'Win' do. t=. 'jpcre2.dll'
182182
case. 'Darwin' do. t=. 'libjpcre2.dylib'
183+
case. 'Android' do. pcre2dll=: 'libjpcre2.so' return.
183184
case. do. t=. 'libjpcre2.so'
184185
end.
185186

jlibrary/system/main/stdlib.ijs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ if. notdef 'UNAME' do.
4444
end.
4545
if. notdef 'LIBFILE' do.
4646
LIBFILE=: BINPATH,'/',IFUNIX{::'j.dll';(UNAME-:'Darwin'){::'libj.so';'libj.dylib'
47+
else.
48+
LIBFILE=: jpathsep LIBFILE
4749
end.
4850
if. notdef 'FHS' do.
4951
FHS=: IFUNIX>'/'e.LIBFILE

test/g100i.ijs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ assert. , 1 2 3 4 ([: *./@, 1e_6 > [: | [: -/ 0 2 {::"0 _ f)"0 1/ x =: > { 1 2 3
108108
)
109109

110110
NB. failover for infinities
111+
NB. display for debug
112+
techo (+/!.0) _ 0 _
111113
_ = (+/!.0) _ 0 _
112114
_ 15 -: (+/!.0)"1 ] 2 3 $ _ 0 _ 4 5 6
113115
_ = 5 _ +/@:*"1!.0 ] _ 3

test/g300.ijs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ NB. 6!:6 arch NB. Restore AVX
151151
1
152152
)
153153

154+
NB. display for debug
155+
techo 0 +/ .* _
154156
0 -: 0 +/ .* _
155157
0 -: 0 +/ .*~_
156158
0 -: 0 +/ .* __

test/gdll.ijs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
prolog './gdll.ijs'
22
NB. DLL call ------------------------------------------------------------
33

4-
load'dll'
5-
4+
techo 'LIBFILE:',LIBFILE
5+
techo 'LIBTSDLL:',LIBTSDLL
66
lib=: LIBTSDLL
77

88
dcd=: 4 : '(lib,x) cd y'

test/gdll_df.ijs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ NB. tests were roughly moved here from original gdll
88
NB. there are tests here that could and should be moved back to gdll
99
NB. e.g. test with dec of d *d *d would work on raspberry
1010

11-
load'dll'
12-
11+
techo 'LIBFILE:',LIBFILE
12+
techo 'LIBTSDLL:',LIBTSDLL
1313
lib=: LIBTSDLL
1414

1515
dcd=: 4 : '(lib,x) cd y'

0 commit comments

Comments
 (0)