mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Consistent use of preprocessor guards;
include <config.h> in .C files, not .h ones; licence blurb. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a70b4ef051
commit
aabd481ab6
@ -8,6 +8,7 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "Bidi.h"
|
||||
#include "buffer.h"
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef BIDI_H
|
||||
#define BIDI_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "support/types.h"
|
||||
#include <vector>
|
||||
|
||||
|
@ -1,3 +1,15 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Bidi.[Ch]:
|
||||
* coordcache.[Ch]:
|
||||
* ispell.C:
|
||||
* lyxserver.C:
|
||||
* mover.C:
|
||||
* pch.h:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-04-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* FuncStatus.h (StatusCodes): document
|
||||
@ -69,7 +81,7 @@
|
||||
2005-04-12 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* lyxtext.h:
|
||||
* text.C (metrics):
|
||||
* text.C (metrics):
|
||||
* text2.C (getFont):
|
||||
* rowpainter.C (getFont): Fix metrics bug introduced by inset
|
||||
fonts fix
|
||||
@ -89,7 +101,7 @@
|
||||
|
||||
2005-04-10 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* rowpainter.C (RowPainter, getFont): fix font inside inset
|
||||
* rowpainter.C (RowPainter, getFont): fix font inside inset
|
||||
(bugs 1766, 1809)
|
||||
|
||||
2005-04-06 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
@ -101,7 +113,7 @@
|
||||
2005-03-30 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lyxfunc.C (dispatch): translate message before sending it to the
|
||||
minibuffer.
|
||||
minibuffer.
|
||||
|
||||
2005-03-29 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
@ -111,7 +123,7 @@
|
||||
2005-03-25 Stephan Witt <stephan.witt@beusen.de>
|
||||
|
||||
* vc-backend.C: use QuoteName to protect file names wherever
|
||||
necessary.
|
||||
necessary.
|
||||
|
||||
2005-03-27 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
@ -161,15 +173,15 @@
|
||||
|
||||
* lyxfunc.C (getStatus): fix warning when assertions are disabled
|
||||
|
||||
* text3.C:
|
||||
* lyxfunc.C:
|
||||
* text3.C:
|
||||
* lyxfunc.C:
|
||||
* dociterator.C: include <boost/current_function.hpp>, which is
|
||||
needed when assertions are disabled.
|
||||
|
||||
2005-03-05 Johnathan Burchill <jkerrb@users.sourceforge.net>
|
||||
2005-03-05 Johnathan Burchill <jkerrb@users.sourceforge.net>
|
||||
|
||||
* text2.C: fix for stuck cursor when traversing two
|
||||
consecutive spaces. [bug 1255] (pars_[old.pit()].setChange)
|
||||
* text2.C: fix for stuck cursor when traversing two
|
||||
consecutive spaces. [bug 1255] (pars_[old.pit()].setChange)
|
||||
|
||||
2005-02-25 Andreas Vox <avox@arcor.de>
|
||||
|
||||
@ -198,9 +210,9 @@
|
||||
simple way. When no float is found above the caption, use the
|
||||
labelstring of the caption layout as default.
|
||||
|
||||
* text.C (breakParagraph, backspace):
|
||||
* text.C (breakParagraph, backspace):
|
||||
* text2.C (init, setLayout, changeDepth):
|
||||
* text3.C (dispatch):
|
||||
* text3.C (dispatch):
|
||||
* CutAndPaste.C (cutSelection, pasteSelection): pass a buffer to
|
||||
updateCounters.
|
||||
|
||||
@ -213,7 +225,7 @@
|
||||
|
||||
2005-02-24 Johnathan Burchill <jkerrb@users.sourceforge.net>
|
||||
|
||||
* paragraph_funcs.C: fix crash when pasting insets in change
|
||||
* paragraph_funcs.C: fix crash when pasting insets in change
|
||||
tracking mode [bug 1277] (honour change type in moveItem).
|
||||
|
||||
2005-02-23 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
@ -302,8 +314,8 @@
|
||||
|
||||
* BufferView_pimpl.C (dispatch): handle LFUN_GOTO_PARAGRAPH here,
|
||||
but use update() to get correct screen display; use convert
|
||||
instead of istringstream.
|
||||
(getStatus): handle LFUN_GOTO_PARAGRAPH
|
||||
instead of istringstream.
|
||||
(getStatus): handle LFUN_GOTO_PARAGRAPH
|
||||
|
||||
* lyxfunc.C (dispatch, getStatus): do not handle
|
||||
LFUN_GOTO_PARAGRAPH here.
|
||||
|
@ -1,3 +1,11 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* client.C:
|
||||
* pch.h:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-02-25 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* Makefile.am (man_MANS): clean generated files
|
||||
|
@ -20,16 +20,22 @@
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
// getpid(), getppid()
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
// select()
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
|
||||
// socket(), connect()
|
||||
#include <sys/socket.h>
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
#include <sys/un.h>
|
||||
|
||||
// fcntl()
|
||||
|
@ -12,8 +12,12 @@
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <sys/select.h>
|
||||
#include <sys/socket.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
/* \file coordcache.C
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author André Pönitz
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "coordcache.h"
|
||||
#include "debug.h"
|
||||
|
@ -1,3 +1,13 @@
|
||||
// -*- C++ -*-
|
||||
/* \file coordcache.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author André Pönitz
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#ifndef COORDCACHE_H
|
||||
#define COORDCACHE_H
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* LyXView.C:
|
||||
* nullpainter.[Ch]:
|
||||
* pch.h:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-04-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* Dialogs.[Ch] (checkStatus): new
|
||||
|
@ -39,7 +39,9 @@
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <sys/time.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
@ -1,3 +1,13 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* GChanges.C:
|
||||
* GLog.C:
|
||||
* GShowFile.C:
|
||||
* GTexinfo.C:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-03-21 John Spray <spray_john@users.sf.net>
|
||||
|
||||
* GDocument.[Ch]: add "Page", "Margins", "Language" tabs.
|
||||
|
@ -8,10 +8,15 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
// Too hard to make concept checks work with this file
|
||||
#ifdef _GLIBCXX_CONCEPT_CHECKS
|
||||
#undef _GLIBCXX_CONCEPT_CHECKS
|
||||
#endif
|
||||
#ifdef _GLIBCPP_CONCEPT_CHECKS
|
||||
#undef _GLIBCPP_CONCEPT_CHECKS
|
||||
#endif
|
||||
|
||||
#include "GChanges.h"
|
||||
#include "ControlChanges.h"
|
||||
|
@ -8,10 +8,15 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
// Too hard to make concept checks work with this file
|
||||
#ifdef _GLIBCXX_CONCEPT_CHECKS
|
||||
#undef _GLIBCXX_CONCEPT_CHECKS
|
||||
#endif
|
||||
#ifdef _GLIBCPP_CONCEPT_CHECKS
|
||||
#undef _GLIBCPP_CONCEPT_CHECKS
|
||||
#endif
|
||||
|
||||
#include "GLog.h"
|
||||
#include "ControlLog.h"
|
||||
|
@ -8,10 +8,15 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
// Too hard to make concept checks work with this file
|
||||
#ifdef _GLIBCXX_CONCEPT_CHECKS
|
||||
#undef _GLIBCXX_CONCEPT_CHECKS
|
||||
#endif
|
||||
#ifdef _GLIBCPP_CONCEPT_CHECKS
|
||||
#undef _GLIBCPP_CONCEPT_CHECKS
|
||||
#endif
|
||||
|
||||
#include "GShowFile.h"
|
||||
#include "ControlShowFile.h"
|
||||
|
@ -8,10 +8,15 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
// Too hard to make concept checks work with this file
|
||||
#ifdef _GLIBCXX_CONCEPT_CHECKS
|
||||
#undef _GLIBCXX_CONCEPT_CHECKS
|
||||
#endif
|
||||
#ifdef _GLIBCPP_CONCEPT_CHECKS
|
||||
#undef _GLIBCPP_CONCEPT_CHECKS
|
||||
#endif
|
||||
|
||||
#include "GTexinfo.h"
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "nullpainter.h"
|
||||
|
||||
#include "LColor.h"
|
||||
|
@ -12,8 +12,6 @@
|
||||
#ifndef NULLPAINTER_H
|
||||
#define NULLPAINTER_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "LColor.h"
|
||||
#include "Painter.h"
|
||||
|
||||
|
@ -7,7 +7,9 @@
|
||||
#include <boost/signals/trackable.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
#include <sys/time.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
@ -1,3 +1,12 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* pch.h:
|
||||
* moc/pch.h:
|
||||
* qttableview.C:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-04-22 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* Makefile.am:
|
||||
|
@ -15,7 +15,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <iomanip>
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
#include <stack>
|
||||
|
@ -15,7 +15,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <iomanip>
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
#include <stack>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**********************************************************************
|
||||
** $Id: qttableview.C,v 1.6 2003/09/06 10:16:15 leeming Exp $
|
||||
** $Id: qttableview.C,v 1.7 2005/04/26 10:30:22 leeming Exp $
|
||||
**
|
||||
** Implementation of QtTableView class
|
||||
**
|
||||
@ -19,7 +19,9 @@
|
||||
#include "qscrollbar.h"
|
||||
#include "qpainter.h"
|
||||
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
#endif
|
||||
|
||||
/* Added by J. Levon for compilation with Qt 2.3.1 */
|
||||
#ifndef Q_CHECK_PTR
|
||||
|
@ -1,3 +1,14 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* FormLog.h:
|
||||
* LayoutEngine.C:
|
||||
* bmtable.c:
|
||||
* xformsImage.C:
|
||||
* forms/pch.h:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* globbing.[Ch]: moved here from the support directory.
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* FormLog.h
|
||||
* \file FormLog.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
|
@ -22,6 +22,8 @@
|
||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "LayoutEngine.h"
|
||||
#include "lyx_forms.h"
|
||||
|
||||
|
@ -10,9 +10,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "bmtable.h"
|
||||
#include "lyx_xpm.h"
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
|
@ -5,4 +5,6 @@
|
||||
#include "forms_gettext.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
@ -24,12 +24,10 @@
|
||||
|
||||
#include "lyx_forms.h"
|
||||
|
||||
#ifdef HAVE_FLIMAGE_H
|
||||
#if defined (HAVE_FLIMAGE_H)
|
||||
# include <flimage.h>
|
||||
#else
|
||||
# ifdef HAVE_X11_FLIMAGE_H
|
||||
#elif defined (HAVE_X11_FLIMAGE_H)
|
||||
# include <X11/flimage.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
|
@ -26,9 +26,11 @@
|
||||
|
||||
// HP-UX 11.x doesn't have this header
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#include <sys/time.h>
|
||||
|
||||
using boost::shared_ptr;
|
||||
|
||||
|
@ -51,17 +51,19 @@
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <cerrno>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef __EMX__
|
||||
#include <cstdlib>
|
||||
#include <io.h>
|
||||
#define OS2EMX_PLAIN_CHAR
|
||||
#define INCL_DOSNMPIPES
|
||||
#define INCL_DOSERRORS
|
||||
#include <os2.h>
|
||||
#include "support/os2_errortable.h"
|
||||
# include <cstdlib>
|
||||
# include <io.h>
|
||||
# define OS2EMX_PLAIN_CHAR
|
||||
# define INCL_DOSNMPIPES
|
||||
# define INCL_DOSERRORS
|
||||
# include <os2.h>
|
||||
# include "support/os2_errortable.h"
|
||||
#endif
|
||||
|
||||
using lyx::support::compare;
|
||||
|
@ -12,6 +12,8 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "lyxsocket.h"
|
||||
|
||||
#include "debug.h"
|
||||
|
@ -8,6 +8,8 @@
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "mover.h"
|
||||
|
||||
#include "support/filetools.h"
|
||||
|
@ -26,8 +26,12 @@
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
# include <sys/select.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
|
@ -1,3 +1,21 @@
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* abort.C:
|
||||
* atexit.c:
|
||||
* forkedcall.[Ch]:
|
||||
* forkedcontr.[Ch]:
|
||||
* fs_extras.[Ch]:
|
||||
* gzstream.[Ch]:
|
||||
* kill.C:
|
||||
* lyxsum.C:
|
||||
* os2_defines.h:
|
||||
* pch.h:
|
||||
* tempname.C:
|
||||
* userinfo.C:
|
||||
include <config.h> in .C files, not .h ones.
|
||||
add licence blurb.
|
||||
protect headers inside preprocessor guards.
|
||||
|
||||
2005-04-25 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* globbing.[Ch]: removed to frontends/xforms.
|
||||
|
@ -12,7 +12,9 @@
|
||||
|
||||
#include "support/lyxlib.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
|
||||
|
||||
void lyx::support::abort()
|
||||
|
@ -5,6 +5,8 @@
|
||||
* This function is in the public domain. --Mike Stump.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifndef NEED_on_exit
|
||||
int atexit(void (*f)())
|
||||
{
|
||||
|
@ -49,8 +49,9 @@
|
||||
# include <cerrno>
|
||||
# include <csignal>
|
||||
# include <cstdlib>
|
||||
# include <unistd.h>
|
||||
# include <sys/types.h>
|
||||
# ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
|
@ -29,7 +29,9 @@
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/signal.hpp>
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
@ -27,7 +27,9 @@
|
||||
# include <cerrno>
|
||||
# include <csignal>
|
||||
# include <cstdlib>
|
||||
# include <unistd.h>
|
||||
# ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
# include <sys/wait.h>
|
||||
|
||||
# ifndef CXX_GLOBAL_CSTD
|
||||
|
@ -18,7 +18,9 @@
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <sys/types.h> // needed for pid_t
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
@ -1,4 +1,13 @@
|
||||
// -*- C++ -*-
|
||||
/* \file fs_extras.C
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Lars Gullik Bjønnes
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -9,8 +18,12 @@
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
|
||||
// BOOST_POSIX or BOOST_WINDOWS specify which API to use.
|
||||
|
@ -1,4 +1,12 @@
|
||||
// -*- C++ -*-
|
||||
/* \file fs_extras.h
|
||||
* This file is part of LyX, the document processor.
|
||||
* Licence details can be found in the file COPYING.
|
||||
*
|
||||
* \author Lars Gullik Bjønnes
|
||||
*
|
||||
* Full author contact details are available in file CREDITS.
|
||||
*/
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
|
@ -18,17 +18,21 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// File : gzstream.C
|
||||
// Revision : $Revision: 1.3 $
|
||||
// Revision_date : $Date: 2005/01/18 14:15:57 $
|
||||
// Revision : $Revision: 1.4 $
|
||||
// Revision_date : $Date: 2005/04/26 10:30:24 $
|
||||
// Author(s) : Deepak Bandyopadhyay, Lutz Kettner
|
||||
//
|
||||
// Standard streambuf implementation following Nicolai Josuttis, "The
|
||||
// Standard C++ Library".
|
||||
// ============================================================================
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gzstream.h"
|
||||
#include <iostream>
|
||||
#include <string.h> // for memcpy
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h> // for memcpy
|
||||
#endif
|
||||
|
||||
#ifdef GZSTREAM_NAMESPACE
|
||||
namespace GZSTREAM_NAMESPACE {
|
||||
|
@ -18,8 +18,8 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// File : gzstream.h
|
||||
// Revision : $Revision: 1.1 $
|
||||
// Revision_date : $Date: 2003/07/27 23:40:08 $
|
||||
// Revision : $Revision: 1.2 $
|
||||
// Revision_date : $Date: 2005/04/26 10:30:24 $
|
||||
// Author(s) : Deepak Bandyopadhyay, Lutz Kettner
|
||||
//
|
||||
// Standard streambuf implementation following Nicolai Josuttis, "The
|
||||
@ -32,7 +32,9 @@
|
||||
// standard C++ with new header file names and std:: namespace
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <zlib.h>
|
||||
#ifdef HAVE_ZLIB_H
|
||||
# include <zlib.h>
|
||||
#endif
|
||||
|
||||
// For LyX
|
||||
#define GZSTREAM_NAMESPACE gz
|
||||
|
@ -12,7 +12,9 @@
|
||||
|
||||
#include "support/lyxlib.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#include <csignal>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@ -39,8 +39,12 @@ template struct boost::detail::crc_table_t<32, 0x04C11DB7, true>;
|
||||
// not `compatibility' version with caddr_t.
|
||||
#define _POSIX_C_SOURCE 199506L
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
|
@ -12,8 +12,12 @@
|
||||
|
||||
#include "support/lyxlib.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
|
@ -19,7 +19,9 @@ inline int readlink(const char *, char *, size_t) {return -1;}
|
||||
|
||||
#else
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
#define readlink(s, t, l) (-1)
|
||||
#endif
|
||||
#include <process.h>
|
||||
|
@ -15,14 +15,22 @@
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
#ifndef _WIN32
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
#ifndef _WIN32
|
||||
# include <sys/un.h>
|
||||
# include <sys/wait.h>
|
||||
# include <unistd.h>
|
||||
# ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
|
||||
# include <fcntl.h>
|
||||
# include <sys/stat.h>
|
||||
# ifdef HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
using boost::scoped_array;
|
||||
|
@ -21,9 +21,13 @@
|
||||
# include <lmcons.h>
|
||||
#else
|
||||
# include <pwd.h>
|
||||
# include <unistd.h>
|
||||
# ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
using std::string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user