Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Revert deprecation warning fix, Fixes #8 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/RegexScanner.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let make_line_reader fname =
None
else
try
Some (Scanf.bscanf (Scanf.Scanning.from_channel in_channel) "%[^\r\n]\n" (fun x -> x))
Some (Scanf.fscanf in_channel "%[^\r\n]\n" (fun x -> x))
with
End_of_file ->
close_in_noerr in_channel;
Expand Down
2 changes: 1 addition & 1 deletion code/RuleScanner.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let make_line_reader fname =
None
else
try
Some (Scanf.bscanf (Scanf.Scanning.from_channel in_channel) "%[^\r\n]\n" (fun x -> x))
Some (Scanf.fscanf in_channel "%[^\r\n]\n" (fun x -> x))
with
End_of_file ->
let _ = close_in_noerr in_channel in
Expand Down