get rid of more xtl

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4341 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-06-05 15:23:19 +00:00
parent 91d8a2bda3
commit 83c3a7d979
5 changed files with 8 additions and 143 deletions

View File

@ -1,3 +1,7 @@
2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* tools/lxtl.sh: remove unused file
2002-05-25 John Levon <moz@compsoc.man.ac.uk>
* Code_rules/Rules: mention enums should be lower-case

View File

@ -1,87 +0,0 @@
#!/bin/sh
#
# Author: Allan Rae <rae@lyx.org>
#
# Copy xtl files ready for internal use.
usage () {
echo "usage: lxtl.sh <version-number>">&2
echo " <version-number> 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 <Ctrl><C> right now!" >&2
read aline
rm -rf lxtl
fi
if [ $# -lt 1 ]; then
usage
fi
mkdir lxtl
cp COPYING.LIB lxtl
cat > lxtl/README <<EOF
$1
This directory contains the subset of XTL required by LyX.
The full distribution includes extensive tests and documentation.
If you encounter compiler errors in xtl code when compiling LyX please
get a copy of the full distribution and run the regression tests on your
system. Report any problems found to the xtl mailing list.
See: http://gsd.di.uminho.pt/jop/xtl/
-------------------------===========================----------------------
EOF
cat 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 <<EOF
Makefile
Makefile.in
EOF
# strip the Id info otherwise it gets replaced with the CVS version instead
# making it even more confusing.
#
(
cd include/xtl;
for hfile in `ls`; do
sed < $hfile > ../../lxtl/$hfile \
-e '/Id:/s/\$//g'
done
)

View File

@ -1,3 +1,7 @@
2002-06-05 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lxtl.h: remove unused file
2002-05-30 John Levon <moz@compsoc.man.ac.uk>
* Makefile.am:

View File

@ -38,7 +38,6 @@ libsupport_la_SOURCES = \
limited_stack.h \
lstrings.C \
lstrings.h \
lxtl.h \
lyxalgo.h \
lyxfunctional.h \
lyxlib.h \

View File

@ -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 <xtl/autobuf.h>
#include <xtl/objio.h>
#include <xtl/giop.h>
#include <xtl/xdr.h>
// 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<auto_mem_buffer> 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<class Input>
void getInMem(Input const & in, auto_mem_buffer & mb) {
gui_format gf(mb);
obj_output<gui_format> output(gf);
output.simple(in);
mb.rewind();
}
/// Internalize a structure from a buffer.
template<class Input>
void setFromMem(Input & in, auto_mem_buffer & mb) {
gui_format gf(mb);
obj_input<gui_format> input(gf);
input.simple(in);
}
#endif