Skip to content

Commit f0cbd3d

Browse files
authored
Merge pull request #1 from gitoleg/safe-string
compilation with safe string + few fixed warnings
2 parents 2617cca + af326f2 commit f0cbd3d

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.byte
2+
*.native
3+
*.exe
4+
*.cma
5+
*.cmi
6+
*.cmo
7+
*.cmx
8+
*.cmxa
9+
*.a
10+
*.o
11+
*/.dep
12+
_build/
13+
frontc/clexer.ml
14+
frontc/clexer.mli
15+
frontc/cparser.ml
16+
frontc/cparser.mli
17+
frontc/cparser.output
18+
calipso/calipso
19+
calipso/calipso_stat
20+
ctoxml/ctoxml
21+
printc/printc

calipso/algo.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ let apply_weights nd ins outs =
303303

304304
let test_edges stats =
305305
let lng = List.length stats in
306-
let wghts = Array.create lng 0 in
306+
let wghts = Array.make lng 0 in
307307
begin
308308
for i = 0 to (lng - 1) do
309309
for j = 0 to (lng - 1) do

calipso/label.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module BitField =
1414
struct
1515
type t = bool array
1616

17-
let empty (sz : int) : t = Array.create sz false
17+
let empty (sz : int) : t = Array.make sz false
1818

1919
(*** accessors **)
2020
let size (bf : t) : int = Array.length bf

frontc/clexer.mll

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ and chr =
396396
{
397397

398398
(*** get_buffer ***)
399-
let get_buffer (hr : handle ref) (dst : string) (len : int) : int =
399+
let get_buffer (hr : handle ref) (dst : bytes) (len : int) : int =
400400
(*let (inter, chan, line, buffer, pos, lineno, out, name) = !hr in*)
401401
let h = !hr in
402402
try

0 commit comments

Comments
 (0)