mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
Estimated hours taken: 30 Modified files -------------- samples/diff/README: Info about this new version. Put the existing READMEs in reverse order, so that they'll be in the most sensible order for someone reading top-down. samples/diff/Mmakefile: Supply more detail about which bit of this program GCC 2.7.2 under Digital Unix 3.2 doesn't compile properly. samples/diff/diff.m: Slight reorganisation. Accept options, remove some high coupling betweem diff__do_diff and lcss.m. samples/diff/file.m: Add support for attaching a filename to a file. samples/diff/lcss.m: Add more documentation, one slight performance improvement. lcss__to_diff now works on the reversed LCSS, to avoid going to the trouble of reversing it. New files --------- samples/diff/TODO: Meaning should be obvious. samples/diff/diff_out.m: Replacement for diffs.m (which was never a very good name). Now contains code to display a diff in lots more output styles than previously supported. samples/diff/difftype.m: Replacement for lcsstype.m. Contains the type of a diff (but not of an lcss, which is now local to lcss.m, hence the renaming). samples/diff/filter.m: Contains code to filter a diff before being displayed. This is only required if the user specified that they didn't want to see part of the diff (e.g. with --ignore-blank-lines). samples/diff/globals.m: samples/diff/options.m: Support for option handling. Removed files ------------- samples/diff/diffs.m: Functionality moved to diff_out.m. samples/diff/lcsstype.m: Functionality moved to difftype.m.
23 lines
742 B
Plaintext
23 lines
742 B
Plaintext
# An example of a *short* Mmake file
|
|
# In fact you don't really need any Mmake file at all,
|
|
# just `mmake diff.depend; mmake diff' is enough.
|
|
# But `mmake depend; mmake' is standard, so we will
|
|
# define a target `depend' and a default target `all'
|
|
# to make that work.
|
|
|
|
# This source file is hereby placed in the public domain. -fjh (the author).
|
|
|
|
MAIN_TARGET=all
|
|
depend: diff.depend
|
|
all: diff
|
|
|
|
# Unfortunately, diff does not work quite properly when compiled with gcc
|
|
# 2.7.2 under Digital Unix 3.2 due to a bug in gcc. The bug was fixed
|
|
# in 2.7.2.1, so feel free to comment out this line if you're using
|
|
# an unbuggy compiler.
|
|
#
|
|
# BTW, the predicate which isn't compiled correctly is diff_out__show_file
|
|
# in diff_out.m.
|
|
MGNUCFLAGS=-O0
|
|
|