Apertium on Windows/No Unlocked Patch
< Apertium on Windows
Jump to navigation
Jump to search
Revision as of 19:33, 31 May 2007 by 83.67.17.205 (talk) (New page: <pre> Index: apertium/Postchunk.C =================================================================== --- apertium/Postchunk.C (revision 478) +++ apertium/Postchunk.C (working copy) @@ -18...)
Index: apertium/Postchunk.C =================================================================== --- apertium/Postchunk.C (revision 478) +++ apertium/Postchunk.C (working copy) @@ -18,6 +18,7 @@ */ #include <apertium/Postchunk.H> #include <apertium/TRXReader.H> +#include <apertium/FileConfig.H> #include <lttoolbox/Compression.H> #include <lttoolbox/XMLParseUtil.H> Index: apertium/Transfer.H =================================================================== --- apertium/Transfer.H (revision 478) +++ apertium/Transfer.H (working copy) @@ -22,6 +22,7 @@ #include <apertium/TransferInstr.H> #include <apertium/TransferToken.H> #include <apertium/TransferWord.H> +#include <apertium/FileConfig.H> #include <lttoolbox/Alphabet.H> #include <lttoolbox/Buffer.H> #include <lttoolbox/FSTProcessor.H> Index: apertium/Interchunk.H =================================================================== --- apertium/Interchunk.H (revision 478) +++ apertium/Interchunk.H (working copy) @@ -22,6 +22,7 @@ #include <apertium/TransferInstr.H> #include <apertium/TransferToken.H> #include <apertium/InterchunkWord.H> +#include <apertium/FileConfig.H> #include <lttoolbox/Alphabet.H> #include <lttoolbox/Buffer.H> #include <lttoolbox/FSTProcessor.H> Index: apertium/HMM.H =================================================================== --- apertium/HMM.H (revision 478) +++ apertium/HMM.H (working copy) @@ -40,6 +40,7 @@ #include <apertium/TaggerData.H> #include <apertium/TaggerUtils.H> #include <apertium/TaggerWord.H> +#include <apertium/FileConfig.H> using namespace std; Index: apertium/FileConfig.H =================================================================== --- apertium/FileConfig.H (revision 0) +++ apertium/FileConfig.H (revision 0) @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2007 Universitat d'Alacant / Universidad de Alicante + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#include <apertium/ApertiumConfig.H> + +#if !HAVE_DECL_FPUTS_UNLOCKED +#define fputs_unlocked fputs +#endif + +#if !HAVE_DECL_FGETC_UNLOCKED +#define fgetc_unlocked fgetc +#endif + +#if !HAVE_DECL_PUTC_UNLOCKED +#define fputc_unlocked fputc +#endif + +#if !HAVE_DECL_FWRITE_UNLOCKED +#define fwrite_unlocked fwrite +#endif + +#if !HAVE_DECL_FREAD_UNLOCKED +#define fread_unlocked fread +#endif Index: apertium/apertium-pretransfer.C =================================================================== --- apertium/apertium-pretransfer.C (revision 478) +++ apertium/apertium-pretransfer.C (working copy) @@ -21,30 +21,8 @@ #include <libgen.h> #include <string> -#include <apertium/ApertiumConfig.H> +#include <apertium/FileConfig.H> - -#if !HAVE_DECL_FPUTS_UNLOCKED -#define fputs_unlocked fputs -#endif - -#if !HAVE_DECL_FGETC_UNLOCKED -#define fgetc_unlocked fgetc -#endif - -#if !HAVE_DECL_PUTC_UNLOCKED -#define fputc_unlocked fputc -#endif - -#if !HAVE_DECL_FWRITE_UNLOCKED -#define fwrite_unlocked fwrite -#endif - -#if !HAVE_DECL_FREAD_UNLOCKED -#define fread_unlocked fread -#endif - - using namespace std; void readAndWriteUntil(FILE *input, FILE *output, int const charcode) Index: apertium/MorphoStream.H =================================================================== --- apertium/MorphoStream.H (revision 478) +++ apertium/MorphoStream.H (working copy) @@ -30,6 +30,7 @@ #include <lttoolbox/MatchState.H> #include <apertium/TaggerData.H> #include <apertium/TaggerWord.H> +#include <apertium/FileConfig.H> #include <cstdio> #include <deque>