[m-rev.] trivial diff: fix completion link errors

Simon Taylor stayl at cs.mu.OZ.AU
Thu Mar 7 18:14:41 AEDT 2002


Estimated hours taken: 0.1

trace/mercury_trace_completion.c:
	Fix a link error on machines without readline installed.

Index: mercury_trace_completion.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_completion.c,v
retrieving revision 1.1
diff -u -u -r1.1 mercury_trace_completion.c
--- mercury_trace_completion.c	6 Mar 2002 14:35:03 -0000	1.1
+++ mercury_trace_completion.c	7 Mar 2002 07:09:09 -0000
@@ -423,10 +423,14 @@
 MR_trace_filename_completer_next(const char *word, size_t word_len,
 		MR_Completer_Data *data)
 {
+#ifdef MR_NO_USE_READLINE
+	return NULL;
+#else
 	int state;
 	state = (int) *data;
 	*data = (MR_Completer_Data) 1;
 	return filename_completion_function((char *) word, state);
+#endif /* ! MR_NO_USE_READLINE */
 }
 
 /*---------------------------------------------------------------------------*/
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list