From 83c3a7d979a195e032e591c365d122d557d28823 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 5 Jun 2002 15:23:19 +0000 Subject: [PATCH] get rid of more xtl git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4341 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/ChangeLog | 4 ++ development/tools/lxtl.sh | 87 --------------------------------------- src/support/ChangeLog | 4 ++ src/support/Makefile.am | 1 - src/support/lxtl.h | 55 ------------------------- 5 files changed, 8 insertions(+), 143 deletions(-) delete mode 100755 development/tools/lxtl.sh delete mode 100644 src/support/lxtl.h diff --git a/development/ChangeLog b/development/ChangeLog index 168e8d9e0e..015ea0082b 100644 --- a/development/ChangeLog +++ b/development/ChangeLog @@ -1,3 +1,7 @@ +2002-06-05 Jean-Marc Lasgouttes + + * tools/lxtl.sh: remove unused file + 2002-05-25 John Levon * Code_rules/Rules: mention enums should be lower-case diff --git a/development/tools/lxtl.sh b/development/tools/lxtl.sh deleted file mode 100755 index 88edfa8b87..0000000000 --- a/development/tools/lxtl.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh -# -# Author: Allan Rae -# -# Copy xtl files ready for internal use. - -usage () { - echo "usage: lxtl.sh ">&2 - echo " is required and should be of the form" >&2 - echo " 'XTL-x.y.pl.z' where x, y and z are digits." >&2 - echo "" >&2 - echo "Run this from the root of the xtl source tree." >&2 - echo "Everything LyX needs will be moved into lxtl/" >&2 - echo "you then 'cp lxtl/* /path-to-lyx/src/xtl/'" >&2 - exit 0 -} - - -if [ ! -d ./include/xtl ] ; then - usage -fi - -if [ -d ./lxtl ]; then - echo "Uh oh! There's a directory called lxtl here already." >&2 - echo "I'm going to delete it unless you press right now!" >&2 - read aline - rm -rf lxtl -fi - -if [ $# -lt 1 ]; then - usage -fi - -mkdir lxtl - -cp COPYING.LIB lxtl -cat > lxtl/README <> lxtl/README - -cat > lxtl/Makefile.am <<\EOF -AUTOMAKE_OPTIONS = foreign 1.4 -DISTCLEANFILES= *.orig *.rej *~ *.bak core -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in -EXTRA_DIST = README COPYING.LIB -ETAGS_ARGS = --lang=c++ -SOURCES = \ - autobuf.h \ - autoio.h \ - config.h \ - giop.h \ - graphio.h \ - macros.h \ - objio.h \ - text.h \ - vobjio.h \ - xdr.h -EOF - -cat > lxtl/.cvsignore < ../../lxtl/$hfile \ - -e '/Id:/s/\$//g' - done -) - diff --git a/src/support/ChangeLog b/src/support/ChangeLog index ff57a9e43b..58fc224a97 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2002-06-05 Jean-Marc Lasgouttes + + * lxtl.h: remove unused file + 2002-05-30 John Levon * Makefile.am: diff --git a/src/support/Makefile.am b/src/support/Makefile.am index 579a8e106f..2d03e52cfc 100644 --- a/src/support/Makefile.am +++ b/src/support/Makefile.am @@ -38,7 +38,6 @@ libsupport_la_SOURCES = \ limited_stack.h \ lstrings.C \ lstrings.h \ - lxtl.h \ lyxalgo.h \ lyxfunctional.h \ lyxlib.h \ diff --git a/src/support/lxtl.h b/src/support/lxtl.h deleted file mode 100644 index 4581a545dc..0000000000 --- a/src/support/lxtl.h +++ /dev/null @@ -1,55 +0,0 @@ -// -*- C++ -*- -/* lxtl.h - * LyX eXternalization Template Library - * This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. - * - * This file Copyright 2000 - * Allan Rae - * ====================================================== - */ - -#ifndef LXTL_H -#define LXTL_H -#include -#include -#include -#include - -// XDR_format causes an abort that's hard to track down. GDB says the abort -// occurs in code from a different function to the one being run before the -// abort! (XTL-1.3.pl.11) -/// -typedef GIOP_format gui_format; - -/* Simplify the use of the XTL. The caller is responsible for creating their - own memory buffer. The buffer type isn't a template parameter because I - need/want the forward declared buffer class in some other header files - thereby avoiding an extra file dependency. - ARRae 20000423 - */ - -/// Externalize a structure into a buffer. -template -void getInMem(Input const & in, auto_mem_buffer & mb) { - gui_format gf(mb); - obj_output output(gf); - output.simple(in); - mb.rewind(); -} - -/// Internalize a structure from a buffer. -template -void setFromMem(Input & in, auto_mem_buffer & mb) { - gui_format gf(mb); - obj_input input(gf); - input.simple(in); -} - - -#endif -- 2.39.2