Added configure.ac and Makefile.am files to directory structure, added local variable initialization to several source files for -O3 optimization for GCC
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@91 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
+236
@@ -0,0 +1,236 @@
|
||||
Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
This file is free documentation; the Free Software Foundation gives
|
||||
unlimited permission to copy, distribute and modify it.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. (Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.)
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You only need
|
||||
`configure.ac' if you want to change it or regenerate `configure' using
|
||||
a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that the
|
||||
`configure' script does not know about. Run `./configure --help' for
|
||||
details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
||||
|
||||
*Note Defining Variables::, for more details.
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not support the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a
|
||||
time in the source code directory. After you have installed the
|
||||
package for one architecture, use `make distclean' before reconfiguring
|
||||
for another architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' installs the package's commands under
|
||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||
can specify an installation prefix other than `/usr/local' by giving
|
||||
`configure' the option `--prefix=PREFIX'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||
PREFIX as the prefix for installing programs and libraries.
|
||||
Documentation and other data files still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=DIR' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out automatically,
|
||||
but needs to determine by the type of machine the package will run on.
|
||||
Usually, assuming the package is built to be run on the _same_
|
||||
architectures, `configure' can figure that out, but if it prints a
|
||||
message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
use the option `--target=TYPE' to select the type of system they will
|
||||
produce code for.
|
||||
|
||||
If you want to _use_ a cross compiler, that generates code for a
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
eventually be run) with `--host=TYPE'.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share, you
|
||||
can create a site shell script called `config.site' that gives default
|
||||
values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||
overridden in the site shell script). Here is a another example:
|
||||
|
||||
/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||
|
||||
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
|
||||
configuration-related scripts to be executed by `/bin/bash'.
|
||||
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
SUBDIRS = src util
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
cd $srcdir
|
||||
PROJECT=flaim
|
||||
TEST_TYPE=-f
|
||||
FILE=src/flaim.h
|
||||
|
||||
DIE=0
|
||||
|
||||
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have autoconf installed to compile $PROJECT."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
|
||||
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have automake installed to compile $PROJECT."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
|
||||
if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
test $TEST_TYPE $FILE || {
|
||||
echo "You must run this script in the top-level $PROJECT directory"
|
||||
exit 1
|
||||
}
|
||||
|
||||
aclocal $ACLOCAL_FLAGS
|
||||
echo "aclocal done"
|
||||
libtoolize --force --copy
|
||||
echo "libtoolize done"
|
||||
autoheader
|
||||
echo "autoheader done"
|
||||
automake --add-missing --copy $am_opt
|
||||
echo "automake done"
|
||||
autoconf
|
||||
echo "autoconf done"
|
||||
cd $ORIGDIR
|
||||
|
||||
echo
|
||||
echo "Now type 'configure' and 'make' to compile $PROJECT. You can do this"
|
||||
echo "in a separate build directory if you wish"
|
||||
@@ -0,0 +1,116 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_INIT([flaim], [4.8], [flaim-bug@novell.com])
|
||||
AM_INIT_AUTOMAKE
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
|
||||
AC_CONFIG_SRCDIR([src/flaim.h])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([ncurses], [initscr])
|
||||
AC_CHECK_LIB([dl], [dlopen])
|
||||
AC_CHECK_LIB([m], [log10])
|
||||
AC_CHECK_LIB([nsl], [gethostname])
|
||||
AC_CHECK_LIB([pthread], [pthread_create])
|
||||
AC_CHECK_LIB([socket], [socket])
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h memory.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h unistd.h utime.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_HEADER_STDBOOL
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_TYPE_MODE_T
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
AC_C_VOLATILE
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_LSTAT
|
||||
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
||||
AC_FUNC_MEMCMP
|
||||
AC_FUNC_MKTIME
|
||||
AC_FUNC_MMAP
|
||||
AC_FUNC_SELECT_ARGTYPES
|
||||
AC_TYPE_SIGNAL
|
||||
AC_FUNC_STAT
|
||||
AC_CHECK_FUNCS([atexit fdatasync ftruncate getcwd gethostbyaddr gethostbyname gethostname gethrtime gettimeofday inet_ntoa localtime_r memmove memset mkdir munmap pstat_getdynamic realpath rmdir select setenv socket strcasecmp strncasecmp strrchr strstr])
|
||||
|
||||
#
|
||||
# Generic DEBUG support - default is OFF
|
||||
# ON means with symbols, no optimization, DEBUG is defined
|
||||
# OFF means with symbols, full optimization, NDEBUG is defined
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
AS_HELP_STRING([--enable-debug], [Turn on debugging (default is OFF)]),
|
||||
[case "${enableval}" in
|
||||
yes) debug=yes ;;
|
||||
no) debug=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
||||
esac], [debug=no])
|
||||
AM_CONDITIONAL(DEBUG, test x$debug = xyes)
|
||||
AM_CONDITIONAL(NDEBUG, test x$debug = xno)
|
||||
if test x$debug = xyes; then
|
||||
AC_DEFINE(DEBUG, 1, [Defined for debug builds])
|
||||
else
|
||||
AC_DEFINE(NDEBUG, 1, [Defined for non-debug builds])
|
||||
fi
|
||||
|
||||
#
|
||||
# Set C/C++ compiler-specific warning/optimization/option flags
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
if test x$GCC = xyes; then
|
||||
# GCC: turn on all warnings, set warnings as errors
|
||||
# disable optimization for debug builds
|
||||
# enable high-level optimizations for non-debug builds
|
||||
CXXFLAGS="$CXXFLAGS -Wall -Werror"
|
||||
if test x$debug = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -O0"
|
||||
else
|
||||
CXXFLAGS="$CXXFLAGS -O3 -fgcse-sm"
|
||||
fi
|
||||
elif $CC -V 2>&1 | grep "WorkShop Compilers"; then
|
||||
# Solaris Workshop: enable optimizations for debug builds
|
||||
CXXFLAGS="$CXXFLAGS -errwarn=%all -errtags -erroff=hidef,inllargeuse"
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -fast"
|
||||
if echo $CC | grep "xarch=v9"; then
|
||||
# -fast sets -xarch=v8 disabling 64-bit mode, enable it again
|
||||
CXXFLAGS="$CXXFLAGS -xarch=v9"
|
||||
fi
|
||||
fi
|
||||
elif echo $host_os | grep -i "osf" >/dev/null; then
|
||||
# OSF: enable standard C (shouldn't be necessary)
|
||||
# enable optimizations for non-debug builds
|
||||
CXXFLAGS="$CXXFLAGS -std"
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -O"
|
||||
fi
|
||||
else
|
||||
# everything else: take a wild guess (shouldn't need this)
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -O"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile src/Makefile util/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
lib_LTLIBRARIES = libflaim.la
|
||||
libflaim_la_SOURCES = \
|
||||
checksum.cpp \
|
||||
ddcreate.cpp \
|
||||
ddprep.cpp \
|
||||
ecache.cpp \
|
||||
ecache.h \
|
||||
f64bitfh.cpp \
|
||||
f64bitfh.h \
|
||||
fbcd.cpp \
|
||||
fblob.cpp \
|
||||
fbuff.cpp \
|
||||
fbuff.h \
|
||||
f_coltb1.cpp \
|
||||
fcs_bios.cpp \
|
||||
fcs_dis.cpp \
|
||||
fcs_dos.cpp \
|
||||
fcs_fis.cpp \
|
||||
fcs.h \
|
||||
fcs_ipis.cpp \
|
||||
fcs_ipos.cpp \
|
||||
fcs_tcp.cpp \
|
||||
fcs_util.cpp \
|
||||
fcs_wire.cpp \
|
||||
fdbcnfig.cpp \
|
||||
fdbcopy.cpp \
|
||||
fdb.cpp \
|
||||
fdbremov.cpp \
|
||||
fdbrenam.cpp \
|
||||
fddpcode.h \
|
||||
fdictbld.cpp \
|
||||
fdict.cpp \
|
||||
fdir.h \
|
||||
fdynbtre.cpp \
|
||||
fdynsset.cpp \
|
||||
fdynsset.h \
|
||||
fexpimp.cpp \
|
||||
ffilehdl.cpp \
|
||||
ffilehdl.h \
|
||||
ffilehdr.cpp \
|
||||
ffilesys.cpp \
|
||||
ffilesys.h \
|
||||
filesys.h \
|
||||
fitem.cpp \
|
||||
flaim.h \
|
||||
flaimsys.h \
|
||||
flalloc.cpp \
|
||||
flbackup.cpp \
|
||||
flblddb.cpp \
|
||||
flblddbo.cpp \
|
||||
flblksum.cpp \
|
||||
flchkdb.cpp \
|
||||
flchkix.cpp \
|
||||
flchktr.cpp \
|
||||
flclose.cpp \
|
||||
flconvrt.cpp \
|
||||
flcreate.cpp \
|
||||
fldbglog.cpp \
|
||||
flerror.cpp \
|
||||
flerrstr.cpp \
|
||||
flfixed.cpp \
|
||||
flfixed.h \
|
||||
flgdrecs.cpp \
|
||||
flgethdr.cpp \
|
||||
flindex.cpp \
|
||||
flist.cpp \
|
||||
flist.h \
|
||||
flkeymak.cpp \
|
||||
flkeyret.cpp \
|
||||
flkeys.cpp \
|
||||
flmimon.cpp \
|
||||
flmimon.h \
|
||||
flmstat.cpp \
|
||||
flmstat.h \
|
||||
flog.cpp \
|
||||
flog.h \
|
||||
flopen.cpp \
|
||||
flprintf.cpp \
|
||||
flrcodes.cpp \
|
||||
flrddrct.cpp \
|
||||
flreduce.cpp \
|
||||
flresdrn.cpp \
|
||||
flsweep.cpp \
|
||||
fltrabrt.cpp \
|
||||
fltrbeg.cpp \
|
||||
fltrcmit.cpp \
|
||||
fltrnum.cpp \
|
||||
flupdate.cpp \
|
||||
flutil.cpp \
|
||||
flverify.cpp \
|
||||
fmisc.cpp \
|
||||
fmutxref.h \
|
||||
fnative.cpp \
|
||||
f_nici.cpp \
|
||||
f_nici.h \
|
||||
fntable.cpp \
|
||||
fobjtrck.cpp \
|
||||
fobjtrck.h \
|
||||
fpackoff.h \
|
||||
fpackon.h \
|
||||
fposix.cpp \
|
||||
fposix.h \
|
||||
fqcur.cpp \
|
||||
fqdecl.cpp \
|
||||
fqeval2.cpp \
|
||||
fqeval3.cpp \
|
||||
fqeval.cpp \
|
||||
fqget.cpp \
|
||||
fqkeys.cpp \
|
||||
fqlog.cpp \
|
||||
fqopt.cpp \
|
||||
fqparse.cpp \
|
||||
fqprep.cpp \
|
||||
fqread.cpp \
|
||||
fqsrch.cpp \
|
||||
fqstack.cpp \
|
||||
fqtextc.cpp \
|
||||
fquery.h \
|
||||
frec.cpp \
|
||||
frecset.cpp \
|
||||
frestore.cpp \
|
||||
frestore.h \
|
||||
frsetblk.cpp \
|
||||
frset.cpp \
|
||||
frset.h \
|
||||
fsblk_u.cpp \
|
||||
fscomblk.cpp \
|
||||
fsconvrt.cpp \
|
||||
fscounts.cpp \
|
||||
fscursor.cpp \
|
||||
fscursor.h \
|
||||
fsdatacu.cpp \
|
||||
fsdelelm.cpp \
|
||||
fsinselm.cpp \
|
||||
fslfile.cpp \
|
||||
fslfileu.cpp \
|
||||
fsnext.cpp \
|
||||
fsprev.cpp \
|
||||
fsrecget.cpp \
|
||||
fsrecupd.cpp \
|
||||
fsrefspl.cpp \
|
||||
fsrefupd.cpp \
|
||||
fsrvlock.cpp \
|
||||
fsrvlock.h \
|
||||
fssearch.cpp \
|
||||
fssplblk.cpp \
|
||||
fstructs.h \
|
||||
fsuperfl.cpp \
|
||||
fsuperfl.h \
|
||||
fsv_glob.cpp \
|
||||
fsv.h \
|
||||
fsv_hdlr.cpp \
|
||||
fsv_sctx.cpp \
|
||||
fsv_sesn.cpp \
|
||||
fsv_sev.cpp \
|
||||
fsv_tcph.cpp \
|
||||
fsv_wire.cpp \
|
||||
fsysdata.cpp \
|
||||
ftkdir.cpp \
|
||||
ftk.h \
|
||||
ftkmem.h \
|
||||
ftkmisc.cpp \
|
||||
ftkmod.cpp \
|
||||
ftknsem.cpp \
|
||||
ftknsem.h \
|
||||
ftkpath.cpp \
|
||||
ftkrand.cpp \
|
||||
ftksem.cpp \
|
||||
ftksem.h \
|
||||
ftkthrd.cpp \
|
||||
ftkthrd.h \
|
||||
ftktime.cpp \
|
||||
ftkwptxt.h \
|
||||
f_tocoll.cpp \
|
||||
ftrace.cpp \
|
||||
ftrace.h \
|
||||
f_uncoll.cpp \
|
||||
funicode.cpp \
|
||||
furl.cpp \
|
||||
furl.h \
|
||||
fwin.cpp \
|
||||
fwin.h \
|
||||
fwpasia.cpp \
|
||||
fwpchar.cpp \
|
||||
fwpchrs.cpp \
|
||||
fwpcoll.cpp \
|
||||
fxml.cpp \
|
||||
fxml.h \
|
||||
gbinary.cpp \
|
||||
gd2tree.cpp \
|
||||
gdcopy.cpp \
|
||||
gddiff.cpp \
|
||||
gddiff.h \
|
||||
gdfind.cpp \
|
||||
gdgraft.cpp \
|
||||
gdmisc.cpp \
|
||||
gdpool.cpp \
|
||||
gdtrvrs1.cpp \
|
||||
gnative.cpp \
|
||||
gnbcd.cpp \
|
||||
gnum2txt.cpp \
|
||||
gtxt2bin.cpp \
|
||||
gtxt2num.cpp \
|
||||
gunicode.cpp \
|
||||
imonbase.cpp \
|
||||
imonchk.cpp \
|
||||
imonerr.cpp \
|
||||
imonfact.cpp \
|
||||
imonfdb.cpp \
|
||||
imonffil.cpp \
|
||||
imonfhdl.cpp \
|
||||
imonfhsh.cpp \
|
||||
imonfmgr.cpp \
|
||||
imonfram.cpp \
|
||||
imonfsys.cpp \
|
||||
imonix.cpp \
|
||||
imonlhdr.cpp \
|
||||
imonqury.cpp \
|
||||
imonrche.cpp \
|
||||
imonrec.cpp \
|
||||
imonscfg.cpp \
|
||||
imonsche.cpp \
|
||||
imonsel.cpp \
|
||||
imonslmg.cpp \
|
||||
imonstat.cpp \
|
||||
imonutil.cpp \
|
||||
kyasia1.cpp \
|
||||
kyasia2.cpp \
|
||||
kybldkey.cpp \
|
||||
kybuild.cpp \
|
||||
kycollat.cpp \
|
||||
kycompnd.cpp \
|
||||
kyeword.cpp \
|
||||
kyget.cpp \
|
||||
kyqsort.cpp \
|
||||
kyunlock.cpp \
|
||||
lock.cpp \
|
||||
rcache.cpp \
|
||||
recover.cpp \
|
||||
rfl.cpp \
|
||||
rfl.h \
|
||||
scache.cpp \
|
||||
translog.cpp
|
||||
|
||||
libflaim_la_LDFLAGS = -version-info 0:0:0
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
noinst_LTLIBRARIES = libutilsup.la
|
||||
libutilsup_la_SOURCES = \
|
||||
flm_dlst.cpp \
|
||||
flm_lutl.cpp \
|
||||
ftx.cpp \
|
||||
ftxunix.cpp \
|
||||
sharutil.cpp \
|
||||
wpscrnkb.cpp
|
||||
libutilsup_la_CPPFLAGS = -I$(top_srcdir)/src
|
||||
libutilsup_la_LDFLAGS = -static
|
||||
|
||||
bin_PROGRAMS = checkdb rebuild view sample
|
||||
|
||||
checkdb_SOURCES = checkdb.cpp
|
||||
checkdb_CPPFLAGS = -I$(top_srcdir)/src
|
||||
checkdb_LDADD = ../src/libflaim.la libutilsup.la
|
||||
|
||||
rebuild_SOURCES = rebuild.cpp
|
||||
rebuild_CPPFLAGS = -I$(top_srcdir)/src
|
||||
rebuild_LDADD = ../src/libflaim.la libutilsup.la
|
||||
|
||||
view_SOURCES = \
|
||||
view.cpp \
|
||||
viewblk.cpp \
|
||||
viewdisp.cpp \
|
||||
viewedit.cpp \
|
||||
viewfhdr.cpp \
|
||||
viewlhdr.cpp \
|
||||
viewlfil.cpp \
|
||||
viewmenu.cpp \
|
||||
viewsrch.cpp
|
||||
view_CPPFLAGS = -I$(top_srcdir)/src
|
||||
view_LDADD = ../src/libflaim.la libutilsup.la
|
||||
|
||||
sample_SOURCES = sample.cpp
|
||||
sample_CPPFLAGS = -I$(top_srcdir)/src
|
||||
sample_LDADD = ../src/libflaim.la libutilsup.la
|
||||
|
||||
+236
@@ -0,0 +1,236 @@
|
||||
Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
This file is free documentation; the Free Software Foundation gives
|
||||
unlimited permission to copy, distribute and modify it.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. (Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.)
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You only need
|
||||
`configure.ac' if you want to change it or regenerate `configure' using
|
||||
a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that the
|
||||
`configure' script does not know about. Run `./configure --help' for
|
||||
details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
|
||||
|
||||
*Note Defining Variables::, for more details.
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not support the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a
|
||||
time in the source code directory. After you have installed the
|
||||
package for one architecture, use `make distclean' before reconfiguring
|
||||
for another architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' installs the package's commands under
|
||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||
can specify an installation prefix other than `/usr/local' by giving
|
||||
`configure' the option `--prefix=PREFIX'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||
PREFIX as the prefix for installing programs and libraries.
|
||||
Documentation and other data files still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=DIR' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out automatically,
|
||||
but needs to determine by the type of machine the package will run on.
|
||||
Usually, assuming the package is built to be run on the _same_
|
||||
architectures, `configure' can figure that out, but if it prints a
|
||||
message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
use the option `--target=TYPE' to select the type of system they will
|
||||
produce code for.
|
||||
|
||||
If you want to _use_ a cross compiler, that generates code for a
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
eventually be run) with `--host=TYPE'.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share, you
|
||||
can create a site shell script called `config.site' that gives default
|
||||
values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||
overridden in the site shell script). Here is a another example:
|
||||
|
||||
/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||
|
||||
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
|
||||
configuration-related scripts to be executed by `/bin/bash'.
|
||||
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
SUBDIRS = src util sample
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
srcdir=`dirname $0`
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
ORIGDIR=`pwd`
|
||||
cd $srcdir
|
||||
PROJECT=xflaim
|
||||
TEST_TYPE=-f
|
||||
FILE=src/xflaim.h
|
||||
|
||||
DIE=0
|
||||
|
||||
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have autoconf installed to compile $PROJECT."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
|
||||
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "You must have automake installed to compile $PROJECT."
|
||||
echo "Download the appropriate package for your distribution,"
|
||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||
DIE=1
|
||||
}
|
||||
|
||||
if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
test $TEST_TYPE $FILE || {
|
||||
echo "You must run this script in the top-level $PROJECT directory"
|
||||
exit 1
|
||||
}
|
||||
|
||||
aclocal $ACLOCAL_FLAGS
|
||||
echo "aclocal done"
|
||||
libtoolize --force --copy
|
||||
echo "libtoolize done"
|
||||
autoheader
|
||||
echo "autoheader done"
|
||||
automake --add-missing --copy $am_opt
|
||||
echo "automake done"
|
||||
autoconf
|
||||
echo "autoconf done"
|
||||
cd $ORIGDIR
|
||||
|
||||
echo
|
||||
echo "Now type 'configure' and 'make' to compile $PROJECT. You can do this"
|
||||
echo "in a separate build directory if you wish"
|
||||
@@ -0,0 +1,116 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_INIT([xflaim], [5.0], [xflaim-bug@novell.com])
|
||||
AM_INIT_AUTOMAKE
|
||||
|
||||
AC_PREREQ(2.59)
|
||||
|
||||
AC_CONFIG_SRCDIR([src/xflaim.h])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([ncurses], [initscr])
|
||||
AC_CHECK_LIB([rt], [aio_cancel])
|
||||
AC_CHECK_LIB([dl], [dlopen])
|
||||
AC_CHECK_LIB([m], [log10])
|
||||
AC_CHECK_LIB([nsl], [gethostname])
|
||||
AC_CHECK_LIB([pthread], [pthread_create])
|
||||
AC_CHECK_LIB([socket], [socket])
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/mount.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h unistd.h utime.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_HEADER_STDBOOL
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_TYPE_MODE_T
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
AC_C_VOLATILE
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_LSTAT
|
||||
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
||||
AC_FUNC_MALLOC
|
||||
AC_FUNC_MEMCMP
|
||||
AC_FUNC_MKTIME
|
||||
AC_FUNC_MMAP
|
||||
AC_FUNC_STAT
|
||||
AC_CHECK_FUNCS([atexit fdatasync ftruncate getcwd gethrtime gettimeofday localtime_r memmove memset mkdir munmap realpath rmdir strcasecmp strchr strerror strncasecmp strrchr strstr])
|
||||
|
||||
#
|
||||
# Generic DEBUG support - default is OFF
|
||||
# ON means with symbols, no optimization, DEBUG is defined
|
||||
# OFF means with symbols, full optimization, NDEBUG is defined
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
AS_HELP_STRING([--enable-debug], [Turn on debugging (default is OFF)]),
|
||||
[case "${enableval}" in
|
||||
yes) debug=yes ;;
|
||||
no) debug=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
||||
esac], [debug=no])
|
||||
AM_CONDITIONAL(DEBUG, test x$debug = xyes)
|
||||
AM_CONDITIONAL(NDEBUG, test x$debug = xno)
|
||||
if test x$debug = xyes; then
|
||||
AC_DEFINE(DEBUG, 1, [Defined for debug builds])
|
||||
else
|
||||
AC_DEFINE(NDEBUG, 1, [Defined for non-debug builds])
|
||||
fi
|
||||
|
||||
#
|
||||
# Set C/C++ compiler-specific warning/optimization/option flags
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
if test x$GCC = xyes; then
|
||||
# GCC: turn on all warnings, set warnings as errors
|
||||
# disable optimization for debug builds
|
||||
# enable high-level optimizations for non-debug builds
|
||||
CXXFLAGS="$CXXFLAGS -Wall -Werror"
|
||||
if test x$debug = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -O0"
|
||||
else
|
||||
CXXFLAGS="$CXXFLAGS -O3 -fgcse-sm"
|
||||
fi
|
||||
elif $CC -V 2>&1 | grep "WorkShop Compilers"; then
|
||||
# Solaris Workshop: enable optimizations for debug builds
|
||||
CXXFLAGS="$CXXFLAGS -errwarn=%all -errtags -erroff=hidef,inllargeuse"
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -fast"
|
||||
if echo $CC | grep "xarch=v9"; then
|
||||
# -fast sets -xarch=v8 disabling 64-bit mode, enable it again
|
||||
CXXFLAGS="$CXXFLAGS -xarch=v9"
|
||||
fi
|
||||
fi
|
||||
elif echo $host_os | grep -i "osf" >/dev/null; then
|
||||
# OSF: enable standard C (shouldn't be necessary)
|
||||
# enable optimizations for non-debug builds
|
||||
CXXFLAGS="$CXXFLAGS -std"
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -O"
|
||||
fi
|
||||
else
|
||||
# everything else: take a wild guess (shouldn't need this)
|
||||
if test x$debug = xno; then
|
||||
CXXFLAGS="$CXXFLAGS -O"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile src/Makefile util/Makefile sample/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
bin_PROGRAMS = sample
|
||||
sample_SOURCES = sample.cpp
|
||||
sample_CPPFLAGS = -I$(top_srcdir)/src
|
||||
sample_LDADD = ../src/libxflaim.la
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
lib_LTLIBRARIES = libxflaim.la
|
||||
libxflaim_la_SOURCES = \
|
||||
btreeinfo.cpp \
|
||||
checksum.cpp \
|
||||
ddcreate.cpp \
|
||||
f64bitfh.cpp \
|
||||
f64bitfh.h \
|
||||
f_btpool.cpp \
|
||||
f_btpool.h \
|
||||
f_btree.cpp \
|
||||
f_btree.h \
|
||||
fbtrset.cpp \
|
||||
fbtrset.h \
|
||||
fbuff.cpp \
|
||||
fbuff.h \
|
||||
fcache.h \
|
||||
fcollate.cpp \
|
||||
fcollate.h \
|
||||
fcomfact.cpp \
|
||||
fcomfact.h \
|
||||
fdbcnfig.cpp \
|
||||
fdbcopy.cpp \
|
||||
fdbremov.cpp \
|
||||
fdbrenam.cpp \
|
||||
fdict.cpp \
|
||||
fdict.h \
|
||||
fdir.h \
|
||||
fdllmain.cpp \
|
||||
fdoclist.cpp \
|
||||
fdom.cpp \
|
||||
fdynbtre.cpp \
|
||||
fdynbuf.cpp \
|
||||
fdynbuf.h \
|
||||
fdynsset.cpp \
|
||||
fdynsset.h \
|
||||
ffilehdl.cpp \
|
||||
ffilehdl.h \
|
||||
ffilehdr.cpp \
|
||||
ffilesys.cpp \
|
||||
ffilesys.h \
|
||||
filesys.h \
|
||||
flaimsys.h \
|
||||
flalloc.cpp \
|
||||
flbackup.cpp \
|
||||
flblddb.cpp \
|
||||
flblksum.cpp \
|
||||
flchkdb.cpp \
|
||||
flchkix.cpp \
|
||||
flchktr.cpp \
|
||||
flclose.cpp \
|
||||
flconvrt.cpp \
|
||||
flcreate.cpp \
|
||||
fldbglog.cpp \
|
||||
flerror.cpp \
|
||||
flerrstr.cpp \
|
||||
flfixed.cpp \
|
||||
flfixed.h \
|
||||
flgethdr.cpp \
|
||||
flindex.cpp \
|
||||
flkeyret.cpp \
|
||||
flmstat.cpp \
|
||||
flmstat.h \
|
||||
flog.cpp \
|
||||
flog.h \
|
||||
flopen.cpp \
|
||||
flprintf.cpp \
|
||||
flreduce.cpp \
|
||||
flsweep.cpp \
|
||||
fltrabrt.cpp \
|
||||
fltrbeg.cpp \
|
||||
fltrcmit.cpp \
|
||||
flutil.cpp \
|
||||
flverify.cpp \
|
||||
f_nici.cpp \
|
||||
f_nici.h \
|
||||
fntable.cpp \
|
||||
fnumber.cpp \
|
||||
fposix.cpp \
|
||||
fposix.h \
|
||||
fqeval.cpp \
|
||||
fqsort.cpp \
|
||||
fquery.cpp \
|
||||
fquery.h \
|
||||
frecread.cpp \
|
||||
frecread.h \
|
||||
frestore.cpp \
|
||||
frsetblk.cpp \
|
||||
frset.cpp \
|
||||
frset.h \
|
||||
fsblk_u.cpp \
|
||||
fscursor.cpp \
|
||||
fscursor.h \
|
||||
fsdatacu.cpp \
|
||||
fslfile.cpp \
|
||||
fslfileu.cpp \
|
||||
fsrefupd.cpp \
|
||||
fsrvlock.cpp \
|
||||
fsrvlock.h \
|
||||
fstream.cpp \
|
||||
fstructs.h \
|
||||
fsuperfl.cpp \
|
||||
fsuperfl.h \
|
||||
fsysdata.cpp \
|
||||
ftkdir.cpp \
|
||||
ftk.h \
|
||||
ftkmem.h \
|
||||
ftkmisc.cpp \
|
||||
ftkpath.cpp \
|
||||
ftkrand.cpp \
|
||||
ftksem.cpp \
|
||||
ftksem.h \
|
||||
ftkthrd.cpp \
|
||||
ftkthrd.h \
|
||||
ftktime.cpp \
|
||||
funicode.cpp \
|
||||
fvector.cpp \
|
||||
fwin.cpp \
|
||||
fwin.h \
|
||||
fxml.cpp \
|
||||
fxml.h \
|
||||
fxpath.cpp \
|
||||
fxpath.h \
|
||||
inifile.cpp \
|
||||
inifile.h \
|
||||
kybldkey.cpp \
|
||||
kybuild.cpp \
|
||||
kycollat.cpp \
|
||||
kyeword.cpp \
|
||||
kyqsort.cpp \
|
||||
kyunlock.cpp \
|
||||
Makefile.am \
|
||||
Makefile.in \
|
||||
ncache.cpp \
|
||||
nodeinfo.cpp \
|
||||
recover.cpp \
|
||||
regexp.cpp \
|
||||
rfl.cpp \
|
||||
rfl.h \
|
||||
scache.cpp \
|
||||
translog.cpp \
|
||||
unitable.h \
|
||||
xflaim.h
|
||||
|
||||
libxflaim_la_LDFLAGS = -version-info 0:0:0
|
||||
|
||||
@@ -64,6 +64,10 @@
|
||||
|
||||
#include "xflaim.h"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "../config.h"
|
||||
#endif
|
||||
|
||||
#ifdef FLM_NLM
|
||||
#if defined( FLM_WATCOM_NLM)
|
||||
|
||||
|
||||
@@ -360,7 +360,7 @@ RCODE F_DbSystem::openDatabase(
|
||||
}
|
||||
else
|
||||
{
|
||||
FLMBOOL bWaited;
|
||||
FLMBOOL bWaited = FALSE;
|
||||
flmAssert( !pLockFileHdl);
|
||||
|
||||
if (RC_BAD( rc = pDatabase->verifyOkToUse( &bWaited)))
|
||||
|
||||
@@ -3033,7 +3033,7 @@ RCODE F_Record::storage2INT(
|
||||
FLMINT * piNum)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
BCD_TYPE bcd;
|
||||
BCD_TYPE bcd = {0};
|
||||
|
||||
if( RC_BAD( rc = bcd2Num( uiType, uiBufLength, pBuf, &bcd)))
|
||||
{
|
||||
@@ -3081,7 +3081,7 @@ RCODE F_Record::storage2UINT(
|
||||
FLMUINT * puiNum)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
BCD_TYPE bcd;
|
||||
BCD_TYPE bcd = {0};
|
||||
|
||||
if( RC_BAD( rc = bcd2Num( uiType, uiBufLength, pBuf, &bcd)))
|
||||
{
|
||||
@@ -3125,7 +3125,7 @@ RCODE F_Record::storage2UINT32(
|
||||
FLMUINT32 * pui32Num)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
BCD_TYPE bcd;
|
||||
BCD_TYPE bcd = {0};
|
||||
|
||||
if( RC_BAD( rc = bcd2Num( uiType, uiBufLength, pBuf, &bcd)))
|
||||
{
|
||||
|
||||
@@ -2714,7 +2714,7 @@ RCODE F_RegExp::addLiteralExpr(
|
||||
)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
REG_EXP * pTmpExpr;
|
||||
REG_EXP * pTmpExpr = 0;
|
||||
|
||||
if (RC_BAD( rc = createRegExp( EXP_LITERAL, &pTmpExpr)))
|
||||
{
|
||||
@@ -3867,7 +3867,7 @@ Desc: Start an alternative - Called when we hit a left paren.
|
||||
RCODE F_RegExp::startAlternative( void)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
REG_EXP * pTmpExpr;
|
||||
REG_EXP * pTmpExpr = 0;
|
||||
|
||||
// If we were gathering up a literal, save it out.
|
||||
|
||||
@@ -4037,7 +4037,7 @@ RCODE F_RegExp::setExpression(
|
||||
)
|
||||
{
|
||||
RCODE rc = NE_XFLM_OK;
|
||||
REG_EXP * pTmpExpr;
|
||||
REG_EXP * pTmpExpr = 0;
|
||||
FLMUNICODE uzChar;
|
||||
|
||||
while (*puzRegExp)
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
noinst_LTLIBRARIES = libutilsup.la
|
||||
libutilsup_la_SOURCES = flm_dlst.cpp flm_lutl.cpp ftx.cpp sharutil.cpp
|
||||
libutilsup_la_CPPFLAGS = -I$(top_srcdir)/src
|
||||
libutilsup_la_LDFLAGS = -static
|
||||
|
||||
bin_PROGRAMS = checkdb rebuild view xshell
|
||||
|
||||
checkdb_SOURCES = checkdb.cpp
|
||||
checkdb_CPPFLAGS = -I$(top_srcdir)/src
|
||||
checkdb_LDADD = ../src/libxflaim.la libutilsup.la
|
||||
|
||||
rebuild_SOURCES = rebuild.cpp
|
||||
rebuild_CPPFLAGS = -I$(top_srcdir)/src
|
||||
rebuild_LDADD = ../src/libxflaim.la libutilsup.la
|
||||
|
||||
view_SOURCES = \
|
||||
view.cpp \
|
||||
viewblk.cpp \
|
||||
viewdisp.cpp \
|
||||
viewedit.cpp \
|
||||
viewhdr.cpp \
|
||||
viewlfil.cpp \
|
||||
viewmenu.cpp \
|
||||
viewsrch.cpp
|
||||
view_CPPFLAGS = -I$(top_srcdir)/src
|
||||
view_LDADD = ../src/libxflaim.la libutilsup.la
|
||||
|
||||
xshell_SOURCES = fdomedt.cpp xshell.cpp fshell.cpp
|
||||
xshell_CPPFLAGS = -I$(top_srcdir)/src
|
||||
xshell_LDADD = ../src/libxflaim.la libutilsup.la
|
||||
|
||||
@@ -1209,7 +1209,7 @@ RCODE F_DomEditor::interactiveEdit(
|
||||
FLMUINT uiStartCol = 0;
|
||||
eDbTransType eTransType = XFLM_NO_TRANS;
|
||||
FLMUINT uiLoop;
|
||||
FLMUINT uiCurFlags;
|
||||
FLMUINT uiCurFlags = 0;
|
||||
char szAction[ 2];
|
||||
FLMUINT uiTermChar;
|
||||
FLMUINT uiHelpKey = uiStartChar;
|
||||
@@ -4720,7 +4720,7 @@ FLMBOOL F_DomEditor::canDeleteRow(
|
||||
DME_ROW_INFO * pCurRow
|
||||
)
|
||||
{
|
||||
FLMUINT uiFlags;
|
||||
FLMUINT uiFlags = 0;
|
||||
FLMBOOL bCanDelete = TRUE;
|
||||
|
||||
flmAssert( m_bSetupCalled == TRUE);
|
||||
|
||||
+2
-2
@@ -2775,7 +2775,7 @@ FTXRCODE FTXLineEdit(
|
||||
FLMBOOL bInsert;
|
||||
FLMBOOL bRefresh;
|
||||
FLMBOOL bGotChar = FALSE;
|
||||
FLMBOOL bSaveScroll;
|
||||
FLMBOOL bSaveScroll = FALSE;
|
||||
FTXRCODE rc = FTXRC_SUCCESS;
|
||||
|
||||
|
||||
@@ -6411,7 +6411,7 @@ void WpsThrdInitUsingScreen(
|
||||
char * pszScreenTitle
|
||||
)
|
||||
{
|
||||
FLMUINT uiRows;
|
||||
FLMUINT uiRows = 0;
|
||||
FLMUINT uiThrdId;
|
||||
WPSSCREEN * pCurScreen = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user