Files
mercury/tests/debugger/declarative/sort.input
Ian MacLarty 13fff0b5eb Make some predicates in the io library return strings instead of NULL.
Estimated hours taken: 1
Branches: main and 0.12

Make some predicates in the io library return strings instead of NULL.  This
is a problem for the debugger since it segfaults when trying to display the
strings on screen.  mdb should probably be made to handle invalid string
pointers better, but that requires a bigger change.

library/io.m:
	Make ML_maybe_make_err_msg, ML_maybe_make_win32_err_msg and
	read_line_as_string_2 return an empty string instead of NULL.

tests/debugger/declarative/Mmakefile:
tests/debugger/declarative/sort.exp:
tests/debugger/declarative/sort.inp:
tests/debugger/declarative/sort.input:
tests/debugger/declarative/sort.m:
	Add a regression test.  This test segfaulted previously.
2005-05-20 07:14:36 +00:00

5 lines
23 B
Plaintext