This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

change bc to use readline

I recently installed another fresh copy of cygwin and was reminded of a complaint I have with bc...

It doesn't ship with readline support built in - and the source doesn't ship in a way that builds.

To get bc to compile (grabbing source using setup - the simple case):
* scan.l -- comment out the proto for readline: _PROTOTYPE(char *readline, (char *));
* configure --with-readline
* make


At the very least I'd like to see this patch applied to the source (so at least readline support is easy to compile in).


> diff -pu scan.l.orig scan.l
--- scan.l.orig 2003-02-27 14:40:03.000000000 -0800
+++ scan.l      2003-02-27 14:40:12.000000000 -0800
@@ -143,7 +143,7 @@ static int   rl_len = 0;

/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
+/* _PROTOTYPE(char *readline, (char *)); */

/* rl_input puts upto MAX characters into BUF with the number put in
   BUF placed in *RESULT.  If the yy input file is the same as

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]