src/xdefaults.C
src/xpm.C
-src/test/.cvsignore
-src/test/Makefile.in
-src/test/gettty.c
-src/test/strings-memmove.c
-
src/gentables
src/gencompose
src/genlinedraw
# ./Makefile.in -*- Makefile -*-
-# $Id: Makefile.in,v 1.9 2005-01-17 01:55:12 root Exp $
+# $Id: Makefile.in,v 1.10 2005-02-02 08:09:23 root Exp $
@MCOMMON@
srcdir = @srcdir@
first_rule: all
dummy:
-subdirs = src doc src/test
+subdirs = src doc
allsubdirs = $(subdirs)
DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog
Makefile \
doc/Makefile \
src/Makefile \
-src/test/Makefile \
src/rxvtlib.h \
])
AC_OUTPUT
include_time_h="/* #include <time.h> */"
fi
- ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h"
+ ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
- "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
"src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
-# $Id: Makefile.in,v 1.23 2005-01-16 18:05:37 root Exp $
+# $Id: Makefile.in,v 1.24 2005-02-02 08:09:23 root Exp $
@MCOMMON@
LINT = lint -DNARROWPROTO=1 $(XINC) -chapbxz
cleandir: realclean
distclean: realclean
- if test $(srcdir) = .; then $(MAKE) realclean; fi
(cd $(srcdir); $(RMF) Makefile)
install: allbin alldoc
+++ /dev/null
-Makefile
-*.lo
-*.org
-.libs
-qplot
rxvt_term::init_vars ()
{
sw_term.start (SIGTERM);
+ sw_int.start (SIGINT);
pix_colors_focused = new rxvt_color [TOTAL_COLORS];
#ifdef OFF_FOCUS_FADING
#ifdef MENUBAR
menu_readonly = 1;
# if ! (MENUBAR_MAX > 1)
- CurrentBar = & (BarList);
+ CurrentBar = &BarList;
# endif /* (MENUBAR_MAX > 1) */
#endif
+++ /dev/null
-#make src/test/Makefile.in -*- Makefile -*-
-@MCOMMON@
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-.PATH: @srcdir@
-
-basedir = ../..
-thisdir = src/test
-
-first_rule:
-dummy:
-
-SRCS = gettty.c strings-memmove.c
-OBJS = gettty.o strings-memmove.o
-HDRS =
-
-#
-# Distribution variables
-#
-DEBUG= -DDEBUG_TTY
-
-DIST = $(HDRS) $(SRCS) Makefile.in
-
-# inference rules
-.c.o:
- $(CC) -c $(CPPFLAGS) $(XINC) -I. -I$(basedir) -I$(srcdir) $(DEFS) $(CFLAGS) $<
-#-------------------------------------------------------------------------
-all:
-
-tests:
- @(cd $(srcdir)/..; ${MAKE} .protos)
- @${MAKE} tests-bin run-tests
-
-tests-bin: gettty gettty-debug strings-memmove
-
-run-tests:
- @echo ""
- @echo "RUNNING TESTS ----"
- @echo "Testing open of (pty/tty) pseudo-tty pairs"
- @./gettty concise || ./gettty-debug
- @echo "Testing possible replacement for memmove() with --enable-strings"
- @./strings-memmove
-
-gettty: gettty.o ptytty.o
- $(CC) $(LDFLAGS) -o $@ gettty.o ptytty.o $(LIBS)
-
-gettty-debug: gettty.o ptytty-debug.o
- $(CC) $(LDFLAGS) -o $@ gettty.o ptytty-debug.o $(LIBS)
-
-ptytty.o: $(srcdir)/../ptytty.c
- $(CC) -o ptytty.o $(CPPFLAGS) $(CFLAGS) -c $(srcdir)/../ptytty.c
-
-ptytty-debug.o: $(srcdir)/../ptytty.c
- $(CC) -o ptytty-debug.o $(CPPFLAGS) $(CFLAGS) $(DEBUG) -c $(srcdir)/../ptytty.c
-
-strings-memmove: strings-memmove.o
- $(CC) $(LDFLAGS) -o $@ strings-memmove.o $(LIBS)
-
-$(srcdir)/../strings.intpro: $(srcdir)/../strings.c
- (cd $(srcdir)/..; ${MAKE} strings.intpro)
-
-tags: $(SRCS)
- ctags $(SRCS)
-
-allbin:
-
-alldoc:
-
-clean:
- $(RMF) gettty strings-memmove core a.out *.o *.bak *~
-
-realclean: clean
- $(RMF) tags
-
-cleandir: realclean
-
-distclean:
- (cd $(srcdir); $(RMF) strings-memmove *~ *.o core a.out)
- if test $(srcdir) = .; then $(MAKE) realclean; fi
- (cd $(srcdir); $(RMF) Makefile)
-
-install:
-
-uninstall:
-
-distdirs:
- mkdir $(basedir)/../$(VERNAME)/$(thisdir)
-
-distcopy:
- $(CP) -p $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)
-
-# -----------------------------------------------------------------------
-# DO NOT DELETE: ugly dependency list follows
-
-strings-memmove.o: strings-memmove.c $(srcdir)/../strings.c $(srcdir)/../strings.intpro
+++ /dev/null
-#include "../../config.h"
-
-#include <stdio.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-#include <sys/wait.h>
-
-int verb = 1;
-
-int
-main(int argc)
-{
- int i, pid;
- int fd_pty, fd_tty;
- const char *ttydev;
-
- if (argc != 1)
- verb = 0;
- fd_pty = fd_tty = -1;
- ttydev = NULL;
- fd_pty = rxvt_get_pty(&fd_tty, &ttydev);
- if (fd_pty < 0) {
- fprintf(stderr, "rxvt_get_pty() failed\n");
- exit(1);
- }
- if (verb)
- fprintf(stderr, "rxvt_get_pty() OK. Found %s (opened pty fd: %d)\n", ttydev, fd_pty);
-
- if (fd_tty < 0) {
-# ifdef HAVE_REVOKE
- revoke(ttydev);
-# endif
- if ((fd_tty = rxvt_get_tty(ttydev)) < 0) {
- fprintf(stderr, "rxvt_get_tty() failed on %s", ttydev);
- exit(1);
- }
- if (verb)
- fprintf(stderr, "rxvt_get_tty() OK. (opened tty fd: %d)\n", fd_tty);
- } else if (verb)
- fprintf(stderr, "Didn't call: rxvt_get_tty() (already have fd)\n");
-
- for (i = 0; i < 255; i++)
- if (i != fd_pty && i != 2 && i != fd_tty)
- close(i);
- pid = fork();
- if (pid) {
- int exitst = 1;
- int j = 0;
-
- close(fd_tty);
- for ( ; ++j < 5; ) {
- if (waitpid(-1, &i, WNOHANG) != 0)
- break;
- sleep(1);
- }
- if (j == 5)
- kill(pid, 2);
- if (WIFEXITED(i)) {
- exitst = WEXITSTATUS(i);
- if (exitst == 0)
- fprintf(stderr, "OK\n");
- else
- fprintf(stderr, "Failed. Child exit status: %d\n", WEXITSTATUS(i));
- } else
- fprintf(stderr, "Interrupted\n");
- exit(exitst);
- }
- close(fd_pty);
- if (verb)
- fprintf(stderr, "Calling: rxvt_control_tty\n");
- i = rxvt_control_tty(fd_tty, ttydev);
- if (i < 0) {
- fprintf(stderr, "could not obtain control of tty\n");
- exit(1);
- }
- exit(0);
- /* NOTREACHED */
-}
+++ /dev/null
-#include "../../config.h"
-#include "../rxvt.h"
-
-# /* hack! */ define memset rmemset
-# /* hack! */ define memmove rmemmove
-void *memset __PROTO((void *p, int c1, size_t len));
-void *memmove __PROTO((void *d, const void *s, size_t len));
-# /* hack! */ include "../strings.c"
-# /* hack! */ undef memmove
-# /* hack! */ undef memset
-
-#define OFF 16
-#define BUFSZ 300
-
-unsigned char buf1[BUFSZ], buf2[BUFSZ], buf3[BUFSZ];
-
-int
-main()
-{
- int i, j, k, a;
- int res;
-
- res = 0;
- for (i = 0; i < OFF; i++)
- for (j = 0; j < OFF; j++)
- for (k = 0; k < OFF; k++) {
-
- memset(buf2, 127, BUFSZ);
- memset(buf3, 127, BUFSZ);
- for (a = 1; a < 256; a++)
- buf1[OFF + i + a - 1] = a;
- rmemmove(buf2 + OFF + k, buf1 + OFF + i, 256 - OFF + j);
- memmove(buf3 + OFF + k, buf1 + OFF + i, 256 - OFF + j);
- for (a = 0; a < (int)sizeof buf2; a++)
- if (buf2[a] != buf3[a]) {
- res = 1;
- printf("Test BAD, Start = +%d, Size = +%d, Dest =+ %d: ",
- i, j, k);
- printf(" -1=%02x, 0=%02x, %d=%02x, %d=%02x\n",
- buf2[OFF + k - 1], buf2[OFF + k],
- 255 - OFF + j, buf2[k + 255 + j],
- 256 - OFF + j, buf2[k + 256 + j]);
- break;
- }
- }
- if (res == 0)
- printf("OK\n");
- exit(res);
-}