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:
Angus Leeming 2005-04-26 10:30:24 +00:00
parent a70b4ef051
commit aabd481ab6
51 changed files with 291 additions and 75 deletions

View File

@ -8,6 +8,7 @@
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "Bidi.h"
#include "buffer.h"

View File

@ -12,8 +12,6 @@
#ifndef BIDI_H
#define BIDI_H
#include <config.h>
#include "support/types.h"
#include <vector>

View File

@ -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

View File

@ -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

View File

@ -20,16 +20,22 @@
#include <boost/scoped_ptr.hpp>
// getpid(), getppid()
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
// select()
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
// socket(), connect()
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <sys/un.h>
// fcntl()

View File

@ -12,8 +12,12 @@
# include <unistd.h>
#endif
#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>

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -39,7 +39,9 @@
#include <boost/bind.hpp>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -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.

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -9,6 +9,8 @@
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "nullpainter.h"
#include "LColor.h"

View File

@ -12,8 +12,6 @@
#ifndef NULLPAINTER_H
#define NULLPAINTER_H
#include <config.h>
#include "LColor.h"
#include "Painter.h"

View File

@ -7,7 +7,9 @@
#include <boost/signals/trackable.hpp>
#include <boost/utility.hpp>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif

View File

@ -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:

View File

@ -15,7 +15,9 @@
#include <algorithm>
#include <cmath>
#include <iomanip>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include <map>
#include <sstream>
#include <stack>

View File

@ -15,7 +15,9 @@
#include <algorithm>
#include <cmath>
#include <iomanip>
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include <map>
#include <sstream>
#include <stack>

View File

@ -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"
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
/* Added by J. Levon for compilation with Qt 2.3.1 */
#ifndef Q_CHECK_PTR

View File

@ -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.

View File

@ -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.
*

View File

@ -22,6 +22,8 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#include <config.h>
#include "LayoutEngine.h"
#include "lyx_forms.h"

View File

@ -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"

View File

@ -5,4 +5,6 @@
#include "forms_gettext.h"
#include "gettext.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif

View File

@ -24,13 +24,11 @@
#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>
#include <boost/tuple/tuple.hpp>

View File

@ -28,7 +28,9 @@
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
using boost::shared_ptr;

View File

@ -51,7 +51,9 @@
#include <boost/bind.hpp>
#include <cerrno>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <fcntl.h>
#ifdef __EMX__

View File

@ -12,6 +12,8 @@
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "lyxsocket.h"
#include "debug.h"

View File

@ -8,6 +8,8 @@
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "mover.h"
#include "support/filetools.h"

View File

@ -26,8 +26,12 @@
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <algorithm>
#include <cerrno>

View File

@ -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.

View File

@ -12,7 +12,9 @@
#include "support/lyxlib.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
void lyx::support::abort()

View File

@ -5,6 +5,8 @@
* This function is in the public domain. --Mike Stump.
*/
#include <config.h>
#ifndef NEED_on_exit
int atexit(void (*f)())
{

View File

@ -49,8 +49,9 @@
# include <cerrno>
# include <csignal>
# include <cstdlib>
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <sys/types.h>
# endif
# include <sys/wait.h>
#endif

View File

@ -29,7 +29,9 @@
#include <boost/shared_ptr.hpp>
#include <boost/signal.hpp>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
namespace lyx {

View File

@ -27,7 +27,9 @@
# include <cerrno>
# include <csignal>
# include <cstdlib>
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif
# include <sys/wait.h>
# ifndef CXX_GLOBAL_CSTD

View File

@ -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>

View File

@ -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>
#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.

View File

@ -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>

View File

@ -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>
#ifdef HAVE_STRING_H
# include <string.h> // for memcpy
#endif
#ifdef GZSTREAM_NAMESPACE
namespace GZSTREAM_NAMESPACE {

View File

@ -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>
#ifdef HAVE_ZLIB_H
# include <zlib.h>
#endif
// For LyX
#define GZSTREAM_NAMESPACE gz

View File

@ -12,7 +12,9 @@
#include "support/lyxlib.h"
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <csignal>
#ifdef _WIN32

View File

@ -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
#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>

View File

@ -12,8 +12,12 @@
#include "support/lyxlib.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>

View File

@ -19,7 +19,9 @@ inline int readlink(const char *, char *, size_t) {return -1;}
#else
#include <ctype.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#define readlink(s, t, l) (-1)
#endif
#include <process.h>

View File

@ -15,15 +15,23 @@
#include <boost/utility.hpp>
#include <fcntl.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>
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif
#endif
#include <algorithm>
#include <cctype>

View File

@ -27,8 +27,10 @@
#if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
# include <fcntl.h>
# ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
# endif
#endif
using boost::scoped_array;

View File

@ -21,9 +21,13 @@
# include <lmcons.h>
#else
# include <pwd.h>
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
using std::string;