* separate static and dynamic loadable aspell

git-svn-id: trunk@12241 -
This commit is contained in:
Almindor 2008-11-27 10:51:20 +00:00
parent 668e50b88c
commit 1446eb9dc2
7 changed files with 1222 additions and 1198 deletions

2
.gitattributes vendored
View File

@ -906,6 +906,8 @@ packages/aspell/Makefile.fpc svneol=native#text/plain
packages/aspell/examples/example.pas svneol=native#text/plain
packages/aspell/fpmake.pp svneol=native#text/plain
packages/aspell/src/aspell.pp svneol=native#text/plain
packages/aspell/src/aspelldyn.pp svneol=native#text/plain
packages/aspell/src/aspelltypes.inc svneol=native#text/plain
packages/aspell/src/spellcheck.pp svneol=native#text/plain
packages/bfd/Makefile svneol=native#text/plain
packages/bfd/Makefile.fpc svneol=native#text/plain

View File

@ -1,5 +1,5 @@
#
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/10/22]
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/11/27]
#
default: all
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
@ -265,178 +265,178 @@ PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(F
override PACKAGE_NAME=aspell
override PACKAGE_VERSION=2.2.2
ifeq ($(FULL_TARGET),i386-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-go32v2)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-win32)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-os2)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-freebsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-beos)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-haiku)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-netbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-solaris)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-qnx)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-netware)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-openbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-wdosx)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-darwin)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-emx)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-watcom)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-netwlibc)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-wince)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),i386-symbian)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-freebsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-netbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-amiga)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-atari)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-openbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-palmos)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),m68k-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-netbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-amiga)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-macos)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-darwin)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-morphos)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),sparc-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),sparc-netbsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),sparc-solaris)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),sparc-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),x86_64-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),x86_64-freebsd)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),x86_64-darwin)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),x86_64-win64)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),x86_64-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-palmos)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-darwin)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-wince)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-gba)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-nds)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),arm-symbian)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc64-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc64-darwin)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),powerpc64-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),avr-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),armeb-linux)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
ifeq ($(FULL_TARGET),armeb-embedded)
override TARGET_UNITS+=aspell spellcheck
override TARGET_UNITS+=aspell aspelldyn spellcheck
endif
override INSTALL_FPCPACKAGE=y
ifeq ($(FULL_TARGET),i386-linux)

View File

@ -7,7 +7,7 @@ name=aspell
version=2.2.2
[target]
units=aspell spellcheck
units=aspell aspelldyn spellcheck
[install]
fpcpackage=y

View File

@ -28,6 +28,7 @@ begin
P.SourcePath.Add('src');
T:=P.Targets.AddUnit('aspell.pp');
T:=P.Targets.AddUnit('aspelldyn.pp');
T:=P.Targets.AddUnit('spellcheck.pp');
with T.Dependencies do
begin

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,119 @@
type
PAspellCanHaveError = Pointer;
PAspellConfig = Pointer;
PAspellDictInfoEnumeration = Pointer;
PAspellDictInfoList = Pointer;
PAspellDocumentChecker = Pointer;
PAspellFilter = Pointer;
PAspellKeyInfoEnumeration = Pointer;
PAspellModuleInfoEnumeration = Pointer;
PAspellModuleInfoList = Pointer;
PAspellMutableContainer = Pointer;
PAspellSpeller = Pointer;
PAspellStringEnumeration = Pointer;
PAspellStringList = Pointer;
PAspellStringMap = Pointer;
PAspellStringPairEnumeration = Pointer;
PAspellWordList = Pointer;
{****************************** type id ****************************** }
type
PAspellTypeId = ^AspellTypeId;
AspellTypeId = record
case longint of
0 : ( num : cuint );
1 : ( str : array[0..3] of char );
end;
{****************************** key info ****************************** }
PAspellKeyInfoType = ^AspellKeyInfoType;
AspellKeyInfoType = (AspellKeyInfoString,AspellKeyInfoInt,
AspellKeyInfoBool,AspellKeyInfoList
);
{ A brief description of the key or NULL if internal value. }
PAspellKeyInfo = ^AspellKeyInfo;
AspellKeyInfo = record
name : pchar;
_type : AspellKeyInfoType;
def : pchar;
desc : pchar;
flags : cint;
other_data : cint;
end;
{****************************** error ****************************** }
PAspellErrorInfo = ^AspellErrorInfo;
AspellErrorInfo = record
isa : PAspellErrorInfo;
mesg : pchar;
num_parms : cuint;
parms : array[0..2] of pchar;
end;
PAspellError = ^AspellError;
AspellError = record
mesg : pchar;
err : PAspellErrorInfo;
end;
{****************************** token ****************************** }
PAspellToken = ^AspellToken;
AspellToken = record
offset : cuint;
len : cuint;
end;
{*************************** module/dict *************************** }
PAspellModuleInfo = ^AspellModuleInfo;
AspellModuleInfo = record
name : pchar;
order_num : double;
lib_dir : pchar;
dict_dirs : PAspellStringList;
dict_exts : PAspellStringList;
end;
{ The Name to identify this dictionary by. }
{ The language code to identify this dictionary.
* A two letter UPPER-CASE ISO 639 language code
* and an optional two letter ISO 3166 country
* code after a dash or underscore. }
{ Any extra information to distinguish this
* variety of dictionary from other dictionaries
* which may have the same language and size. }
{ A two char digit code describing the size of
* the dictionary: 10=tiny, 20=really small,
* 30=small, 40=med-small, 50=med, 60=med-large,
* 70=large, 80=huge, 90=insane. Please check
* the README in aspell-lang-200?????.tar.bz2 or
* see SCOWL (http://wordlist.sourceforge.net)
* for an example of how these sizes are used. }
PAspellDictInfo = ^AspellDictInfo;
AspellDictInfo = record
name : pchar;
code : pchar;
jargon : pchar;
size : cint;
size_str : pchar;
module : PAspellModuleInfo;
end;
{**************************** string pair **************************** }
PAspellStringPair = ^AspellStringPair;
AspellStringPair = record
first : pchar;
second : pchar;
end;