# Top level Makefile for the Web - Z39.50 gateway
# Europagate, 1995-1996.
#
-# $Id: Makefile.web,v 1.8 1997/02/19 16:47:04 adam Exp $
+# $Id: Makefile.web,v 1.9 2001/02/26 10:35:39 adam Exp $
#
SHELL=/bin/sh
MAKE=make
EGWUSER=nobody
# Location of Tcl
-TCLLIB=-L/usr/local/lib -ltcl8.0 -lm
-TCLINC=-I/usr/local/include
+TCLLIB=-ltcl8.3 -lm
+TCLINC=
# Location of IrTcl
IRTCLDIR=../../ir-tcl
# If you are using YAZ uncomment these lines
ZINC=-I../../yaz/include
-ZLIB=../../yaz/lib/libyaz.a
+ZLIB=../../yaz/lib/.libs/libyaz.a
ZDEFS=
# End of settings ---------------------------------------------
* Europagate, 1995
*
* $Log: ttyemit.c,v $
+ * Revision 1.3 2001/02/26 10:35:40 adam
+ * Updated for version YAZ 1.6 and higher.
+ *
* Revision 1.2 1995/05/16 09:40:55 adam
* LICENSE.
*
static int line_min = 30;
static int line_max = 76;
-static FILE *out_f = stdout;
+static FILE *out_f = 0;
void tty_init (FILE *out, int min, int max)
{
{
int j;
+ if (!out_f)
+ out_f = stdout;
for (j = 0; j<line_col; j++)
putc (line_buf[j], out_f);
putc ('\n', out_f);
{
int i = line_col, j;
+ if (!out_f)
+ out_f = stdout;
while (1)
if (line_buf[--i] == ' ')
{
* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wirtcl.c,v $
+ * Revision 1.18 2001/02/26 10:35:40 adam
+ * Updated for version YAZ 1.6 and higher.
+ *
* Revision 1.17 1996/03/15 14:43:26 adam
* Function egw_wait returns 'cancel' if new request is pending (user
* has cancelled); or egw_wait returns 'timeout' on timeout.
#include <assert.h>
#include <ctype.h>
-#include <log.h>
+#include <yaz/log.h>
#include "wtcl.h"
#include "wirtcl.h"
gw_log (GW_LOG_FATAL, mod, "Cannot make Irtcl_Interp");
exit (1);
}
- log_init(LOG_ALL, "irtcl", "irtcl_log");
+ yaz_log_init(LOG_ALL, "irtcl", "irtcl_log");
/* initialize irtcl */
Tcl_CreateCommand (p->interp, "egw_wait", proc_zwait_invoke, p, NULL);
for (i=0; i<MAX_CALLBACK; i++)