Initial revision

This commit is contained in:
slidedraw 2002-03-20 15:31:36 +00:00
commit 89c4cdb2d7
148 changed files with 40909 additions and 0 deletions

1
AUTHORS Normal file
View File

@ -0,0 +1 @@
Charles Wyble <jackshck@yahoo.com>

340
COPYING Normal file
View File

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

182
INSTALL Normal file
View File

@ -0,0 +1,182 @@
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, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
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 at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' 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. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
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 supports 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' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' 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' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
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 host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
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.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--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.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

3
Makefile.am Normal file
View File

@ -0,0 +1,3 @@
SUBDIRS = cole xlhtml ppthtml
EXTRA_DIST = README-xlhtml README-ppthtml

360
Makefile.in Normal file
View File

@ -0,0 +1,360 @@
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
CC = @CC@
COLE_MAJOR = @COLE_MAJOR@
COLE_MICRO = @COLE_MICRO@
COLE_MINOR = @COLE_MINOR@
HOST_ALIAS_NAME = @HOST_ALIAS_NAME@
HOST_CANONICAL_NAME = @HOST_CANONICAL_NAME@
HOST_CPU = @HOST_CPU@
HOST_OS = @HOST_OS@
HOST_VENDOR = @HOST_VENDOR@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
STRIP = @STRIP@
VERSION = @VERSION@
SUBDIRS = cole xlhtml ppthtml
EXTRA_DIST = README-xlhtml README-ppthtml
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
Makefile.am Makefile.in NEWS aclocal.m4 config.guess config.h.in \
config.sub configure configure.in install-sh missing mkinstalldirs
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = tar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(ACLOCAL_M4): configure.in
cd $(srcdir) && $(ACLOCAL)
config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
config.h: stamp-h
@if test ! -f $@; then \
rm -f stamp-h; \
$(MAKE) stamp-h; \
else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
$(SHELL) ./config.status
@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
@if test ! -f $@; then \
rm -f $(srcdir)/stamp-h.in; \
$(MAKE) $(srcdir)/stamp-h.in; \
else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
mostlyclean-hdr:
clean-hdr:
distclean-hdr:
-rm -f config.h
maintainer-clean-hdr:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
for subdir in $(SUBDIRS); do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
fi; \
done
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
all-recursive-am: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
install-exec-am:
install-exec: install-exec-recursive
install-data-am:
install-data: install-data-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am:
uninstall: uninstall-recursive
all-am: Makefile config.h
all-redirect: all-recursive-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs: installdirs-recursive
installdirs-am:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
mostlyclean: mostlyclean-recursive
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
clean: clean-recursive
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
distclean: distclean-recursive
-rm -f config.status
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive
-rm -f config.status
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
install-data-recursive uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

0
NEWS Normal file
View File

2
README Normal file
View File

@ -0,0 +1,2 @@

145
aclocal.m4 vendored Normal file
View File

@ -0,0 +1,145 @@
dnl aclocal.m4 generated automatically by aclocal 1.4-p4
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
# serial 1
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AC_SUBST(VERSION)
dnl test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
#
# Check to make sure that the build environment is sane.
#
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "[$]*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "[$]*" != "X $srcdir/configure conftestfile" \
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "[$]2" = conftestfile
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
rm -f conftest*
AC_MSG_RESULT(yes)])
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
$1=$2
AC_MSG_RESULT(found)
else
$1="$3/missing $2"
AC_MSG_RESULT(missing)
fi
AC_SUBST($1)])
# Like AC_CONFIG_HEADER, but automatically create stamp file.
AC_DEFUN(AM_CONFIG_HEADER,
[AC_PREREQ([2.12])
AC_CONFIG_HEADER([$1])
dnl When config.status generates a header, we must update the stamp-h file.
dnl This file resides in the same directory as the config header
dnl that is generated. We must strip everything past the first ":",
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<am_indx=1
for am_file in <<$1>>; do
case " <<$>>CONFIG_HEADERS " in
*" <<$>>am_file "*<<)>>
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
;;
esac
am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
changequote([,]))])
#serial 1
# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro
# because gettext's gettext.m4 (distributed in the automake package)
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
# give these diagnostics:
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
undefine([AC_ISC_POSIX])
AC_DEFUN([AC_ISC_POSIX],
[
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
]
)

16
cole/AUTHORS Normal file
View File

@ -0,0 +1,16 @@
Current maintainer:
*******************
Roberto Arturo Tena Sanchez <arturo@directmail.org>
Authors (Copyright owners):
***************************
Roberto Arturo Tena Sanchez <arturo@directmail.org>
Andrew Scriven <andy.scriven@research.natpower.co.uk>
See the file `THANKS' to see the contributors.

31
cole/BUGS Normal file
View File

@ -0,0 +1,31 @@
Report bugs to the maintainer (see the file `AUTHORS' for details).
Please, along with your detailed report, send the cole's output when compiled
using `--enable-verbose' (see the files `README' and `INSTALL' for details).
Current bugs:
**************
None.
Fixed bugs:
************
Reported that cole can't read files biggers that 8Mb. UPDATE: oledecod.c is
changed now to read additional blocks to the bbd. This fixes the bug.
Reported strange bug in cole 0.1.0 using Solaris using `../demo sprsheet.xls'
in examples directory. We need more test there! UPDATE: Seems to be fixed in
cole 1.0.0 with the endianess care code.
Possible bugs:
**************
* cole is not reentrant safe (it's in TODO):
What happend if, in any program, one user tries to decode and/or code
two files (the same or diferent)? Because static vars, will it get
broke? I think yes, mmmh...

340
cole/COPYING Normal file
View File

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
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
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

539
cole/ChangeLog Normal file
View File

@ -0,0 +1,539 @@
1999-09-24 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/NEWS: Documentation updated.
1999-09-23 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/TODO: Update documentation.
1999-09-03 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/examples/demo.c:
Fixed bug in open file name (x05 used instead 005).
1999-09-02 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/tmpl/cole-unused.sgml:
Documentation updates.
1999-08-31 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/BUGS: Fixed --enable-verbose flag.
1999-08-13 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/README-CVS: Little bug fixed.
1999-08-06 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/utils/.cvsignore, /usr/local/cvsroot/cole/cole.c:
Changed documentation and ignored generated files.
1999-08-05 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/NEWS: Added news for cole 2.0.1.
1999-08-02 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/configure.in:
Changed version from 1.0.0 to 1.0.1.
* /usr/local/cvsroot/cole/utils/Makefile.am, /usr/local/cvsroot/cole/utils/cole_extract.c:
New util.
1999-07-29 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.c:
Generated cole.h now includes stdio.h in order to get size_t.
1999-07-27 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/ChangeLog-from1to2, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/doc/legal.sgml:
Documentation updates. Added the ChangeLog-from1to2 for the ChangeLog entry "Updated to have the cole 2.0.0 tree. Old files have the tag before-cole-2-0-0-develop".
* /usr/local/cvsroot/cole/doc/legal.sgml, /usr/local/cvsroot/cole/doc/tmpl/cole-unused.sgml, /usr/local/cvsroot/cole/doc/using.sgml, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/doc/bugs.sgml, /usr/local/cvsroot/cole/doc/introduction.sgml:
Documentation update, typo fixed.
1999-07-26 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/examples/.cvsignore, /usr/local/cvsroot/cole/utils/.cvsignore, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/oledecod.c:
Fixed a bug that prevented that the configure flag `--enable-verbose' be used.
* /usr/local/cvsroot/cole/utils/cole_isfs.c, /usr/local/cvsroot/cole/utils/cole_tree.c, /usr/local/cvsroot/cole/examples/demo.c, /usr/local/cvsroot/cole/examples/directory.c, /usr/local/cvsroot/cole/examples/file.c, /usr/local/cvsroot/cole/examples/filesystem.c, /usr/local/cvsroot/cole/doc/tmpl/api.sgml, /usr/local/cvsroot/cole/doc/tmpl/cole-unused.sgml, /usr/local/cvsroot/cole/doc/compile.sgml, /usr/local/cvsroot/cole/doc/introduction.sgml, /usr/local/cvsroot/cole/doc/legal.sgml, /usr/local/cvsroot/cole/doc/using.sgml, /usr/local/cvsroot/cole/doc/cole-sections.txt, /usr/local/cvsroot/cole/doc/HACKING, /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/olecod.c, /usr/local/cvsroot/cole/oledecod.c, /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/NEWS:
Added -O0 to, and deleted -Werror from, --cole-debug configure flag.
Fixed some little things to not get many warnings when used --cole-debug.
(cole_frewind, cole_fsize): Created.
Tests for cole_fseek, cole_fsize and cole_frewind in examples/file.c.
(cole_ferror, cole_fclearerror): Deleted, since they are not necessary because fread and fwrite returns the exact error, if any.
(__OLEcode): Prototype deleted from internal.h, now it's useless. Comment about exit codes is now in olecod.c.
Created _COLE_TYPE_FILE, _COLE_TYPE_DIR and _COLE_TYPE_ROOT.
(cole_direntry_isdir, cole_direntry_isfile): Now uses _COLE_TYPE_FILE and _COLE_TYPE_DIR.
Documentation update.
1999-07-24 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.c:
New errors: COLE_EFSEEKDELTA and COLE_EFSEEKFLAG.
New field in struct _COLEFILE: filesize.
New type: COLE_SEEK_FLAG.
(cole_fseek): Created.
(cole_fopen_direntry): Fill filesize.
(cole_feof): Change to use filesize.
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.c:
Now position the file position indicator before every read, in preparation for cole_fseek.
* /usr/local/cvsroot/cole/examples/file.c, /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/doc/HACKING, /usr/local/cvsroot/cole/cole.c (cole_ftell):
Created.
* /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/cole.c (cole_fopen_direntry, cole_fread, cole_feof):
Added file pointer position pos field to struct _COLEFILE and modified related functions.
1999-07-23 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/support.h: Changed preferences for types.
* /usr/local/cvsroot/cole/TODO: Documentation updated.
* /usr/local/cvsroot/cole/examples/README-examples, /usr/local/cvsroot/cole/doc/introduction.sgml, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/AUTHORS, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/README:
Documentation updates.
* /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/examples/demo.c:
Added version example.
* /usr/local/cvsroot/cole/examples/file.c, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/examples/travel.c, /usr/local/cvsroot/cole/doc/HACKING, /usr/local/cvsroot/cole/doc/using.sgml, /usr/local/cvsroot/cole/examples/Makefile.am, /usr/local/cvsroot/cole/examples/directory.c, /usr/local/cvsroot/cole/TODO:
Changed example names. Updated documentation.
* /usr/local/cvsroot/cole/utils/iscolefs.c, /usr/local/cvsroot/cole/utils/cole_isfs.c, /usr/local/cvsroot/cole/utils/cole_isfs_fast.c, /usr/local/cvsroot/cole/utils/cole_tree.c, /usr/local/cvsroot/cole/utils/coletree.c, /usr/local/cvsroot/cole/examples/travel.c, /usr/local/cvsroot/cole/examples/version.c, /usr/local/cvsroot/cole/utils/Makefile.am, /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/examples/Makefile.am, /usr/local/cvsroot/cole/examples/filesystem.c, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/TODO:
New examples, some utils changed its name.
* /usr/local/cvsroot/cole/examples/text.doc: Incrusted one object.
* /usr/local/cvsroot/cole/utils/iscolefs.c, /usr/local/cvsroot/cole/cole.c:
Changed error names to COLE_E, ended the change in all code.
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/doc/tmpl/api.sgml, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.c:
Changed some errors names to COLE_E, missing a lot.
* /usr/local/cvsroot/cole/doc/tmpl/api.sgml, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/TODO:
Documentation changes.
* /usr/local/cvsroot/cole/cole.c (__cole_locate_filename_indirentry):
Now cole_locate_filename works with a filename of a directory ending with '/'.
1999-07-22 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/TODO (__cole_recurse_tree):
Fixed bug that prevent to cole_fopen() to open files in subdirectories.
* /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/internal.c, /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.c:
Error codes COLE_FILENAMEISNOTFILE, COLE_BROKENFILENAME and COLE_FILENAMEISNOTFILE created.
Created COLE_LOCATE_ACTION_FUNC type.
(cole_perror): Added messages for new error codes.
(__cole_locate_entry): renamed to cole_locate_filename and made public.
(cole_fopen): Now use cole_locate_filename(), and can open files in subdirectories.
1999-07-21 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/internal.c, /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/Makefile.am (__cole_locate_entry):
first hacks, it doesn't work yet.
olecod.c is not compiled now.
Now dist target works again.
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.c:
Created COLE_RECURSE_VISIT_DIR_FUNC type.
(cole_recurse_tree): Added visitdir argument. All callers changed.
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.c:
Created COLE_RECURSE_DIR_FUNC and COLE_RECURSE_DIRENT_FUNC types.
(cole_recurse_tree, __cole_recurse_tree): changed function pointer arguments to COLE_RECURSE_DIR_FUNC and COLE_RECURSE_DIRENT_FUNC. All callers changed.
* /usr/local/cvsroot/cole/cole.c (cole_recurse_tree):
now takes colerrno argument of cole_closedir appropiately.
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.c (cole_recurse_tree):
Changed `COLERRNO *' at the end, to be standard.
1999-07-20 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/.cvsignore, /usr/local/cvsroot/cole/examples/.cvsignore, /usr/local/cvsroot/cole/utils/.cvsignore, /usr/local/cvsroot/cole/.cvsignore:
Ignore generated files in CVS.
* /usr/local/cvsroot/cole/examples/demo.c, /usr/local/cvsroot/cole/examples/travel.c, /usr/local/cvsroot/cole/doc/cole-sections.txt, /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/cole.h.in (cole_opendir):
Renamed to cole_opendir_rootdir.
1999-07-17 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/internal.c, /usr/local/cvsroot/cole/cole.c (__cole_locate_entry):
new functions, only created the squeleton.
(cole_recurse_tree, __cole_recurse_tree): new functions.
(__cole_print_tree_inroot, __cole_print_tree_indirentry, __cole_print_tree_indir, __cole_print_tree_outdir): new functions.
(cole_print_tree): rewritten using cole_recurse_tree and __cole_print_tree_inroot, __cole_print_tree_indirentry, __cole_print_tree_indir and __cole_print_tree_outdir calls.
(__cole_print_tree): deleted.
1999-07-16 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/examples/demo.c, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/examples/travel.c, /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/TODO (cole_fread, cole_dir_getsize, cole_direntry_getsize):
Sizes are now size_t, which is more correct.
1999-07-15 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/utils/.cvsignore, /usr/local/cvsroot/cole/.cvsignore:
Added ignore files for CVS.
* /usr/local/cvsroot/cole/cole.c (__cole_print_tree):
Changed tree print style to somewhat better looking.
1999-07-14 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/cole.c (cole_print_tree):
Fixed bug, now returns zero or no zero apropiately.
1999-07-13 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/utils/coletree.c, /usr/local/cvsroot/cole/utils/iscolefs.c, /usr/local/cvsroot/cole/examples/travel.c, /usr/local/cvsroot/cole/utils/Makefile.am, /usr/local/cvsroot/cole/examples/demo.c, /usr/local/cvsroot/cole/examples/read.c, /usr/local/cvsroot/cole/examples/topsrcdir.h.in, /usr/local/cvsroot/cole/doc/tmpl/internals.sgml, /usr/local/cvsroot/cole/examples/Makefile.am, /usr/local/cvsroot/cole/examples/README-examples, /usr/local/cvsroot/cole/doc/tmpl/.cvsignore, /usr/local/cvsroot/cole/doc/tmpl/api.sgml, /usr/local/cvsroot/cole/doc/tmpl/cole-unused.sgml, /usr/local/cvsroot/cole/doc/introduction.sgml, /usr/local/cvsroot/cole/doc/legal.sgml, /usr/local/cvsroot/cole/doc/using.sgml, /usr/local/cvsroot/cole/doc/cole-sections.txt, /usr/local/cvsroot/cole/doc/compile.sgml, /usr/local/cvsroot/cole/doc/gpl.sgml, /usr/local/cvsroot/cole/doc/cole-manual.sgml-old, /usr/local/cvsroot/cole/doc/bugs.sgml, /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/doc/HACKING, /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/version.c.in, /usr/local/cvsroot/cole/support.h, /usr/local/cvsroot/cole/test.c, /usr/local/cvsroot/cole/test.sh, /usr/local/cvsroot/cole/oledecod.h, /usr/local/cvsroot/cole/support.c, /usr/local/cvsroot/cole/olecod.h, /usr/local/cvsroot/cole/oledecod.c, /usr/local/cvsroot/cole/internal.h, /usr/local/cvsroot/cole/olecod.c, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/demo.c, /usr/local/cvsroot/cole/internal.c, /usr/local/cvsroot/cole/cole.h.in, /usr/local/cvsroot/cole/cole.lsm, /usr/local/cvsroot/cole/cole.m4, /usr/local/cvsroot/cole/cole.spec.in, /usr/local/cvsroot/cole/cole.c, /usr/local/cvsroot/cole/cole.h, /usr/local/cvsroot/cole/acconfig.h, /usr/local/cvsroot/cole/autogen.sh, /usr/local/cvsroot/cole/cole-config.in, /usr/local/cvsroot/cole/README-CVS, /usr/local/cvsroot/cole/README-samples, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/DOWNLOAD, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/AUTHORS, /usr/local/cvsroot/cole/.cvsignore:
Updated to have the cole 2.0.0 tree. Old files have the tag before-cole-2-0-0-develop.
1999-06-25 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/oledecod.c:
Little hack to read files larger than 7Mb.
* /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/NEWS:
Fixed, now it compiles under Solaris, doc target disabled.
1999-06-24 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/NEWS: Added entry for 1.0.1 release.
* /usr/local/cvsroot/cole/ChangeLog:
ChangeLog removed, it can be removed using rcs2log.
1999-06-23 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/doc/Makefile.am:
Hack to allow Solaris make doesn't regenerate cole-manual directory.
* /usr/local/cvsroot/cole/TODO: Updated.
* /usr/local/cvsroot/cole/doc/Makefile.am:
Fixed test -e doesn't work in some systems.
1999-06-18 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/TODO: Updated TODO.
* /usr/local/cvsroot/cole/cole.lsm: Updated .tar.gz size
* /usr/local/cvsroot/cole/cole.lsm: Fixed metalab directory name.
1999-06-17 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/ChangeLog: *** empty log message ***
* /usr/local/cvsroot/cole/doc/cole-manual.sgml:
"Officially" end the documentation.
* /usr/local/cvsroot/cole/doc/Makefile.am: Integrated db2html call.
* /usr/local/cvsroot/cole/TODO: Typo fixed.
* /usr/local/cvsroot/cole/TODO: Updated TODO.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/doc/Makefile.am:
Now it includes cole.lsm in the distribution.
* /usr/local/cvsroot/cole/HACKING: Updated libtool version.
* /usr/local/cvsroot/cole/cole.lsm:
Test with Emacs version control system.
* /usr/local/cvsroot/cole/cole.lsm: Test with vc CVS Emacs functions.
* /usr/local/cvsroot/cole/cole.lsm: Test with emacs vc CVS mode.
* /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/oledecod.h, /usr/local/cvsroot/cole/support.c, /usr/local/cvsroot/cole/support.h, /usr/local/cvsroot/cole/olecod.h, /usr/local/cvsroot/cole/oledecod.c, /usr/local/cvsroot/cole/olecod.c, /usr/local/cvsroot/cole/autogen.sh, /usr/local/cvsroot/cole/cole.h, /usr/local/cvsroot/cole/cole.spec.in, /usr/local/cvsroot/cole/README-samples, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/README-CVS, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/Makefile.am:
filters@centauri.lci.ulsa.mx erased from code. Little documentation style changes.
1999-06-16 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.lsm:
Updated TODO and cole.lsm.
* /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/support.c, /usr/local/cvsroot/cole/support.h, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.lsm, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/ChangeLog, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/BUGS:
Added 2 examples to documentation. Changed version number from 0.2.0 to 1.0.0. Changelog truncated, it will be autogenerated anyway. Now install all the necessary headers. README updated. Added .lsm file, to MetaLab archive. Fixed make clean, it now don't delete documentation.
1999-06-15 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/examples/.cvsignore, /usr/local/cvsroot/cole/examples/Makefile.in, /usr/local/cvsroot/cole/doc/cole-manual.sgml:
Updated documentation: added one example.
1999-05-21 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/examples/Makefile.in, /usr/local/cvsroot/cole/examples/Makefile.am, /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/test.sh, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/configure.in:
cole documentation a lot improved a lot. Fixed make distcheck target.
* /usr/local/cvsroot/cole/doc/API: Changed to cole-2.0 tree.
1999-04-29 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/cole-manual.sgml:
Changed most-recent-stable-version entity to this-release.
* /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/doc/cole-manual.sgml:
Updated documentation, not finished yet: missing API.
* /usr/local/cvsroot/cole/test.sh: Removed Id tag.
* /usr/local/cvsroot/cole/doc/Makefile.am: Added RTF rule.
* /usr/local/cvsroot/cole/doc/.cvsignore, /usr/local/cvsroot/cole/.cvsignore:
Ignore *.swp files.
* /usr/local/cvsroot/cole/README: Little typo.
1999-04-28 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/Makefile.am:
Added forgotten clean-local rule on doc/.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/configure.in:
Updated required autoconf and automake versions, and removing ranlib test in configure because it's not needed.
1999-04-27 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/.cvsignore, /usr/local/cvsroot/cole/.cvsignore:
Ignore autogenerated files in CVS commit.
* /usr/local/cvsroot/cole/README-CVS: Added CVS instructions.
* /usr/local/cvsroot/cole/doc/Makefile.in, /usr/local/cvsroot/cole/mkinstalldirs, /usr/local/cvsroot/cole/stamp-h.in, /usr/local/cvsroot/cole/missing, /usr/local/cvsroot/cole/ltmain.sh, /usr/local/cvsroot/cole/ltconfig, /usr/local/cvsroot/cole/install-sh, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/config.sub, /usr/local/cvsroot/cole/config.guess, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/autogen.sh, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/Makefile.in:
Removed autogenerated files, now must use autogen.sh each time we checkout from CVS.
1999-04-22 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/doc/Makefile.in, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/acconfig.h, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/Makefile.am:
Downgrade to automake-1.3, autoconf-2.12 and libtool-1.2b, for compatibility.
1999-04-16 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/API: Little API cleanup.
1999-04-15 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/API: Little changes.
1999-04-14 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/API: Better API, more self-consistent.
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Snapshot cole-SNAP-19990414.
* /usr/local/cvsroot/cole/doc/API: New API purpose.
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Snapshot cole-SNAP-19990414.
* /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/doc/Makefile.in, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/Makefile.in:
It now compile on tenix.lci.ulsa.mx again.
1999-04-12 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/USING, /usr/local/cvsroot/cole/doc/cole-manual.sgml:
Agregationg stuff to documentation.
* /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Replacing version with release.
* /usr/local/cvsroot/cole/Makefile.in:
Removed USING file from EXTRA_DIST.
* /usr/local/cvsroot/cole/Makefile.am:
Deleting USING file for EXTRA_DIST.
1999-04-07 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/doc/Makefile.in, /usr/local/cvsroot/cole/doc/Makefile.am:
cole-manual dir now is make if not found.
* /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/doc/Makefile.am, /usr/local/cvsroot/cole/doc/Makefile.in, /usr/local/cvsroot/cole/doc/cole-manual.sgml, /usr/local/cvsroot/cole/HACKING:
cole-manual.sgml added.
* /usr/local/cvsroot/cole/README: Fixed typo.
1999-04-06 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/README-samples, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/cole.spec.in, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/AUTHORS:
Better and updated documentation and cole.spec.in.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/cole.spec.in, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Added a working cole.spec.in.
1999-04-03 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Snapshot cole-SNAP-19990403.
* /usr/local/cvsroot/cole/configure: CVS configure confict.
* /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/configure:
Fixed VERSION_INFO defines.
* /usr/local/cvsroot/cole/configure.in: Little changtes in comments.
* /usr/local/cvsroot/cole/Makefile.am: Little changes to commentes.
1999-04-02 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/Makefile.am:
Added rule to allow includes be installed
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Release cole-0.2.0.
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Snapshot cole-SNAP-19990402.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Typo fixed.
* /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/Makefile.am:
Little ChangeLog changes.
* /usr/local/cvsroot/cole/ChangeLog: ChangeLog updated.
* /usr/local/cvsroot/cole/ChangeLog: Release snapshot cole-19990402.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Some trickies to get Release entry in ChangeLog in the releases files itself.
* /usr/local/cvsroot/cole/ChangeLog, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Run aclocal, automake and autoconf before make distcheck run them when doing target make cvs-snap and make cvs-dist.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Fixed writting more usefull entries in ChangeLog code.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Write more usefull log entries in ChangeLog when releasing or making a snapshot.
* /usr/local/cvsroot/cole/ChangeLog: Updated ChangeLog to release
* /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/Makefile.am:
Updated make cvs-dist to use cvs export. Fixed.
* /usr/local/cvsroot/cole/ChangeLog: Updated ChangeLog to release
* /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/Makefile.am:
Updated make cvs-dist to use cvs export.
* /usr/local/cvsroot/cole/ChangeLog: Updated ChangeLog
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Removing some not necessary make distcheck from make cvs-snap target.
* /usr/local/cvsroot/cole/ChangeLog: Updated ChangeLog
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Typo error fixed.
* /usr/local/cvsroot/cole/Makefile.in:
Once again commiting Makefile.in. If I have more problems, I will remove it from CVS. The same goes to configure.
* /usr/local/cvsroot/cole/Makefile.in:
Add updated autogenerated files. Now I know why Gnome & KDE doesn't have Makefile.in and configure files in CVS. =/
* /usr/local/cvsroot/cole/ChangeLog:
Added ChangeLog again. I'm seeing if we can ignore it via .cvsignore, but automake requires it
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/ChangeLog:
Added changelog rule wich generate ChangeLog using rcs2log.
* /usr/local/cvsroot/cole/.cvsignore:
Added to ignore ChangeLog (will be autogenerated when making the distributions).
* /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/AUTHORS:
Changed contributor from AUTHORS to THANKS.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/configure:
Fixed the maintainer targets
* /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Changed VERSION var to not contain SNAP word.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
First cvs-snap target try.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Removing CHANGES from EXTRA_DIST list.
* /usr/local/cvsroot/cole/NEWS: Little typo.
* /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/CHANGES, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Added some maintainer targets. Not all have been checked.
* /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in:
Now make dist incorporate examples directory: we have to update automake =). README little updated.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/ltconfig, /usr/local/cvsroot/cole/ltmain.sh, /usr/local/cvsroot/cole/stamp-h, /usr/local/cvsroot/cole/test.sh:
Added some missing files.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Added make check target. Some typo fixed.
1999-04-01 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/VERSION.in:
Removed because I couldn't get working.
* /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/VERSION, /usr/local/cvsroot/cole/VERSION.in, /usr/local/cvsroot/cole/configure:
Now it have a working soname (compatibility version) system. This is usefull when working with shared libraries. VERSION file will be autogenerated.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Added libtool support. Shared libraries are disabled by default.
* /usr/local/cvsroot/cole/Makefile.am, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/NEWS, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/missing, /usr/local/cvsroot/cole/ChangeLog:
Now cole is semi-automakeified. Only missing make check target.
* /usr/local/cvsroot/cole/Makefile.am: Missing Makefile.am =)
* /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Changes just before run automake --add-missing
* /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/acconfig.h, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in:
Introduced compatibility issues.
* /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/configure.in:
Added a bunch of configuration stuff, such as version defines and compatibility version defines.
1999-03-30 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/examples/present.sdd, /usr/local/cvsroot/cole/examples/sprsheet.sdc, /usr/local/cvsroot/cole/examples/sprsheet.xls, /usr/local/cvsroot/cole/examples/text.doc, /usr/local/cvsroot/cole/examples/text.sdw:
Added a bunch of binary examples. Hope cvs handle this ok. =)
1999-03-28 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/Makefile.in:
Cleaning up configure stuff.
* /usr/local/cvsroot/cole/Makefile.in:
Fixed install mesage reporting wrong libdir.
* /usr/local/cvsroot/cole/ChangeLog:
ChangeLog removed, it will be autogenerated from cvs instead.
1999-03-27 Arturo Tena <arturo@directmail.org>
* /usr/local/cvsroot/cole/ChangeLog: Added ChangeLog
* /usr/local/cvsroot/cole/AUTHORS, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/CHANGES, /usr/local/cvsroot/cole/COPYING, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/INSTALL, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/README-samples, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/USING, /usr/local/cvsroot/cole/VERSION, /usr/local/cvsroot/cole/acconfig.h, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/cole.h, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/config.guess, /usr/local/cvsroot/cole/config.sub, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/demo.c, /usr/local/cvsroot/cole/install-sh, /usr/local/cvsroot/cole/mkinstalldirs, /usr/local/cvsroot/cole/olecod.c, /usr/local/cvsroot/cole/olecod.h, /usr/local/cvsroot/cole/oledecod.c, /usr/local/cvsroot/cole/oledecod.h, /usr/local/cvsroot/cole/stamp-h, /usr/local/cvsroot/cole/stamp-h.in, /usr/local/cvsroot/cole/support.c, /usr/local/cvsroot/cole/support.h, /usr/local/cvsroot/cole/test.c:
Imported sources from snap cole-0.2.0
* /usr/local/cvsroot/cole/AUTHORS, /usr/local/cvsroot/cole/BUGS, /usr/local/cvsroot/cole/CHANGES, /usr/local/cvsroot/cole/COPYING, /usr/local/cvsroot/cole/HACKING, /usr/local/cvsroot/cole/INSTALL, /usr/local/cvsroot/cole/Makefile.in, /usr/local/cvsroot/cole/README, /usr/local/cvsroot/cole/README-samples, /usr/local/cvsroot/cole/THANKS, /usr/local/cvsroot/cole/TODO, /usr/local/cvsroot/cole/USING, /usr/local/cvsroot/cole/VERSION, /usr/local/cvsroot/cole/acconfig.h, /usr/local/cvsroot/cole/aclocal.m4, /usr/local/cvsroot/cole/cole.h, /usr/local/cvsroot/cole/coleconfig.hin, /usr/local/cvsroot/cole/config.guess, /usr/local/cvsroot/cole/config.sub, /usr/local/cvsroot/cole/configure, /usr/local/cvsroot/cole/configure.in, /usr/local/cvsroot/cole/demo.c, /usr/local/cvsroot/cole/install-sh, /usr/local/cvsroot/cole/mkinstalldirs, /usr/local/cvsroot/cole/olecod.c, /usr/local/cvsroot/cole/olecod.h, /usr/local/cvsroot/cole/oledecod.c, /usr/local/cvsroot/cole/oledecod.h, /usr/local/cvsroot/cole/stamp-h, /usr/local/cvsroot/cole/stamp-h.in, /usr/local/cvsroot/cole/support.c, /usr/local/cvsroot/cole/support.h, /usr/local/cvsroot/cole/test.c:
New file.

55
cole/ChangeLog-from1to2 Normal file
View File

@ -0,0 +1,55 @@
2.0.0x Seems to me that all public calls that need colerrno have it.
2.0.0w Added cole_feof, cole_ferror and cole_fclearerr calls. Added COLERRNO to more public calls.
2.0.0v Created cole_opendir_direntry. Changed COLEDIR->dir to COLEDIR->entry, in all source. Renamed cole_direntry to cole_visiteddirentry. Changed cole_print_tree implentation to call cole API 2.x, instead old verbosePPSTree. Changed verbosePPSTree to be static to oledecod.c, private. Added COLERRNO *colerrno to more public calls.
2.0.0u Added COLERRNO * colerrno to some public calls that need it. Added the target regenerate-all to doc/Makefile, it calls templates, sgml and html. Created cole_perror call. Changed `file system' by `filesystem' in sources. sbfilename is now stored in COLEFS->sbfilename instead tree[0].filename, which need add a argument to __OLEdecode.
2.0.0t Fixed a check that prevent to mount FlashPix files. Removed one argument from cole_fopen_direntry call, because was not needed. Renamed OLEdecode and OLEcode to __OLEdecode and __OLEcode. More documentation.
2.0.0s More documentation.
2.0.0r Documentation changes and doc/Makefile targets now modifies source files, because the GNU standards says that if a file is in distribution and is modifed, must be leaved in distribution. And yes, they're right =). Improved configure flags. More documentation.
2.0.0q Now can use inline functions if compiler accept it.
2.0.0p Documentation is now autogenerated from sources by gtk-doc.
2.0.0o Documentation changes. Fixed autoconf.sh bug.
2.0.0n Deleted test.c and test.sh, because both were outdated. coleconfig.h generated file moved to the more standard name config.h. Deleted acconfig.h, because the autoconf version used generate the entries appropiately in config.h. Documentation little updated. Deleted examples/mount.c because was not useful. Updated cole.spec.in. README rewritten. Moved HACKING file to doc directory. Deleted cole.lsm, because it's hard to maintain. README-samples renamed to README-examples and moved to examples directory. cole.spec.in works now. cole.m4 is installed now. Added CANONICAL_HOST_NAME, HOST_ALIAS_NAME, HOST_CPU, HOST_VENDOR, HOST_OS configure vars. Created cole_host_info var. Changed dump memory function. Added a util: iscolefs.
2.0.0m demo.c is now in examples, but it's not a test. Added the filename argument to cole_fopen. Created cole_fopen_direntry and cole_fread calls.
2.0.0l Changed OLEdecode sign, now exposes BDepot, SDepot, sbfile and input. Those are saved while mounting. freeOLEtree doesn't take care about them, but are disposed and closed when umounting. Reordered timestamps in demo and travel, because we have 2 timestamps! start field of pps_entry is now public.
2.0.0k Changed oledecod.c and cole.c so:
1) only the sbfile is extracted at mount time (no extract all the
files).
2) sbfilename is stored in tree[root].filename.
3) remove sbfile at umount time.
4) no try to remove the files when doing freeOLEtree when umounting.
2.0.0j Changed COLEFILE by COLEFS and colefile by colefilesystem in all the
source code. Changed file field by fs field in struct _COLEDIR in
cole.h.in and cole.c. Created cole_fopen and cole_fclose calls.
2.0.0i Little cosmetic changes in cole.h.in, besides added
cole_direntry_getsec1, cole_direntry_getsec2, cole_direntry_getdays1 and
cole_direntry_getdays2 calls in demo.c.
2.0.0h Added cole_direntry_isdir, cole_direntry_isfile, cole_direntry_getsize,
cole_direntry_getsec1, cole_direntry_getsec2, cole_direntry_getdays1 and
cole_direntry_getdays2 calls.
2.0.0g Added a utils directory. Added cole_opendir, cole_closedir,
cole_direntry, cole_nextdirentry and cole_direntry_getname calls.
Added COLEDIR and COLEDIRENT opaque data types.
2.0.0f Added AM_PATH_COLE m4 macro in cole.m4, with versioning C macros and
global variables exported. Added cole-config script.
2.0.0e Changed API 2 code to cole.c. Added a test in examples directory.
2.0.0d Deleted olecod.h and wrote it in include.h.
2.0.0c Deleted oledecod.h and wrote it in include.h.
2.0.0b Reorganizated includes: now cole.h have all that a user needs.
2.0.0a Created cole_mount, cole_umount and cole_debug_verbose_tree calls in
oledecod.c and oledecod.h. Modified demo.c too.
2.0.0pre-a Added code to decode Extended Block Depot.

6
cole/DOWNLOAD Normal file
View File

@ -0,0 +1,6 @@
cole's WWW home page is in:
<http://arturo.directmail.org/filtersweb/>
There you will find references to the most recent version of cole' source code.

182
cole/INSTALL Normal file
View File

@ -0,0 +1,182 @@
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, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
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 at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' 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. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
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 supports 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' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' 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' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
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 host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
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.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--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.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

8
cole/Makefile.am Normal file
View File

@ -0,0 +1,8 @@
## Process this file with automake to produce Makefile.in
EXTRA_DIST = README-cole README-CVS DOWNLOAD ChangeLog ChangeLog-from1to2 TODO THANKS AUTHORS BUGS doc/* examples/* utils/*
noinst_LIBRARIES = libcole.a
libcole_a_SOURCES = cole.c internal.c oledecod.c olecod.c support.c version.c internal.h support.h
AM_CFLAGS = -Wall -Wcast-align -Wpointer-arith

276
cole/Makefile.in Normal file
View File

@ -0,0 +1,276 @@
# Makefile.in generated automatically by automake 1.4-p4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
CC = @CC@
COLE_MAJOR = @COLE_MAJOR@
COLE_MICRO = @COLE_MICRO@
COLE_MINOR = @COLE_MINOR@
HOST_ALIAS_NAME = @HOST_ALIAS_NAME@
HOST_CANONICAL_NAME = @HOST_CANONICAL_NAME@
HOST_CPU = @HOST_CPU@
HOST_OS = @HOST_OS@
HOST_VENDOR = @HOST_VENDOR@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
STRIP = @STRIP@
VERSION = @VERSION@
EXTRA_DIST = README-cole README-CVS DOWNLOAD ChangeLog ChangeLog-from1to2 TODO THANKS AUTHORS BUGS doc/* examples/* utils/*
noinst_LIBRARIES = libcole.a
libcole_a_SOURCES = cole.c internal.c oledecod.c olecod.c support.c version.c internal.h support.h
AM_CFLAGS = -Wall -Wcast-align -Wpointer-arith
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = version.c cole.h
LIBRARIES = $(noinst_LIBRARIES)
DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
libcole_a_LIBADD =
libcole_a_OBJECTS = cole.o internal.o oledecod.o olecod.o support.o \
version.o
AR = ar
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = AUTHORS COPYING ChangeLog INSTALL Makefile.am Makefile.in \
NEWS THANKS TODO cole.h.in version.c.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = tar
GZIP_ENV = --best
SOURCES = $(libcole_a_SOURCES)
OBJECTS = $(libcole_a_OBJECTS)
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps cole/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
version.c: $(top_builddir)/config.status version.c.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
cole.h: $(top_builddir)/config.status cole.h.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-noinstLIBRARIES:
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
distclean-noinstLIBRARIES:
maintainer-clean-noinstLIBRARIES:
.c.o:
$(COMPILE) -c $<
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
libcole.a: $(libcole_a_OBJECTS) $(libcole_a_DEPENDENCIES)
-rm -f libcole.a
$(AR) cru libcole.a $(libcole_a_OBJECTS) $(libcole_a_LIBADD)
$(RANLIB) libcole.a
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = cole
distdir: $(DISTFILES)
$(mkinstalldirs) $(distdir)/doc $(distdir)/examples $(distdir)/utils
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile $(LIBRARIES)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
mostlyclean-tags mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
mostlyclean-am
clean: clean-am
distclean-am: distclean-noinstLIBRARIES distclean-compile \
distclean-tags distclean-generic clean-am
distclean: distclean-am
maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
check-am installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

75
cole/NEWS Normal file
View File

@ -0,0 +1,75 @@
2.0.1 Arturo Tena <arturo@directmail.org> (1999-08):
+ Fixed bug in cole.h which didn't include stdio.h.
+ New util: cole_extract.
+ Updated documentation.
2.0.0 Arturo Tena <arturo@directmail.org> (1999-07):
+ New good looking API: it's modeled after `stdio.h' ANSI C calls.
+ Documentation of all public calls.
+ OLEdecode and OLEcode are now internal functions and they must be not called.
+ Write files (ie. what OLEcode() used to do) is not implemented by now.
1.0.1 Arturo Tena <arturo@directmail.org> (1999-06-25):
User level:
+ Fixed a bug that may prevent from compile under Solaris.
1.0.0:
Arturo Tena <arturo@directmail.org>
User level:
+ Autoconf-ified (now cole have configure script).
+ Automake-ified (now Makefile have standard targets).
+ Objects archived now in a static library: libcole.a.
+ Can compile a dynamic library.
+ Check endianess of machine.
+ Fix some bugs when reading damaged files.
+ Added --enable-cole-verbose option.
+ Added --enable-osf-align-check (thanks to Bernhard Reiter).
+ A cole.spec file to make a RPM package and a cole.lsm to MetaLab archive.
+ Documentation written.
Inside code:
+ Added some macros and functions in support.h
+ Change name from test to test_exitf define.
+ Create a new test and test_call_exitf define.
+ Rename max function to max3 (preparing to compile in Borland C).
+ fil_swriteU8 disappeared.
+ Clean up some files.
0.1.0:
Arturo Tena <arturo@directmail.org>
+ Change name from oledecod to cole.
+ Add olecod.c and olecod.h.
+ Modified demo.c to call OLEcod.
+ Changed pps->name, first character can be from 00 to 10, or so, as
originally is in ole 2 files.
+ Modified some errors in OLEdecod.
+ Create test suit, some doc files.
+ Improve this README.
0.0.6:
Arturo Tena <arturo@directmail.org>
+ Fix the checking while reordering pps list.
+ Add instructions on how to apply patches.
0.0.5:
Arturo Tena <arturo@directmail.org>
+ Fix the "Add some fool integrity checking while reading small block
depot" fix. Was > instead <=. =)
+ While reading a broken OLE file, added some checking while reordering
pps list.
+ Added return parameter to freeOLEtree function.
+ Some general clean up.
0.0.4:
Arturo Tena <arturo@directmail.org>
+ Fix one stupid error while erasing the OLE tree.
+ Add some fool integrity checking while reading small block depot.
0.0.3:
Arturo Tena <arturo@directmail.org>
+ Add one parameter to OLEdecod; max_level, which is the maximum level
stream we will extract into files.
+ Changed name from main.c to demo.c
+ Added a simple Makefile
+ Added this README file.

10
cole/README-CVS Normal file
View File

@ -0,0 +1,10 @@
If you got this source code from a CVS repository, execute `autogen.sh'
to generate `Makefile.in', `configure' and other files.
---
To erase the files that `autogen.sh' created, run:
rm config.guess config.sub ltconfig ltmain.sh missing mkinstalldirs install-sh config.h.in configure aclocal.m4 stamp-h.in INSTALL `find . -name "Makefile.in" -print`

54
cole/README-cole Normal file
View File

@ -0,0 +1,54 @@
What is cole?
*************
cole is a free C OLE library.
cole is distributed under the terms of the `GNU General Public License' (GPL)
to give an impulse to the Free Software. cole distribution license is
compatible with the `Open Source' definition.
Using cole, you can access Microsoft' `Structured Storage' files.
The most popular Microsoft's programs generate `Structured Storage' files,
incluiding the Microsoft' suite for offices. StarDivision' suite (StarOffice)
generate `Structured Storage' files too. FlashPix file format is
`Structured Storage' too.
What is a `Structured Storage' file?
************************************
Inside a `Structured Storage' file there is a filesystem, with directories
and files, which Microsoft calls `containers' and `streams'. Using cole you
can travel through such filesystem and access the files.
cole doesn't know about internal structure of a `stream', it only reads the
raw data. You can use the Microsoft's documentation available at
<http://msdn.microsoft.com/> or the information available at
<http://www.wotsit.org/> to know the binary file format of the streams. If you
know anything in the side of StarDivision email me. FlashPix file format is
well documented.
cole was developed using the information available at
<http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/guide.html> and the OLE::Storage
Perl module from the same site, and no information from any other source
(incluiding Microsoft) has been used.
Compile
*******
See the file `INSTALL' to know how to compile and install cole (a standard
`configure' script is provided).
Documentation
*************
The documentation is autogenerated from the source code, and it can be found in
the directory `doc/cole-manual' of the source code.
The current maintainer.
(see the file `AUTHORS')

21
cole/THANKS Normal file
View File

@ -0,0 +1,21 @@
Thank you all of you that have contributed with this project!
Thank you for help!
(If you can't find your name here, please email to the current maintainer).
Thanks to:
**********
The LAOLA guy: Martin Schwartz. Without his pretty hack
into Structure Storage and Compound Files this work could never be
possible.
The Engineering Computer Laboratory of La Salle University
Mexico, Campus Mexico City, for supporting Arturo Tena
in cole development.
Bernhard Reiter <bernhard@uwm.edu>. OSF fixes.
Shaw Terwilliger <sterwill@postman.abisource.com>. C++ fix.
Caolan McNamara <Caolan.McNamara@ul.ie>. Debug and more.
Martin Scharpf <martin.scharpf@bbraun.com>. Debug.
David Rysdam. The memory dump function cole used in pre 1.x and 1.x releases.

157
cole/TODO Normal file
View File

@ -0,0 +1,157 @@
HIGH PRIORITY:
**************
* Review all the documentation for style errors and so on.
PLEASE, ENGLISH SPEAKERS, HELP ME HERE!!!
* Improve example of cole_recurse_tree() in examples/filesystem.c: include
actual callback functions, not just NULLs.
* Write tests for all calls of the API: Improve example/directory.c:
missing some calls to test.
* Call all the calls of the API in examples/demo.c.
* Implement more API calls, like `stdio.h' ANSI C calls.
* Fix the bugs listed in `BUGS' file!
* Search for `FIXME' in the source code... and fix some =).
MEDIUM:
*******
* Improve tests, they must actually test the output of the public calls.
* Investigate if it is possible to use `const' in static version variables.
* Test cole_fopen() using wired filenames. ie "/", "//", "", etc. May be a
function that check the filename could be written.
* Check input arguments of each call of the API, returning an colerror if
there are an error.
* Say in the documentation that many other files can be `Structured Storage'
files too.
* May be in cole 3.x, create a double char type in order to handle the complete
directory and file names.
* Investigate how to avoid content of the structures COLEFILE and so on be
documented in the api document (their must be documented only in the internal
document).
* Investigate how to force that calls begining with `_' to be in documentation
(their will be in internals).
* Make api section is before internals section in generated documentation, but
COLEFS, COLEFILE, COLEDIR and COLEDIRENT must be documented in internals, not
in api.
* Make cole fork safe.
* Make reentrant safe.
* Review Martin Schwartz mail:
---QUOTE---
It might be helpful to you to have a look at the perl 5 (Ole::Storage)
release file "Storage.pm" method "ole_head", giving some additional info
about big- and smallblocksize (offset 0x1e, 0x20) as well as about Extended
Block Depot for very large files (offset 0x44, 0x48). And, sorry for my
screwed up namegiving...
---END QUOTE---
The Extended Block Depot is implemented now, but bigblocksize and
smallblocksize are not implented yet.
* Really use the results of the configure guesses, with #ifdef HAVE_x in code.
* Make it compile using DJGPP and Borland C (we may need a custom Makefile and
a custom config.h).
* Use void `swab(const void *from, void *to, size_t n);' (in fil_sread*
calls) if present, for performance, in support.c.
* Replace cole_direntry_getday[12] and cole_direntry_getsec[12] calls with
another calls that return something useful.
* Divide the RPM in cole and cole-devel packages (may be it's not necessary,
because cole package is not much big).
* cole.spec is regenerated while configuring, avoid that. (UPDATE: may be
is impossible to avoid that =().
NOT URGENT:
***********
* Use some package to discover uninitializated memory, use some profile
package, etc.
* Support cross compiling (don't even know what this exactly means! =) ).
UPDATE: seems that cross compiling it is just useful for compilers... =)
* Use zlib to support compressed files.
******************
PRE COLE 2.x TODO:
******************
MEDIUM:
*******
* Check:
+ ends () doesn't should be called more than once
+ if OLEdecode or OLEcode fails, then the stream tree is never freed.
* Rewrite olecode.c to use `test(..,..)' instead of `test_exitf(..,..,dummy())'.
* See the posiblity to convert some #defines functions to real functions,
to get objects of smaller size.
* See mark `/* FIXME MARK 2 */' in oledecod.c.
* Instead using assert, use assert_return or something like that: the
purpose is not abort, but return a error code (like 19, like xls2xml).
* Check all pointer arguments checked != NULL using assert, as well other
parameters must be correct, use assert or assert_return (see up).
* Review error checking system (that means, does all possible errors can
be captured?)
* Add property sets read and create functions (as implemented in LAOLA):
Invent some functions to construct an pps_entry * tree. one could be:
int add_stream (char * stream_name, char * filename, pps_entry * tree)
That function would open filename, calculate its size, and write it tree
as brother. other could be:
int add_directory (char * dir_name, pps_entry * tree)
* Function generate_real_file needs to be checked if it is all correct
there. See /* FIXME MARK 3 */ in olecod.c.
NOT URGENT:
***********
* Check that list->size not have been used as size of file, because it's
the size of the list.
* Change #defines func(..) and its calls in order to make parameters
between parentesis. Don't broke anything.
* Indent all files. Use indent. Check they look ok in 80 columns.
* Change all 4's to sizeof(U32). DANGER: take care don't brake *anything*.
* Insert all streams in sbfile, SDepot, BDepot and Input and *after*
recalculate all sizes and blocks and all that stuff in OLEcode, instead do
it each time we insert one stream (this could lead great performance).

71
cole/cole-config.in Normal file
View File

@ -0,0 +1,71 @@
#! /bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
usage()
{
cat <<EOF
Usage: cole-config [OPTION]
Known values for OPTION are:
--prefix=DIR change cole prefix [default $prefix]
--libs print library linking information
--cflags print pre-processor and compiler flags
--help display this help and exit
--version output version information
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
cflags=false
libs=false
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case "$1" in
--prefix=*)
prefix=$optarg
;;
--prefix)
echo $prefix
;;
--version)
echo @PACKAGE@ @VERSION@
exit 0
;;
--help)
usage 0
;;
--cflags)
echo -I@includedir@
;;
--libs)
echo -L@libdir@ -lcole
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0

1211
cole/cole.c Normal file

File diff suppressed because it is too large Load Diff

227
cole/cole.h.in Normal file
View File

@ -0,0 +1,227 @@
/*
cole - A free C OLE library.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#ifndef __COLE_H
#define __COLE_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Attention: this API is documentated in the `doc' subdirectory
*/
/* Just to get size_t */
#include <stdio.h>
#ifndef COLE_INTERNAL_H
#include "internal.h" // For _COLE struct definitions
#endif
#if !(defined( __BORLANDC__ ) || defined( __WIN32__ ))
/**************************************************************/
/* autoconf defines size_t as unsigned if not defined. */
/* Uncomment these ONLY if you don't have a size_t */
/* #ifndef size_t */
/* #define size_t unsigned */
/* #endif */
/**************************************************************/
#endif
/*
* **********************************************************************
* version info
* **********************************************************************
*/
#define COLE_MAJOR_VERSION @COLE_MAJOR@
#define COLE_MINOR_VERSION @COLE_MINOR@
#define COLE_MICRO_VERSION @COLE_MICRO@
extern int cole_major_version;
extern int cole_minor_version;
extern int cole_micro_version;
extern char *cole_version;
extern char *cole_host_info;
/*
* **********************************************************************
* errors
* **********************************************************************
*/
enum _COLERRNO {
/* & = means that you can use perror(3) call to print an error message */
/* you can always use cole_perror to print an error message */
COLE_EFIRST, /* Leave this at first place */
/*&*/ COLE_EMEMORY, /* Failed malloc(3) or realloc(3) */
/*&*/ COLE_EOPENFILE, /* Failed fopen(3) */
/*&*/ COLE_ECLOSEFILE, /* Failed fclose(3) */
/*&*/ COLE_EREAD, /* Failed fread(3) */
/*&*/ COLE_EWRITE, /* Failed fwrite(3) */
/*&*/ COLE_EREMOVE, /* Failed remove(3) */
/*&*/ COLE_ETMPNAM, /* Failed tmpnam(3) */
/*&*/ COLE_ESEEK, /* Failed fseek(3) */
/*&*/ COLE_EERRNO, /* Some system call failed */
COLE_ENOFILESYSTEM, /* File is not a filesystem */
COLE_EINVALIDFILESYSTEM,/* Filesystem is broken, it's invalid */
COLE_EISNOTDIR, /* Directory entry is not a directory */
COLE_EISNOTFILE, /* Directory entry is not a file */
COLE_EFILENOTFOUND, /* Doesn't exist a file with the given name */
COLE_EOF, /* End of file has been reached */
COLE_EMEMBERISNOTDIR, /* A member of the filename is not
a directory */
COLE_EBROKENFILENAME, /* The filename is not right written */
COLE_EFILENAMEISNOTFILE,/* Filename is not a file */
COLE_EFSEEKDELTA, /* Delta argument is not valid */
COLE_EFSEEKFLAG, /* Flag argument is not valid */
COLE_EUNKNOWN, /* An unknown error ocurred, can be a bug */
COLE_ELAST /* Leave this at last place */
};
typedef enum _COLERRNO COLERRNO;
void cole_perror (const char *s, COLERRNO colerrno);
/*
* **********************************************************************
* other enums
* **********************************************************************
*/
enum _COLE_SEEK_FLAG
{
COLE_SEEK_SET,
COLE_SEEK_FORWARD,
COLE_SEEK_BACKWARD,
COLE_SEEK_END
};
typedef enum _COLE_SEEK_FLAG COLE_SEEK_FLAG;
/*
* **********************************************************************
* structures
* **********************************************************************
*/
/* These are opaque data types, because the internal structure will change */
typedef struct _COLEFS COLEFS;
typedef struct _COLEDIR COLEDIR;
typedef struct _COLEDIRENT COLEDIRENT;
typedef struct _COLEFILE COLEFILE;
/*
* **********************************************************************
* functions types
* **********************************************************************
*/
typedef int (COLE_RECURSE_DIR_FUNC) (COLEDIR *coledir,
void *info,
COLERRNO *colerrno);
typedef int (COLE_RECURSE_DIRENT_FUNC) (COLEDIRENT *coledirentry,
void *info,
COLERRNO *colerrno);
typedef int (COLE_RECURSE_VISIT_DIR_FUNC) (COLEDIR *coledir,
void *info);
typedef void (COLE_LOCATE_ACTION_FUNC) (COLEDIRENT *coledirentry,
void *info);
/*
* **********************************************************************
* calls
* **********************************************************************
*/
/* ***********
* filesystem
* ***********/
COLEFS * cole_mount (char *filename,
COLERRNO *colerrno);
int cole_umount (COLEFS *colefilesystem,
COLERRNO *colerrno);
int cole_print_tree (COLEFS *colefilesystem,
COLERRNO *colerrno);
int cole_locate_filename (COLEFS *colefilesystem,
char *filename,
void *info,
COLE_LOCATE_ACTION_FUNC *action,
COLERRNO *colerrno);
int cole_recurse_tree (COLEFS *colefilesystem,
void *info,
COLE_RECURSE_DIR_FUNC *inroot,
COLE_RECURSE_DIRENT_FUNC *indirentry,
COLE_RECURSE_DIR_FUNC *indir,
COLE_RECURSE_DIR_FUNC *outdir,
COLE_RECURSE_VISIT_DIR_FUNC *visitdir,
COLERRNO *colerrno);
/* ***********
* file
* ***********/
COLEFILE * cole_fopen (COLEFS *colefilesystem,
char *filename,
COLERRNO *colerrno);
COLEFILE * cole_fopen_direntry (COLEDIRENT *coledirentry,
COLERRNO *colerrno);
int cole_fclose (COLEFILE *colefile,
COLERRNO *colerrno);
size_t cole_fsize (COLEFILE *colefile);
size_t cole_fread (COLEFILE *colefile,
void *ptr,
size_t size,
COLERRNO *colerrno);
int cole_feof (COLEFILE *colefile);
size_t cole_ftell (COLEFILE *colefile);
int cole_fseek (COLEFILE *colefile,
size_t delta,
COLE_SEEK_FLAG direction,
COLERRNO *colerrno);
int cole_frewind (COLEFILE *colefile,
COLERRNO *colerrno);
/* ***********
* directory and directory entry
* ***********/
COLEDIR * cole_opendir_rootdir (COLEFS *colefilesystem,
COLERRNO *colerrno);
COLEDIR * cole_opendir_direntry (COLEDIRENT *coledirentry,
COLERRNO *colerrno);
int cole_closedir (COLEDIR *coledir,
COLERRNO *colerrno);
COLEDIRENT * cole_visiteddirentry (COLEDIR *coledir);
COLEDIRENT * cole_nextdirentry (COLEDIR *coledir);
char * cole_dir_getname (COLEDIR *coledir);
size_t cole_dir_getsize (COLEDIR *coledir);
long cole_dir_getdays1 (COLEDIR *coledir);
long cole_dir_getsec1 (COLEDIR *coledir);
long cole_dir_getdays2 (COLEDIR *coledir);
long cole_dir_getsec2 (COLEDIR *coledir);
char * cole_direntry_getname (COLEDIRENT *coledirentry);
size_t cole_direntry_getsize (COLEDIRENT *coledirentry);
long cole_direntry_getdays1 (COLEDIRENT *coledirentry);
long cole_direntry_getsec1 (COLEDIRENT *coledirentry);
long cole_direntry_getdays2 (COLEDIRENT *coledirentry);
long cole_direntry_getsec2 (COLEDIRENT *coledirentry);
int cole_direntry_isdir (COLEDIRENT *coledirentry);
int cole_direntry_isfile (COLEDIRENT *coledirentry);
#ifdef __cplusplus
}
#endif
#endif /* __COLE_H */

163
cole/doc/HACKING Normal file
View File

@ -0,0 +1,163 @@
/*
cole - A free C OLE library.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
Pre-hacking:
************
If you want to play, you'll need:
+ An ANSI C system (libraries and C compiler).
+ GNU m4, GNU automake-1.4, GNU autoconf 2.13 and GNU libtool 1.3.2
if you want to change `configure.in' or some `Makefile.am'.
+ DocBook 3.x tools and gtk-doc
(from GNOME CVS (http://cvs.gnome.org/)) if you want to make
a distribution.
Tests:
******
If you write a new public call, write their documentation: see comments before the implementation of other public calls, and write a test and put in in `examples' directory.
API:
****
The API 2.x must be modelled after `stdio.h' ANSI C calls, but cleanner. This
means the arguments must be the minimal that the call _really_ needs.
The last argument of most of calls must be `COLERRNO *colerrno'. This must be set if an error is found when calling some other call or a system call, but colerrno can be NULL, so always use `if (colerrno != NULL) *colerrno = COLE_...'.
All the public calls neet to have a `COLERRNO *colerrno' argument, except those that simply can not fail.
If you create a new error code, insert it in the list of the colerrno argument in the document comment above the function with the new error code, insert in enum _COLERRNO, add a comment there, add an entry in cole_perror and review all the sources that call the function that have the new error code in order to catch the new error (inclusive utils and examples directories).
When writting a call that calls another calls which returns colerrno, say in documentation something like: ` * @colerrno: error value (COLE_AAA, errors from calls cole_XXX(), cole_XXY() and COLE_XXZ())' if the call that you are writting calls cole_XXX, cole_XXY and COLE_XXZ and returns COLE_AAA by itself.
Implementation:
***************
When you write the code to check the return value from a function with switch, always write a default case (in the most cases the default case will return a COLE_UNKNOWN). If you use if's, write an else case.
Documentation:
**************
If you modified `cole-manual.sgml', you must run `make html' in the `doc'
subdirectory.
If you modified the templates, you must run `make sgml' and then `make html'
in the `doc' subdirectory.
If you modified `cole-sections.txt'... well, I guess you must run
`make templates' and then `make sgml' and then `make html' in the `doc'
subdirectory (but I'm not sure because I'm lerning this gtk-doc thing).
If you changed the existing comment of a function, structure, etc, you must
run `make sgml' and then `make html' in the `doc' subdirectory.
If you changed the parameters of some function, run `make templates' and then
`make sgml' and then `make html'.
If you added, renamed or deleted some function, well you tell me what to do.
All targets in the `Makefile' in the `doc' subdirectory modifies sources, that
way the documentation can be updated when checked in CVS.
Before you regenerate documentation, must have a build directory with all the
code compiled, because `cole.h' file is needed.
FlashPix file format:
*********************
Seems to me that "Root Entry" pps number is zero (like MS files), but it has
no name! I mean, pps_list[0].type == 5, but pps_list[0].name[0] == 0.
**********************
* OLD HACKING DOCUMENT
**********************
Hacking:
********
Ok, next few lines are for people trying to understand the cole code.
to code a OLE2 file (which is done by OLEcode) is done it two fases:
process and generate.
process insert all the information in the Structure, and generate reads
this Structure and write the actual output_file (wich is an ole2 file) by
copying real files and some parts of Structure to output_file.
in the generate stage we know the actual blocks where each stream is
stored, so in this stage this start block is written in Root.
functions of process stage starts with process_* and add_*.
functions of generating stage starts with generate_* and write_*.
the size property of `Root Entry' pps is the actual size of sbfile, and
always is a multiple of 0x40.
A graph of Structure following:
[missing, remember me I must do it]
size of Input (Input.size) is never used, it's no necessary. In any case,
what info we should write there? Same case as Input.blocks.
somewhere in process stage, name of real files are copied by reference,
that means two vars will point to the same memory posittion. one var is
in pps_entry * stream_list names, and the other is in sbfile and Input in
Structure. But it's ok.
notes:
a ole2 file can or not contain small streams. if there are, it will
have SDepot, although in Structure always SDepot exist,
SDepot->size == sbfile->size == 0 if file do not contain small streams
it seems to me a ole2 file could not have big streams, just small streams. BUT it will at least one block that is taken by BDepot, because in BDepot store block chains for SDepot and Root
It seems that Solaris doesn't like directories as targets... must be a file.
This is a problem in doc/Makefile.
about the code:
it's spaguetticode. I know. Long var names. I know. Help me to fix it.
comments are generally after the line it comments, as explanation of what
i have done.
advices:
when doing a change, verify the program works with files with SDepot and
files with out SDepot (files with or without small streams)
if you change the version number, change it both in configure.in file and in doc/cole-manual.sgml.

92
cole/doc/Makefile.am Normal file
View File

@ -0,0 +1,92 @@
## Process this file with automake to produce Makefile.in
EXTRA_DIST = cole-manual.sgml \
introduction.sgml \
compile.sgml \
using.sgml \
bugs.sgml \
gpl.sgml \
legal.sgml \
HACKING \
cole-manual.sgml-old
dist-hook: all
cp $(srcdir)/cole-sections.txt $(distdir)
cp -r $(srcdir)/tmpl $(distdir)
cp -r $(srcdir)/cole-manual $(distdir)
# Headers to scan for declarations
scanned_headers = ../internal.h ../support.h ./cole.h
# The name of the module.
DOC_MODULE = cole
# The top-level SGML file.
DOC_MAIN_SGML_FILE = cole-manual.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = $(top_srcdir)
# The directory where the documentation will be installed
TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
scan:
cp $(top_builddir)/cole.h $(srcdir); \
(cd $(srcdir); \
gtkdoc-scan --module=$(DOC_MODULE) $(scanned_headers); \
rm cole.h)
templates: scan
(cd $(srcdir); \
gtkdoc-mktmpl --module=$(DOC_MODULE))
sgml:
(cd $(srcdir); \
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR))
html:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" > BUGS; \
db2html $(DOC_MAIN_SGML_FILE); \
rm BUGS)
rtf:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" > BUGS; \
db2rtf $(DOC_MAIN_SGML_FILE); \
-rm BUGS)
ps:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" | sed "s/&/&amp;/g" > BUGS; \
db2ps $(DOC_MAIN_SGML_FILE); \
-rm BUGS)
regenerate-all: templates sgml html
clean-local:
(cd $(srcdir); \
rm -f *~ *.bak *.hierarchy *.signals *.args; \
rm -fr DBTOHTML_OUTPUT_DIR* *.junk $(DOC_MODULE)-decl-list.txt)
maintainer-clean-local: clean
(cd $(srcdir); \
rm -rf sgml html cole-manual tmpl/*.bak; \
rm -rf $(DOC_MODULE)-decl.txt)
# if db2html generate subdirectories, it's broken the next rule
# install-data-local: all
# $(INSTALL) -d $(TARGET_DIR)
# $(INSTALL) ./cole-manual/* $(TARGET_DIR)
## Solaris make doesn't like directory as a target...
.PHONY : ps rtf html sgml templates scan

256
cole/doc/Makefile.in Normal file
View File

@ -0,0 +1,256 @@
# Makefile.in generated automatically by automake 1.4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
COLE_MAJOR = @COLE_MAJOR@
COLE_MICRO = @COLE_MICRO@
COLE_MINOR = @COLE_MINOR@
DLLTOOL = @DLLTOOL@
HOST_ALIAS_NAME = @HOST_ALIAS_NAME@
HOST_CANONICAL_NAME = @HOST_CANONICAL_NAME@
HOST_CPU = @HOST_CPU@
HOST_OS = @HOST_OS@
HOST_VENDOR = @HOST_VENDOR@
LD = @LD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
NM = @NM@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
VERSION_INFO = @VERSION_INFO@
EXTRA_DIST = cole-manual.sgml introduction.sgml compile.sgml using.sgml bugs.sgml gpl.sgml legal.sgml HACKING cole-manual.sgml-old
# Headers to scan for declarations
scanned_headers = ../internal.h ../support.h ./cole.h
# The name of the module.
DOC_MODULE = cole
# The top-level SGML file.
DOC_MAIN_SGML_FILE = cole-manual.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = $(top_srcdir)
# The directory where the documentation will be installed
TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
tags: TAGS
TAGS:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = doc
distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-generic mostlyclean-am clean-local
clean: clean-am
distclean-am: distclean-generic clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-generic distclean-am \
maintainer-clean-local
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
dist-hook: all
cp $(srcdir)/cole-sections.txt $(distdir)
cp -r $(srcdir)/tmpl $(distdir)
cp -r $(srcdir)/cole-manual $(distdir)
scan:
cp $(top_builddir)/cole.h $(srcdir); \
(cd $(srcdir); \
gtkdoc-scan --module=$(DOC_MODULE) $(scanned_headers); \
rm cole.h)
templates: scan
(cd $(srcdir); \
gtkdoc-mktmpl --module=$(DOC_MODULE))
sgml:
(cd $(srcdir); \
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR))
html:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" > BUGS; \
db2html $(DOC_MAIN_SGML_FILE); \
rm BUGS)
rtf:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" > BUGS; \
db2rtf $(DOC_MAIN_SGML_FILE); \
-rm BUGS)
ps:
(cd $(srcdir); \
cat ../BUGS | sed "s/>/&gt;/g" | sed "s/</&lt;/g" | sed "s/&/&amp;/g" > BUGS; \
db2ps $(DOC_MAIN_SGML_FILE); \
-rm BUGS)
regenerate-all: templates sgml html
clean-local:
(cd $(srcdir); \
rm -f *~ *.bak *.hierarchy *.signals *.args; \
rm -fr DBTOHTML_OUTPUT_DIR* *.junk $(DOC_MODULE)-decl-list.txt)
maintainer-clean-local: clean
(cd $(srcdir); \
rm -rf sgml html cole-manual tmpl/*.bak; \
rm -rf $(DOC_MODULE)-decl.txt)
# if db2html generate subdirectories, it's broken the next rule
# install-data-local: all
# $(INSTALL) -d $(TARGET_DIR)
# $(INSTALL) ./cole-manual/* $(TARGET_DIR)
.PHONY : ps rtf html sgml templates scan
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

39
cole/doc/bugs.sgml Normal file
View File

@ -0,0 +1,39 @@
<para>
cole developers have done their best effort to fix all the bugs of cole. But may be some of the are still hidden in the code. If you found one (or many!), please send a report to the maintainer (&maintainer-email-ulink;). When sending a report, please:
</para>
<orderedlist>
<listitem>
<para>
Describe with detail the behavior of cole and why you think it's a bug.
</para>
</listitem>
<listitem>
<para>
Configure cole using the argument <link linkend="how-to-compile">--enable-verbose</link> and send the output showing the bug.
</para>
</listitem>
<listitem>
<para>
Send the content of the variables <link linkend="cole-version">cole_version</link> and <link linkend="cole-host-info">cole_host_info</link> that the cole release you are using have. You wil have to write a little program to do this, but it will help much. =)
</para>
</listitem>
<listitem>
<para>
If you can, send the most small source code that shows the bug in action. May be you want to send the Structured Storage file you have been processing.
</para>
</listitem>
<listitem>
<para>
You can send the files <filename>config.log</filename> and <filename>config.cache</filename> (which were created by <filename>configure</filename>) if you want.
</para>
</listitem>
</orderedlist>
<para>
Thank you very much.
</para>
<para>
Following is the <filename>BUGS</filename> file for this release.
</para>
<screen>&BUGS-File;</screen>

73
cole/doc/cole-manual.sgml Normal file
View File

@ -0,0 +1,73 @@
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
<!entity Introduction SYSTEM "introduction.sgml">
<!entity Using-cole SYSTEM "using.sgml">
<!entity Bugs SYSTEM "bugs.sgml">
<!entity BUGS-File SYSTEM "BUGS">
<!entity GPL-License-Chapter SYSTEM "gpl.sgml">
<!entity Legal SYSTEM "legal.sgml">
<!entity cole-Internals SYSTEM "sgml/internals.sgml">
<!entity cole-API SYSTEM "sgml/api.sgml">
<!entity How-To-Compile SYSTEM "compile.sgml">
<!entity author-name-full "Roberto Arturo Tena S&aacute;nchez">
<!entity maintainer-email-ulink "<ulink
URL=&#34;mailto:arturo@directmail.org&#34;
>&lt;arturo@directmail.org&gt;</ulink>">
]>
<book id="index">
<bookinfo>
<title>cole Library Reference Manual</title>
<copyright>
<year>1998, 1999</year>
<holder>&author-name-full;</holder>
</copyright>
</bookinfo>
<chapter id="introduction">
<title>Introduction</title>
&Introduction;
</chapter>
<chapter id="how-to-compile">
<title>How to compile cole</title>
&How-To-Compile;
</chapter>
<chapter id="libcole">
<title>cole Library</title>
<para>
This is the documentation autogenerated from the source code. It have the cole <link linkend="cole-API">API</link> for this release, and some internal structures and internal calls.
</para>
<para>
Note: what Microsoft calls <userinput>stream</userinput> is called <userinput>file</userinput> in this project, <userinput>storage</userinput> is called <userinput>directory</userinput> and <userinput>docfile</userinput> (a Structured Storage file) is called <userinput>filesystem</userinput>.
</para>
&Using-cole;
&cole-API;
&cole-Internals;
</chapter>
<chapter id="bugs">
<title>Bugs</title>
&Bugs;
</chapter>
<chapter id="legal-issues">
<title>Legal issues</title>
&Legal;
</chapter> <!-- legal-issues -->
&GPL-License-Chapter;
</book>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,223 @@
<HTML
><HEAD
><TITLE
>Bugs</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Internals"
HREF="cole-internals.html"><LINK
REL="NEXT"
TITLE="Legal issues"
HREF="legal-issues.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="cole-internals.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="legal-issues.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="BUGS"
>Chapter 4. Bugs</A
></H1
><P
> cole developers have done their best effort to fix all the bugs of cole. But may be some of the are still hidden in the code. If you found one (or many!), please send a report to the maintainer (<A
HREF="mailto:arturo@directmail.org"
TARGET="_top"
>&#60;arturo@directmail.org&#62;</A
>). When sending a report, please:</P
><P
></P
><OL
TYPE="1"
><LI
><P
> Describe with detail the behavior of cole and why you think it's a bug.
</P
></LI
><LI
><P
> Configure cole using the argument <A
HREF="how-to-compile.html"
>--enable-verbose</A
> and send the output showing the bug.
</P
></LI
><LI
><P
> Send the content of the variables <A
HREF="cole-api.html#COLE-VERSION"
>cole_version</A
> and <A
HREF="cole-api.html#COLE-HOST-INFO"
>cole_host_info</A
> that the cole release you are using have. You wil have to write a little program to do this, but it will help much. =)
</P
></LI
><LI
><P
> If you can, send the most small source code that shows the bug in action. May be you want to send the Structured Storage file you have been processing.
</P
></LI
><LI
><P
> You can send the files <TT
CLASS="FILENAME"
>config.log</TT
> and <TT
CLASS="FILENAME"
>config.cache</TT
> (which were created by <TT
CLASS="FILENAME"
>configure</TT
>) if you want.
</P
></LI
></OL
><P
> Thank you very much.</P
><P
> Following is the <TT
CLASS="FILENAME"
>BUGS</TT
> file for this release.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>&#13;Report bugs to the maintainer (see the file `AUTHORS' for details).
Please, along with your detailed report, send the cole's output when compiled
using `--enable-verbose' (see the files `README' and `INSTALL' for details).
Current bugs:
**************
None.
Fixed bugs:
************
Reported that cole can't read files biggers that 8Mb. UPDATE: oledecod.c is
changed now to read additional blocks to the bbd. This fixes the bug.
Reported strange bug in cole 0.1.0 using Solaris using `../demo sprsheet.xls'
in examples directory. We need more test there! UPDATE: Seems to be fixed in
cole 1.0.0 with the endianess care code.
Possible bugs:
**************
* cole is not reentrant safe (it's in TODO):
What happend if, in any program, one user tries to decode and/or code
two files (the same or diferent)? Because static vars, will it get
broke? I think yes, mmmh...&#13;</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="cole-internals.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="legal-issues.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Internals</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Legal issues</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

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,137 @@
<HTML
><HEAD
><TITLE
>Copyright and disclaimer</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Legal issues"
HREF="legal-issues.html"><LINK
REL="PREVIOUS"
TITLE="Trademarks"
HREF="trademarks.html"><LINK
REL="NEXT"
TITLE="GNU GENERAL PUBLIC LICENSE
"
HREF="gpl-license.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="trademarks.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 5. Legal issues</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gpl-license.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="COPYRIGHT-AND-DISCLAIMER"
>Copyright and disclaimer</A
></H1
><P
> This document is copyright 1999 by Roberto Arturo Tena Sánchez. This document is free software; you can redistribute it and/or modify it under the terms of the <A
HREF="gpl-license.html"
>GNU General Public License</A
> as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.</P
><P
> This document is provided as is without any express or implied warranties. While every effort has been taken to ensure the accuracy of the information contained in this document, the author/maintainer/contributors assume(s) no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="trademarks.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gpl-license.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Trademarks</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="legal-issues.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>GNU GENERAL PUBLIC LICENSE</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,20 @@
.BOOK .TITLE { text-align: center }
.BOOK .SUBTITLE { text-align: center }
.BOOK .CORPAUTHOR { text-align: center }
.BOOK .AUTHOR { text-align: center }
.BOOK .AFFILIATION { text-align: center }
.BOOK .EDITEDBY { text-align: center }
.BOOK .EDITOR { text-align: center }
.BOOK .GRAPHIC { text-align: center }
.ARTICLE .TITLE { text-align: center }
.ARTICLE .SUBTITLE { text-align: center }
.ARTICLE .CORPAUTHOR { text-align: center }
.ARTICLE .AUTHOR { text-align: center }
.ARTICLE .AFFILIATION { text-align: center }
.ARTICLE .EDITEDBY { text-align: center }
.ARTICLE .EDITOR { text-align: center }
.ARTICLE .GRAPHIC { text-align: center }
.ARTICLE .ABSTRACT { margin-left: 0.5in;
margin-right: 0.5in;
font-style: italic }

View File

@ -0,0 +1,199 @@
<HTML
><HEAD
><TITLE
>Features</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Introduction"
HREF="introduction.html"><LINK
REL="PREVIOUS"
TITLE="Introduction"
HREF="introduction.html"><LINK
REL="NEXT"
TITLE="Requirements to compile"
HREF="requirements-to-compile.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="introduction.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 1. Introduction</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="requirements-to-compile.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="FEATURES"
>Features</A
></H1
><P
>cole 2.x release series:</P
><P
></P
><UL
><LI
><P
> Can open Structured Storage files generated with programs from Microsoft, StarDivision and FlashPix.
</P
></LI
><LI
><P
> Is written in C, for better performance.
</P
></LI
><LI
><P
> Should compile in UNIX-like systems with ANSI C libraries and a ANSI C compiler.
</P
></LI
><LI
><P
> Has a new good-looking API, modelled after ANSI C <TT
CLASS="FILENAME"
>stdio.h</TT
> routines.
</P
></LI
><LI
><P
> Uses standard automake, autoconf and libtool generated files.
</P
></LI
><LI
><P
> Provides a standard <TT
CLASS="FILENAME"
>configure</TT
> script.
</P
></LI
><LI
><P
> Builds shared (dynamic) libraries if the plattform and libtool support it.
</P
></LI
><LI
><P
> Provides standard targets in the Makefile (ie. <TT
CLASS="USERINPUT"
><B
>install</B
></TT
>, <TT
CLASS="USERINPUT"
><B
>clean</B
></TT
>, etc).
</P
></LI
><LI
><P
> Can use (thanks to the <TT
CLASS="FILENAME"
>configure</TT
> script) plattform dependent system calls for better performance.
</P
></LI
></UL
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="introduction.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="requirements-to-compile.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Introduction</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="introduction.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Requirements to compile</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,236 @@
<HTML
><HEAD
><TITLE
>How to Apply These Terms to Your New Programs
</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="GNU GENERAL PUBLIC LICENSE
"
HREF="gpl-license.html"><LINK
REL="PREVIOUS"
TITLE="TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
"
HREF="gpl-license-terms.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gpl-license-terms.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 6. GNU GENERAL PUBLIC LICENSE</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
>&nbsp;</TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GPL-LICENSE-HOW-TO-APPLY"
>How to Apply These Terms to Your New Programs</A
></H1
><P
>If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
</P
><P
>To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><I
CLASS="EMPHASIS"
>one line to give the program's name and a brief idea of what it does.</I
>
Copyright (C) <I
CLASS="EMPHASIS"
>year</I
> <I
CLASS="EMPHASIS"
>name of author</I
>
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</PRE
></TD
></TR
></TABLE
><P
>Also add information on how to contact you by electronic and paper mail.
</P
><P
>If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>Gnomovision version 69, Copyright (C) <I
CLASS="EMPHASIS"
>year</I
> <I
CLASS="EMPHASIS"
>name of author</I
>
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.</PRE
></TD
></TR
></TABLE
><P
>The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
</P
><P
>You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<I
CLASS="EMPHASIS"
>signature of Ty Coon</I
>, 1 April 1989
Ty Coon, President of Vice</PRE
></TD
></TR
></TABLE
><P
>This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gpl-license-terms.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gpl-license.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>&nbsp;</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,385 @@
<HTML
><HEAD
><TITLE
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="GNU GENERAL PUBLIC LICENSE
"
HREF="gpl-license.html"><LINK
REL="PREVIOUS"
TITLE="GNU GENERAL PUBLIC LICENSE
"
HREF="gpl-license.html"><LINK
REL="NEXT"
TITLE="How to Apply These Terms to Your New Programs
"
HREF="gpl-license-how-to-apply.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gpl-license.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 6. GNU GENERAL PUBLIC LICENSE</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gpl-license-how-to-apply.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GPL-LICENSE-TERMS"
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</A
></H1
><P
>0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
</P
><P
>Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
</P
><P
>1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
</P
><P
>You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
</P
><P
>2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
</P
><P
>a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
</P
><P
>b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
</P
><P
>c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
</P
><P
>These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
</P
><P
>Thus, it's not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
</P
><P
>In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
</P
><P
>3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
</P
><P
>a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
</P
><P
>b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
</P
><P
>c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
</P
><P
>The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
</P
><P
>If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
</P
><P
>4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
</P
><P
>5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
</P
><P
>6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
</P
><P
>7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
</P
><P
>If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
</P
><P
>It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it's up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
</P
><P
>This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
</P
><P
>8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
</P
><P
>9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
</P
><P
>Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
</P
><P
>10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
</P
><P
>NO WARRANTY
</P
><P
>11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
</P
><P
>12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
</P
><P
>END OF TERMS AND CONDITIONS
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gpl-license.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gpl-license-how-to-apply.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>GNU GENERAL PUBLIC LICENSE</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gpl-license.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How to Apply These Terms to Your New Programs</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,225 @@
<HTML
><HEAD
><TITLE
>GNU GENERAL PUBLIC LICENSE
</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Copyright and disclaimer"
HREF="copyright-and-disclaimer.html"><LINK
REL="NEXT"
TITLE="TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
"
HREF="gpl-license-terms.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="copyright-and-disclaimer.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gpl-license-terms.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="GPL-LICENSE"
>Chapter 6. GNU GENERAL PUBLIC LICENSE
</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="gpl-license.html#GPL-LICENSE-PREAMBLE"
>Preamble</A
></DT
><DT
><A
HREF="gpl-license-terms.html"
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</A
></DT
><DT
><A
HREF="gpl-license-how-to-apply.html"
>How to Apply These Terms to Your New Programs</A
></DT
></DL
></DIV
><P
>Version 2, June 1991
</P
><P
>Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</P
><P
>Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it's not allowed.
</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GPL-LICENSE-PREAMBLE"
>Preamble</A
></H1
><P
>The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
</P
><P
>When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
</P
><P
>To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
</P
><P
>For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
</P
><P
>We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
</P
><P
>Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
</P
><P
>Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
</P
><P
>The precise terms and conditions for copying, distribution and
modification follow.
</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="copyright-and-disclaimer.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gpl-license-terms.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Copyright and disclaimer</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,330 @@
<HTML
><HEAD
><TITLE
>How to compile cole</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Requirements to compile"
HREF="requirements-to-compile.html"><LINK
REL="NEXT"
TITLE="cole Library"
HREF="libcole.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="requirements-to-compile.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="libcole.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="HOW-TO-COMPILE"
>Chapter 2. How to compile cole</A
></H1
><P
> The file <TT
CLASS="FILENAME"
>INSTALL</TT
> in the source code gives detailed instructions on how to configure, compile and install cole.</P
><P
> Briefly, you need to run the GNU standard <TT
CLASS="FILENAME"
>configure</TT
> script, with the arguments you want. To see the arguments that <TT
CLASS="FILENAME"
>configure</TT
> accepts, run <TT
CLASS="USERINPUT"
><B
>./configure --help</B
></TT
>. The most usual argument is <TT
CLASS="USERINPUT"
><B
>--prefix=PREFIX</B
></TT
>, which tells configure to install cole in the directory <TT
CLASS="USERINPUT"
><B
>PREFIX</B
></TT
>. After that, you need to run <TT
CLASS="USERINPUT"
><B
>make</B
></TT
> to compile cole, and <TT
CLASS="USERINPUT"
><B
>make install</B
></TT
> to install it.</P
><P
> The <TT
CLASS="FILENAME"
>configure</TT
> script accepts, besides the standard arguments, the following flags:</P
><P
></P
><TABLE
BORDER="0"
><TR
><TD
> <TT
CLASS="USERINPUT"
><B
>--enable-osf-check</B
></TT
>. Turn on short align for OSF compiler. If you have errors while compiling under OSF1, enable this flag.
</TD
></TR
><TR
><TD
> <TT
CLASS="USERINPUT"
><B
>--enable-verbose</B
></TT
>. Turn on verbose. It is useful if you want to send a bug report. It is useful for cole developers too.
</TD
></TR
><TR
><TD
> <TT
CLASS="USERINPUT"
><B
>--enable-debug</B
></TT
> Turn on GNU CC debug flags. It is useful for cole developers, so may be you don't want to use it.
</TD
></TR
></TABLE
><P
></P
><P
> A tipical session is shown below.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>ls</B
></TT
>
cole-2.0.0.tar.gz
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>gzip -d cole-2.0.0.tar.gz</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>tar -xf cole-2.0.0.tar</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>ls</B
></TT
>
cole-2.0.0.tar cole-2.0.0/
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>cd cole-2.0.0</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>./configure --prefix=/opt</B
></TT
>
...
Configured cole release 2.0.0
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>make</B
></TT
>
...
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>make install</B
></TT
>
...
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>make clean</B
></TT
>
...</PRE
></TD
></TR
></TABLE
><P
> When installing, a shell script named <TT
CLASS="FILENAME"
>cole-config</TT
> will be installed in <TT
CLASS="FILENAME"
>PREFIX/bin</TT
> if you used the the <TT
CLASS="USERINPUT"
><B
>--prefix=PREFIX</B
></TT
> argument, or in <TT
CLASS="FILENAME"
>/usr/local/bin</TT
> if you didn't. That directory must be listed in the content of the enviroment variable PATH when configuring another program that uses cole.</P
><P
> If you system support it, will be compiled and installed shared libraries, to minimize size of the executables. By this reason, is important to include the directory <TT
CLASS="FILENAME"
>PREFIX/bin</TT
> or <TT
CLASS="FILENAME"
>/usr/local/bin</TT
> (which appropiate) in the file that your system command <TT
CLASS="FILENAME"
>ldconfig</TT
> reads in order to regenerate the list of shared libraries (in some systems, you can list the directory in the content of the enviroment variable LD_LIBRARY_PATH instead).</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="requirements-to-compile.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="libcole.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Requirements to compile</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>cole Library</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,193 @@
<HTML
><HEAD
><TITLE
>cole Library Reference Manual</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="NEXT"
TITLE="Introduction"
HREF="introduction.html"></HEAD
><BODY
><DIV
CLASS="BOOK"
><A
NAME="INDEX"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>cole Library Reference Manual</A
></H1
><P
CLASS="COPYRIGHT"
>Copyright &copy; 1998, 1999 by <SPAN
CLASS="HOLDER"
>Roberto Arturo Tena Sánchez</SPAN
></P
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="introduction.html"
>Introduction</A
></DT
><DD
><DL
><DT
><A
HREF="introduction.html#WHAT-IS-COLE"
>What is cole?</A
></DT
><DT
><A
HREF="features.html"
>Features</A
></DT
><DT
><A
HREF="requirements-to-compile.html"
>Requirements to compile</A
></DT
></DL
></DD
><DT
>2. <A
HREF="how-to-compile.html"
>How to compile cole</A
></DT
><DT
>3. <A
HREF="libcole.html"
>cole Library</A
></DT
><DD
><DL
><DT
><A
HREF="cole-api.html"
>API</A
> &#8212; Public cole API for the present release.</DT
><DT
><A
HREF="cole-internals.html"
>Internals</A
> &#8212; cole internals - don't trust in anything here, because it may (and will) change.</DT
></DL
></DD
><DT
>4. <A
HREF="bugs.html"
>Bugs</A
></DT
><DT
>5. <A
HREF="legal-issues.html"
>Legal issues</A
></DT
><DD
><DL
><DT
><A
HREF="legal-issues.html#DISTRIBUTION-AND-FREEDOM"
>Distribution and Freedom</A
></DT
><DT
><A
HREF="trademarks.html"
>Trademarks</A
></DT
><DT
><A
HREF="copyright-and-disclaimer.html"
>Copyright and disclaimer</A
></DT
></DL
></DD
><DT
>6. <A
HREF="gpl-license.html"
>GNU GENERAL PUBLIC LICENSE</A
></DT
><DD
><DL
><DT
><A
HREF="gpl-license.html#GPL-LICENSE-PREAMBLE"
>Preamble</A
></DT
><DT
><A
HREF="gpl-license-terms.html"
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</A
></DT
><DT
><A
HREF="gpl-license-how-to-apply.html"
>How to Apply These Terms to Your New Programs</A
></DT
></DL
></DD
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="introduction.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Introduction</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,189 @@
<HTML
><HEAD
><TITLE
>Introduction</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="NEXT"
TITLE="Features"
HREF="features.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="index.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="features.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="INTRODUCTION"
>Chapter 1. Introduction</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="introduction.html#WHAT-IS-COLE"
>What is cole?</A
></DT
><DT
><A
HREF="features.html"
>Features</A
></DT
><DT
><A
HREF="requirements-to-compile.html"
>Requirements to compile</A
></DT
></DL
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="WHAT-IS-COLE"
>What is cole?</A
></H1
><P
> cole is a free C OLE library.</P
><P
> cole is <A
HREF="legal-issues.html#DISTRIBUTION-AND-FREEDOM"
>distributed</A
> under the terms of the <A
HREF="gpl-license.html"
>GNU General Public License</A
> (GPL) to give an impulse to the Free Software. cole distribution license is compatible with the <A
HREF="http://www.opensource.org/"
TARGET="_top"
>Open Source</A
> definition.</P
><P
> Using cole, you can access Microsoft' Structured Storage files. The most popular Microsoft's programs generate Structured Storage files, incluiding the Microsoft' suite for offices. StarDivision' suite (StarOffice) generate Structured Storage files too. FlashPix file format is Structured Storage too.</P
><P
> What is a Structured Storage file? Inside a Structured Storage file there is a filesystem, with directories and files, which Microsoft calls containers and streams. Using cole you can travel through such filesystem and access the files.</P
><P
> cole doesn't know about internal structure of a stream, it only reads the raw data. You can use the Microsoft's documentation available at <A
HREF="http://msdn.microsoft.com/"
TARGET="_top"
>http://msdn.microsoft.com</A
> or the information available at <A
HREF="http://www.wotsit.org/"
TARGET="_top"
>http://www.wotsit.org</A
> to know the binary file format of the streams. If you know anything in the side of StarDivision email me. FlashPix file format is well documented.</P
><P
> cole was developed using the information available at <A
HREF="http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/guide.html"
TARGET="_top"
>http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/guide.html</A
> and the OLE::Storage Perl module from the same site, and no information from any other source (incluiding Microsoft) has been used.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="index.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="features.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>cole Library Reference Manual</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Features</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,184 @@
<HTML
><HEAD
><TITLE
>Legal issues</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Bugs"
HREF="bugs.html"><LINK
REL="NEXT"
TITLE="Trademarks"
HREF="trademarks.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="bugs.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="trademarks.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="LEGAL-ISSUES"
>Chapter 5. Legal issues</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="legal-issues.html#DISTRIBUTION-AND-FREEDOM"
>Distribution and Freedom</A
></DT
><DT
><A
HREF="trademarks.html"
>Trademarks</A
></DT
><DT
><A
HREF="copyright-and-disclaimer.html"
>Copyright and disclaimer</A
></DT
></DL
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="DISTRIBUTION-AND-FREEDOM"
>Distribution and Freedom</A
></H1
><P
> cole is Free Software, which means is distributed under a license that protect your freedom. cole distribution license is compatible with the <A
HREF="http://www.opensource.org/"
TARGET="_top"
>Open Source</A
> definition.</P
><P
> cole is distributed under the terms of the <A
HREF="gpl-license.html"
>GNU General Public License</A
> (GPL). A copy of the license is in the file <TT
CLASS="FILENAME"
>COPYING</TT
> in the source code and in this document. Particulary, this means at least two things:</P
><P
></P
><OL
TYPE="1"
><LI
><P
> All the code statically or dinamically linked against cole must be distributed under the terms of a license compatible with GPL.
</P
></LI
><LI
><P
> If you change the cole source code and you want to distribute a compiled version, you must release the changed cole source code too.
</P
></LI
></OL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="bugs.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="trademarks.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Bugs</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Trademarks</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,273 @@
<HTML
><HEAD
><TITLE
>cole Library</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="How to compile cole"
HREF="how-to-compile.html"><LINK
REL="NEXT"
TITLE="API"
HREF="cole-api.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="how-to-compile.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="cole-api.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="LIBCOLE"
>Chapter 3. cole Library</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="cole-api.html"
>API</A
> &#8212; Public cole API for the present release.</DT
><DT
><A
HREF="cole-internals.html"
>Internals</A
> &#8212; cole internals - don't trust in anything here, because it may (and will) change.</DT
></DL
></DIV
><P
> This is the documentation autogenerated from the source code. It have the cole <A
HREF="cole-api.html"
>API</A
> for this release, and some internal structures and internal calls.
</P
><P
> Note: what Microsoft calls <TT
CLASS="USERINPUT"
><B
>stream</B
></TT
> is called <TT
CLASS="USERINPUT"
><B
>file</B
></TT
> in this project, <TT
CLASS="USERINPUT"
><B
>storage</B
></TT
> is called <TT
CLASS="USERINPUT"
><B
>directory</B
></TT
> and <TT
CLASS="USERINPUT"
><B
>docfile</B
></TT
> (a Structured Storage file) is called <TT
CLASS="USERINPUT"
><B
>filesystem</B
></TT
>.
</P
><P
> The files in the subdirectory <TT
CLASS="FILENAME"
>examples</TT
> in the source code show the complete public <A
HREF="cole-api.html"
>API</A
> in action. Briefly, if you know how to use the <TT
CLASS="FILENAME"
>stdio.h</TT
> ANSI C calls, cole API will be very easy for you.</P
><P
> If you use <TT
CLASS="FILENAME"
>autoconf</TT
> in your own proyect, the included file <TT
CLASS="FILENAME"
>cole.m4</TT
> may be useful for you. It contains the m4 macro AM_PATH_COLE that detect the presense or ausence of the cole library in the system being configured. To use it:</P
><P
></P
><OL
TYPE="1"
><LI
><P
> If cole is not installed in your system (i.e. <TT
CLASS="FILENAME"
>aclocal</TT
> can't find <TT
CLASS="FILENAME"
>cole.m4</TT
>), add the content of <TT
CLASS="FILENAME"
>cole.m4</TT
> to your own <TT
CLASS="FILENAME"
>acinclude.m4</TT
> file (create it in case you haven't one).
</P
></LI
><LI
><P
> Add a line like <TT
CLASS="USERINPUT"
><B
>AM_PATH_COLE(2.0.0, [LIBS="$LIBS $COLE_LIBS" CFLAGS="$CFLAGS $COLE_CFLAGS"])</B
></TT
> to your <TT
CLASS="FILENAME"
>configure.in</TT
> file. Here we are requesting for cole release 2.0.0, and adding the necessary flags to LIBS and CFLAGS.
</P
></LI
><LI
><P
> Run <TT
CLASS="USERINPUT"
><B
>aclocal</B
></TT
> to generate the file <TT
CLASS="FILENAME"
>aclocal.m4</TT
>. This file will have many m4 macros, incluiding the cole m4 macro, and
</P
></LI
><LI
><P
> Run <TT
CLASS="USERINPUT"
><B
>autoconf</B
></TT
> to generate the script <TT
CLASS="FILENAME"
>configure</TT
>.
</P
></LI
></OL
><P
> Many <A
HREF="cole-api.html"
>API</A
> calls take an argument at the end called <A
HREF="cole-api.html#COLERRNO"
><TT
CLASS="PARAMETER"
><I
>colerrno</I
></TT
></A
>. If it's not NULL and the call failed, it store the error code for fail, if any (if the call was successfully ended, its value is not modified).</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="how-to-compile.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="cole-api.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>How to compile cole</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>API</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,137 @@
<HTML
><HEAD
><TITLE
>Requirements to compile</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Introduction"
HREF="introduction.html"><LINK
REL="PREVIOUS"
TITLE="Features"
HREF="features.html"><LINK
REL="NEXT"
TITLE="How to compile cole"
HREF="how-to-compile.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="features.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 1. Introduction</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="how-to-compile.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="REQUIREMENTS-TO-COMPILE"
>Requirements to compile</A
></H1
><P
> To have a system with ANSI C libraries, a ANSI C compiler, a <TT
CLASS="FILENAME"
>make</TT
> program and the shell <TT
CLASS="FILENAME"
>/bin/sh</TT
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="features.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="how-to-compile.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Features</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="introduction.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How to compile cole</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,147 @@
<HTML
><HEAD
><TITLE
>Trademarks</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.41"><LINK
REL="HOME"
TITLE="cole Library Reference Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Legal issues"
HREF="legal-issues.html"><LINK
REL="PREVIOUS"
TITLE="Legal issues"
HREF="legal-issues.html"><LINK
REL="NEXT"
TITLE="Copyright and disclaimer"
HREF="copyright-and-disclaimer.html"></HEAD
><BODY
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>cole Library Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="legal-issues.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 5. Legal issues</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="copyright-and-disclaimer.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="TRADEMARKS"
>Trademarks</A
></H1
><P
> "Microsoft Word", "Microsoft Excel", "Microsoft Publisher" and "Microsoft Power Point" are trademarks of Microsoft Corporation.</P
><P
>"StarOffice" may be is a trademark of StarDivision.</P
><P
>"FlashPix" may be is a trademark.</P
><P
>"UNIX" is a trademark.</P
><P
> "Free Software" is not trademark of anyone, but it's an important term in the Free Software community, and for the Free Software Foundation.</P
><P
> All other trademarks are the property of their respective owners.</P
><P
> If another trademark is mentioned in this document and it needs to be listed above, please email to the maintainer (<A
HREF="mailto:arturo@directmail.org"
TARGET="_top"
>&#60;arturo@directmail.org&#62;</A
>).</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="legal-issues.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="copyright-and-disclaimer.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Legal issues</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="legal-issues.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Copyright and disclaimer</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

View File

@ -0,0 +1,93 @@
<SECTION>
<FILE>internals</FILE>
<TITLE>Internals</TITLE>
COLEFS
COLEDIRENT
COLEDIR
COLEFILE
F32
F64
U8
U16
U32
fil_sreadU16
fil_sreadU32
fil_sreadF64
fil_swriteU16
fil_swriteU32
verbose_return
test
test_exitf
test_call
test_call_exitf
report_bug
assert_return
verbose_d
verbose
verbose_wonl
verboseU8
verboseU16
verboseU32
verboseS
verboseS_wonl
warning
verboseU32Array
verboseU8Array_force
verboseU8Array
</SECTION>
<INCLUDE>cole/cole.h</INCLUDE>
<SECTION>
<FILE>api</FILE>
<TITLE>API</TITLE>
COLE_MAJOR_VERSION
COLE_MINOR_VERSION
COLE_MICRO_VERSION
cole_major_version
cole_minor_version
cole_micro_version
cole_version
cole_host_info
COLERRNO
cole_perror
COLEFS
COLEDIR
COLEDIRENT
COLEFILE
cole_mount
cole_umount
cole_print_tree
cole_locate_filename
cole_recurse_tree
cole_fopen
cole_fopen_direntry
cole_fclose
cole_fread
cole_feof
cole_fsize
cole_ftell
cole_fseek
cole_frewind
cole_opendir_rootdir
cole_opendir_direntry
cole_closedir
cole_visiteddirentry
cole_nextdirentry
cole_direntry_isdir
cole_direntry_isfile
cole_dir_getname
cole_dir_getsize
cole_dir_getsec1
cole_dir_getsec2
cole_dir_getdays1
cole_dir_getdays2
cole_direntry_getname
cole_direntry_getsize
cole_direntry_getdays1
cole_direntry_getsec1
cole_direntry_getdays2
cole_direntry_getsec2
</SECTION>

48
cole/doc/compile.sgml Normal file
View File

@ -0,0 +1,48 @@
<para>
The file <filename>INSTALL</filename> in the source code gives detailed instructions on how to configure, compile and install cole.
</para>
<para>
Briefly, you need to run the GNU standard <filename>configure</filename> script, with the arguments you want. To see the arguments that <filename>configure</filename> accepts, run <userinput>./configure --help</userinput>. The most usual argument is <userinput>--prefix=PREFIX</userinput>, which tells configure to install cole in the directory <userinput>PREFIX</userinput>. After that, you need to run <userinput>make</userinput> to compile cole, and <userinput>make install</userinput> to install it.
</para>
<para>
The <filename>configure</filename> script accepts, besides the standard arguments, the following flags:
</para>
<simplelist>
<member>
<userinput>--enable-osf-check</userinput>. Turn on short align for OSF compiler. If you have errors while compiling under OSF1, enable this flag.
</member>
<member>
<userinput>--enable-verbose</userinput>. Turn on verbose. It is useful if you want to send a bug report. It is useful for cole developers too.
</member>
<member>
<userinput>--enable-debug</userinput> Turn on GNU CC debug flags. It is useful for cole developers, so may be you don't want to use it.
</member>
</simplelist>
<para>
A tipical session is shown below.
</para>
<screen>
<prompt>$</prompt> <userinput>ls</userinput>
cole-2.0.0.tar.gz
<prompt>$</prompt> <userinput>gzip -d cole-2.0.0.tar.gz</userinput>
<prompt>$</prompt> <userinput>tar -xf cole-2.0.0.tar</userinput>
<prompt>$</prompt> <userinput>ls</userinput>
cole-2.0.0.tar cole-2.0.0/
<prompt>$</prompt> <userinput>cd cole-2.0.0</userinput>
<prompt>$</prompt> <userinput>./configure --prefix=/opt</userinput>
...
Configured cole release 2.0.0
<prompt>$</prompt> <userinput>make</userinput>
...
<prompt>$</prompt> <userinput>make install</userinput>
...
<prompt>$</prompt> <userinput>make clean</userinput>
...</screen>
<para>
When installing, a shell script named <filename>cole-config</filename> will be installed in <filename>PREFIX/bin</filename> if you used the the <userinput>--prefix=PREFIX</userinput> argument, or in <filename>/usr/local/bin</filename> if you didn't. That directory must be listed in the content of the enviroment variable PATH when configuring another program that uses cole.
</para>
<para>
If you system support it, will be compiled and installed shared libraries, to minimize size of the executables. By this reason, is important to include the directory <filename>PREFIX/bin</filename> or <filename>/usr/local/bin</filename> (which appropiate) in the file that your system command <filename>ldconfig</filename> reads in order to regenerate the list of shared libraries (in some systems, you can list the directory in the content of the enviroment variable LD_LIBRARY_PATH instead).
</para>

412
cole/doc/gpl.sgml Normal file
View File

@ -0,0 +1,412 @@
<chapter id="gpl-license">
<title>
GNU GENERAL PUBLIC LICENSE
</title>
<para>
Version 2, June 1991
</para>
<para>
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</para>
<para>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it's not allowed.
</para>
<sect1 id="gpl-license-preamble">
<title>
Preamble
</title>
<para>
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
</para>
<para>
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
</para>
<para>
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
</para>
<para>
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
</para>
<para>
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
</para>
<para>
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
</para>
<para>
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
</para>
<para>
The precise terms and conditions for copying, distribution and
modification follow.
</para>
</sect1> <!-- gpl-preamble -->
<sect1 id="gpl-license-terms">
<title>
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
</title>
<para>
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
</para>
<para>
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
</para>
<para>
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
</para>
<para>
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
</para>
<para>
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
</para>
<para>
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
</para>
<para>
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
</para>
<para>
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
</para>
<para>
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
</para>
<para>
Thus, it's not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
</para>
<para>
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
</para>
<para>
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
</para>
<para>
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
</para>
<para>
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
</para>
<para>
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
</para>
<para>
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
</para>
<para>
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
</para>
<para>
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
</para>
<para>
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
</para>
<para>
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
</para>
<para>
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
</para>
<para>
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
</para>
<para>
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it's up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
</para>
<para>
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
</para>
<para>
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
</para>
<para>
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
</para>
<para>
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
</para>
<para>
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
</para>
<para>
NO WARRANTY
</para>
<para>
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
</para>
<para>
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
</para>
<para>
END OF TERMS AND CONDITIONS
</para>
</sect1> <!-- gpl-terms -->
<sect1 id="gpl-license-how-to-apply">
<title>
How to Apply These Terms to Your New Programs
</title>
<para>
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
</para>
<para>
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
</para>
<screen>
<emphasis>one line to give the program's name and a brief idea of what it does.</emphasis>
Copyright (C) <emphasis>year</emphasis> <emphasis>name of author</emphasis>
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</screen>
<para>
Also add information on how to contact you by electronic and paper mail.
</para>
<para>
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
</para>
<screen>
Gnomovision version 69, Copyright (C) <emphasis>year</emphasis> <emphasis>name of author</emphasis>
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.</screen>
<para>
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
</para>
<para>
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
</para>
<screen>
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<emphasis>signature of Ty Coon</emphasis>, 1 April 1989
Ty Coon, President of Vice</screen>
<para>
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</para>
</sect1> <!-- gpl-how-to-apply -->
</chapter> <!-- gpl -->

View File

@ -0,0 +1,89 @@
<sect1 id="what-is-cole">
<title>What is cole?</title>
<!-- NOTE: this section must have the same content of the `README' file -->
<para>
cole is a free C OLE library.
</para>
<para>
cole is <link linkend="distribution-and-freedom">distributed</link> under the terms of the <link linkend="gpl-license">GNU General Public License</link> (GPL) to give an impulse to the Free Software. cole distribution license is compatible with the <ulink URL="http://www.opensource.org/">Open Source</ulink> definition.
</para>
<para>
Using cole, you can access Microsoft' Structured Storage files. The most popular Microsoft's programs generate Structured Storage files, incluiding the Microsoft' suite for offices. StarDivision' suite (StarOffice) generate Structured Storage files too. FlashPix file format is Structured Storage too.
</para>
<para>
What is a Structured Storage file? Inside a Structured Storage file there is a filesystem, with directories and files, which Microsoft calls containers and streams. Using cole you can travel through such filesystem and access the files.
</para>
<para>
cole doesn't know about internal structure of a stream, it only reads the raw data. You can use the Microsoft's documentation available at <ulink URL="http://msdn.microsoft.com/">http://msdn.microsoft.com</ulink> or the information available at <ulink URL="http://www.wotsit.org/">http://www.wotsit.org</ulink> to know the binary file format of the streams. If you know anything in the side of StarDivision email me. FlashPix file format is well documented.
</para>
<para>
cole was developed using the information available at <ulink URL="http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/guide.html">http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/guide.html</ulink> and the OLE::Storage Perl module from the same site, and no information from any other source (incluiding Microsoft) has been used.
</para>
</sect1>
<sect1 id="features">
<title>Features</title>
<para>
cole 2.x release series:
</para>
<itemizedlist>
<listitem>
<para>
Can open Structured Storage files generated with programs from Microsoft, StarDivision and FlashPix.
</para>
</listitem>
<listitem>
<para>
Is written in C, for better performance.
</para>
</listitem>
<listitem>
<para>
Should compile in UNIX-like systems with ANSI C libraries and a ANSI C compiler.
</para>
</listitem>
<listitem>
<para>
Has a new good-looking API, modelled after ANSI C <filename>stdio.h</filename> routines.
</para>
</listitem>
<listitem>
<para>
Uses standard automake, autoconf and libtool generated files.
</para>
</listitem>
<listitem>
<para>
Provides a standard <filename>configure</filename> script.
</para>
</listitem>
<listitem>
<para>
Builds shared (dynamic) libraries if the plattform and libtool support it.
</para>
</listitem>
<listitem>
<para>
Provides standard targets in the Makefile (ie. <userinput>install</userinput>, <userinput>clean</userinput>, etc).
</para>
</listitem>
<listitem>
<para>
Can use (thanks to the <filename>configure</filename> script) plattform dependent system calls for better performance.
</para>
</listitem>
</itemizedlist>
</sect1>
<sect1 id="requirements-to-compile">
<title>Requirements to compile</title>
<para>
To have a system with ANSI C libraries, a ANSI C compiler, a <filename>make</filename> program and the shell <filename>/bin/sh</filename>.
</para>
</sect1>

60
cole/doc/legal.sgml Normal file
View File

@ -0,0 +1,60 @@
<sect1 id="distribution-and-freedom">
<title>Distribution and Freedom</title>
<para>
cole is Free Software, which means is distributed under a license that protect your freedom. cole distribution license is compatible with the <ulink URL="http://www.opensource.org/">Open Source</ulink> definition.
</para>
<para>
cole is distributed under the terms of the <link linkend="gpl-license">GNU General Public License</link> (GPL). A copy of the license is in the file <filename>COPYING</filename> in the source code and in this document. Particulary, this means at least two things:
</para>
<orderedlist>
<listitem>
<para>
All the code statically or dinamically linked against cole must be distributed under the terms of a license compatible with GPL.
</para>
</listitem>
<listitem>
<para>
If you change the cole source code and you want to distribute a compiled version, you must release the changed cole source code too.
</para>
</listitem>
</orderedlist>
</sect1>
<sect1 id="trademarks">
<title>Trademarks</title>
<para>
"Microsoft Word", "Microsoft Excel", "Microsoft Publisher" and "Microsoft Power Point" are trademarks of Microsoft Corporation.
</para>
<para>
"StarOffice" may be is a trademark of StarDivision.
</para>
<para>
"FlashPix" may be is a trademark.
</para>
<para>
"UNIX" is a trademark.
</para>
<para>
"Free Software" is not trademark of anyone, but it's an important term in the Free Software community, and for the Free Software Foundation.
</para>
<para>
All other trademarks are the property of their respective owners.
</para>
<para>
If another trademark is mentioned in this document and it needs to be listed above, please email to the maintainer (&maintainer-email-ulink;).
</para>
</sect1>
<sect1 id="copyright-and-disclaimer">
<title>Copyright and disclaimer</title>
<para>
This document is copyright 1999 by &author-name-full;. This document is free software; you can redistribute it and/or modify it under the terms of the <link linkend="gpl-license">GNU General Public License</link> as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
</para>
<para>
This document is provided as is without any express or implied warranties. While every effort has been taken to ensure the accuracy of the information contained in this document, the author/maintainer/contributors assume(s) no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
</para>
</sect1>

1
cole/doc/tmpl/.cvsignore Normal file
View File

@ -0,0 +1 @@
*.bak

434
cole/doc/tmpl/api.sgml Normal file
View File

@ -0,0 +1,434 @@
<!-- ##### SECTION Title ##### -->
API
<!-- ##### SECTION Short_Description ##### -->
Public cole API for the present release.
<!-- ##### SECTION Long_Description ##### -->
<para>
Note: The separator character for filename components is '/'. So, a filename argument can be something like "/Macros/VB/Project1".
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### MACRO COLE_MAJOR_VERSION ##### -->
<para>
</para>
<!-- ##### MACRO COLE_MINOR_VERSION ##### -->
<para>
</para>
<!-- ##### MACRO COLE_MICRO_VERSION ##### -->
<para>
</para>
<!-- ##### VARIABLE cole_major_version ##### -->
<para>
</para>
<!-- ##### VARIABLE cole_minor_version ##### -->
<para>
</para>
<!-- ##### VARIABLE cole_micro_version ##### -->
<para>
</para>
<!-- ##### VARIABLE cole_version ##### -->
<para>
</para>
<!-- ##### VARIABLE cole_host_info ##### -->
<para>
</para>
<!-- ##### ENUM COLERRNO ##### -->
<para>
</para>
<!-- ##### FUNCTION cole_perror ##### -->
<para>
</para>
@s:
@colerrno:
<!-- ##### STRUCT COLEFS ##### -->
<para>
</para>
<!-- ##### STRUCT COLEDIR ##### -->
<para>
</para>
<!-- ##### STRUCT COLEDIRENT ##### -->
<para>
</para>
<!-- ##### STRUCT COLEFILE ##### -->
<para>
</para>
<!-- ##### FUNCTION cole_mount ##### -->
<para>
</para>
@filename:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_umount ##### -->
<para>
</para>
@colefilesystem:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_print_tree ##### -->
<para>
</para>
@colefilesystem:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_locate_filename ##### -->
<para>
</para>
@colefilesystem:
@filename:
@info:
@action:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_recurse_tree ##### -->
<para>
</para>
@colefilesystem:
@info:
@inroot:
@indirentry:
@indir:
@outdir:
@visitdir:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_fopen ##### -->
<para>
</para>
@colefilesystem:
@filename:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_fopen_direntry ##### -->
<para>
</para>
@coledirentry:
@colerrno:
@Returns:
<!-- # Unused Parameters # -->
@colefilesystem:
<!-- ##### FUNCTION cole_fclose ##### -->
<para>
</para>
@colefile:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_fread ##### -->
<para>
</para>
@colefile:
@ptr:
@size:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_feof ##### -->
<para>
</para>
@colefile:
@Returns:
<!-- ##### FUNCTION cole_fsize ##### -->
<para>
</para>
@colefile:
@Returns:
<!-- ##### FUNCTION cole_ftell ##### -->
<para>
</para>
@colefile:
@Returns:
<!-- ##### FUNCTION cole_fseek ##### -->
<para>
</para>
@colefile:
@delta:
@direction:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_frewind ##### -->
<para>
</para>
@colefile:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_opendir_rootdir ##### -->
<para>
</para>
@colefilesystem:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_opendir_direntry ##### -->
<para>
</para>
@coledirentry:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_closedir ##### -->
<para>
</para>
@coledir:
@colerrno:
@Returns:
<!-- ##### FUNCTION cole_visiteddirentry ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_nextdirentry ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_direntry_isdir ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_isfile ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_dir_getname ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_dir_getsize ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_dir_getsec1 ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_dir_getsec2 ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_dir_getdays1 ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_dir_getdays2 ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION cole_direntry_getname ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_getsize ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_getdays1 ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_getsec1 ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_getdays2 ##### -->
<para>
</para>
@coledirentry:
@Returns:
<!-- ##### FUNCTION cole_direntry_getsec2 ##### -->
<para>
</para>
@coledirentry:
@Returns:

View File

@ -0,0 +1,75 @@
<!-- ##### FUNCTION cole_opendir ##### -->
<para>
</para>
@colefilesystem:
@colerrno:
@Returns:
<!-- ##### FUNCTION OLEcode ##### -->
<para>
</para>
@OLEfilename:
@trunc:
@stream_list:
@root:
@Returns:
<!-- ##### FUNCTION freeOLEtree ##### -->
<para>
</para>
@tree:
@Returns:
<!-- ##### FUNCTION cole_ferror ##### -->
<para>
</para>
@colefile:
@Returns:
<!-- ##### FUNCTION cole_direntry ##### -->
<para>
</para>
@coledir:
@Returns:
<!-- ##### FUNCTION verbosePPSTree ##### -->
<para>
</para>
@pps_list:
@root_pps:
@level:
<!-- ##### FUNCTION OLEdecode ##### -->
<para>
</para>
@OLEfilename:
@stream_list:
@root:
@_BDepot:
@_SDepot:
@_sbfile:
@_input:
@max_level:
@Returns:
<!-- ##### FUNCTION cole_fclearerror ##### -->
<para>
</para>
@colefile:

View File

@ -0,0 +1,284 @@
<!-- ##### SECTION Title ##### -->
Internals
<!-- ##### SECTION Short_Description ##### -->
cole internals - don't trust in anything here, because it may (and will) change.
<!-- ##### SECTION Long_Description ##### -->
<para>
Contains calls to access directly the file system, and endianess care calls.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### STRUCT COLEFS ##### -->
<para>
</para>
<!-- ##### STRUCT COLEDIRENT ##### -->
<para>
</para>
<!-- ##### STRUCT COLEDIR ##### -->
<para>
</para>
<!-- ##### STRUCT COLEFILE ##### -->
<para>
</para>
<!-- ##### MACRO F32 ##### -->
<para>
</para>
<!-- ##### MACRO F64 ##### -->
<para>
</para>
<!-- ##### MACRO U8 ##### -->
<para>
</para>
<!-- ##### MACRO U16 ##### -->
<para>
</para>
<!-- ##### MACRO U32 ##### -->
<para>
</para>
<!-- ##### FUNCTION fil_sreadU16 ##### -->
<para>
</para>
@in:
@Returns:
<!-- ##### FUNCTION fil_sreadU32 ##### -->
<para>
</para>
@in:
@Returns:
<!-- ##### FUNCTION fil_sreadF64 ##### -->
<para>
</para>
@in:
@Returns:
<!-- ##### FUNCTION fil_swriteU16 ##### -->
<para>
</para>
@dest:
@src:
<!-- ##### FUNCTION fil_swriteU32 ##### -->
<para>
</para>
@dest:
@src:
<!-- ##### MACRO verbose_return ##### -->
<para>
</para>
<!-- ##### MACRO test ##### -->
<para>
</para>
@t:
@retval:
<!-- ##### MACRO test_exitf ##### -->
<para>
</para>
@t:
@retval:
@func:
<!-- ##### MACRO test_call ##### -->
<para>
</para>
@t:
@typeretval:
<!-- ##### MACRO test_call_exitf ##### -->
<para>
</para>
@t:
@typeretval:
@func:
<!-- ##### MACRO report_bug ##### -->
<para>
</para>
@prog:
<!-- ##### MACRO assert_return ##### -->
<para>
</para>
@prog:
@t:
@retval:
<!-- ##### MACRO verbose_d ##### -->
<para>
</para>
@n:
<!-- ##### MACRO verbose ##### -->
<para>
</para>
@s:
<!-- ##### MACRO verbose_wonl ##### -->
<para>
</para>
@s:
<!-- ##### MACRO verboseU8 ##### -->
<para>
</para>
@expr:
<!-- ##### MACRO verboseU16 ##### -->
<para>
</para>
@expr:
<!-- ##### MACRO verboseU32 ##### -->
<para>
</para>
@expr:
<!-- ##### MACRO verboseS ##### -->
<para>
</para>
@expr:
<!-- ##### MACRO verboseS_wonl ##### -->
<para>
</para>
@expr:
<!-- ##### MACRO warning ##### -->
<para>
</para>
@t:
<!-- ##### MACRO verboseU32Array ##### -->
<para>
</para>
@array:
@len:
<!-- ##### MACRO verboseU8Array_force ##### -->
<para>
</para>
@rec:
@len:
@reclen:
<!-- ##### MACRO verboseU8Array ##### -->
<para>
</para>
@rec:
@len:
@reclen:

33
cole/doc/using.sgml Normal file
View File

@ -0,0 +1,33 @@
<para>
The files in the subdirectory <filename>examples</filename> in the source code show the complete public <link linkend="cole-API">API</link> in action. Briefly, if you know how to use the <filename>stdio.h</filename> ANSI C calls, cole API will be very easy for you.
</para>
<para>
If you use <filename>autoconf</filename> in your own proyect, the included file <filename>cole.m4</filename> may be useful for you. It contains the m4 macro AM_PATH_COLE that detect the presense or ausence of the cole library in the system being configured. To use it:
</para>
<orderedlist>
<listitem>
<para>
If cole is not installed in your system (i.e. <filename>aclocal</filename> can't find <filename>cole.m4</filename>), add the content of <filename>cole.m4</filename> to your own <filename>acinclude.m4</filename> file (create it in case you haven't one).
</para>
</listitem>
<listitem>
<para>
Add a line like <userinput>AM_PATH_COLE(2.0.0, [LIBS="$LIBS $COLE_LIBS" CFLAGS="$CFLAGS $COLE_CFLAGS"])</userinput> to your <filename>configure.in</filename> file. Here we are requesting for cole release 2.0.0, and adding the necessary flags to LIBS and CFLAGS.
</para>
</listitem>
<listitem>
<para>
Run <userinput>aclocal</userinput> to generate the file <filename>aclocal.m4</filename>. This file will have many m4 macros, incluiding the cole m4 macro, and
</para>
</listitem>
<listitem>
<para>
Run <userinput>autoconf</userinput> to generate the script <filename>configure</filename>.
</para>
</listitem>
</orderedlist>
<para>
Many <link linkend="cole-API">API</link> calls take an argument at the end called <link linkend="COLERRNO"><parameter>colerrno</parameter></link>. If it's not NULL and the call failed, it store the error code for fail, if any (if the call was successfully ended, its value is not modified).
</para>

11
cole/examples/Makefile.am Normal file
View File

@ -0,0 +1,11 @@
## Process this file with automake to produce Makefile.in
EXTRA_DIST = present.sdd sprsheet.sdc sprsheet.xls text.doc text.sdw \
README-examples
INCLUDES = -I$(top_srcdir)
LDADD = $(top_builddir)/libcole.la
TESTS = filesystem directory file version
noinst_PROGRAMS = filesystem directory file demo version

369
cole/examples/Makefile.in Normal file
View File

@ -0,0 +1,369 @@
# Makefile.in generated automatically by automake 1.4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
COLE_MAJOR = @COLE_MAJOR@
COLE_MICRO = @COLE_MICRO@
COLE_MINOR = @COLE_MINOR@
DLLTOOL = @DLLTOOL@
HOST_ALIAS_NAME = @HOST_ALIAS_NAME@
HOST_CANONICAL_NAME = @HOST_CANONICAL_NAME@
HOST_CPU = @HOST_CPU@
HOST_OS = @HOST_OS@
HOST_VENDOR = @HOST_VENDOR@
LD = @LD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
NM = @NM@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
VERSION_INFO = @VERSION_INFO@
EXTRA_DIST = present.sdd sprsheet.sdc sprsheet.xls text.doc text.sdw README-examples
INCLUDES = -I$(top_srcdir)
LDADD = $(top_builddir)/libcole.la
TESTS = filesystem directory file version
noinst_PROGRAMS = filesystem directory file demo version
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = topsrcdir.h
PROGRAMS = $(noinst_PROGRAMS)
DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
filesystem_SOURCES = filesystem.c
filesystem_OBJECTS = filesystem.o
filesystem_LDADD = $(LDADD)
filesystem_DEPENDENCIES = $(top_builddir)/libcole.la
filesystem_LDFLAGS =
directory_SOURCES = directory.c
directory_OBJECTS = directory.o
directory_LDADD = $(LDADD)
directory_DEPENDENCIES = $(top_builddir)/libcole.la
directory_LDFLAGS =
file_SOURCES = file.c
file_OBJECTS = file.o
file_LDADD = $(LDADD)
file_DEPENDENCIES = $(top_builddir)/libcole.la
file_LDFLAGS =
demo_SOURCES = demo.c
demo_OBJECTS = demo.o
demo_LDADD = $(LDADD)
demo_DEPENDENCIES = $(top_builddir)/libcole.la
demo_LDFLAGS =
version_SOURCES = version.c
version_OBJECTS = version.o
version_LDADD = $(LDADD)
version_DEPENDENCIES = $(top_builddir)/libcole.la
version_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = Makefile.am Makefile.in topsrcdir.h.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
SOURCES = filesystem.c directory.c file.c demo.c version.c
OBJECTS = filesystem.o directory.o file.o demo.o version.o
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps examples/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
topsrcdir.h: $(top_builddir)/config.status topsrcdir.h.in
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-noinstPROGRAMS:
clean-noinstPROGRAMS:
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
distclean-noinstPROGRAMS:
maintainer-clean-noinstPROGRAMS:
.c.o:
$(COMPILE) -c $<
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
.c.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.s.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.S.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
maintainer-clean-libtool:
filesystem: $(filesystem_OBJECTS) $(filesystem_DEPENDENCIES)
@rm -f filesystem
$(LINK) $(filesystem_LDFLAGS) $(filesystem_OBJECTS) $(filesystem_LDADD) $(LIBS)
directory: $(directory_OBJECTS) $(directory_DEPENDENCIES)
@rm -f directory
$(LINK) $(directory_LDFLAGS) $(directory_OBJECTS) $(directory_LDADD) $(LIBS)
file: $(file_OBJECTS) $(file_DEPENDENCIES)
@rm -f file
$(LINK) $(file_LDFLAGS) $(file_OBJECTS) $(file_LDADD) $(LIBS)
demo: $(demo_OBJECTS) $(demo_DEPENDENCIES)
@rm -f demo
$(LINK) $(demo_LDFLAGS) $(demo_OBJECTS) $(demo_LDADD) $(LIBS)
version: $(version_OBJECTS) $(version_DEPENDENCIES)
@rm -f version
$(LINK) $(version_LDFLAGS) $(version_OBJECTS) $(version_LDADD) $(LIBS)
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = examples
distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
check-TESTS: $(TESTS)
@failed=0; all=0; \
srcdir=$(srcdir); export srcdir; \
for tst in $(TESTS); do \
if test -f $$tst; then dir=.; \
else dir="$(srcdir)"; fi; \
if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
all=`expr $$all + 1`; \
echo "PASS: $$tst"; \
elif test $$? -ne 77; then \
all=`expr $$all + 1`; \
failed=`expr $$failed + 1`; \
echo "FAIL: $$tst"; \
fi; \
done; \
if test "$$failed" -eq 0; then \
banner="All $$all tests passed"; \
else \
banner="$$failed of $$all tests failed"; \
fi; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"; \
test "$$failed" -eq 0
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
mostlyclean-libtool mostlyclean-tags \
mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-noinstPROGRAMS distclean-compile \
distclean-libtool distclean-tags distclean-generic \
clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir check-TESTS \
info-am info dvi-am dvi check check-am installcheck-am installcheck \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -0,0 +1,11 @@
present.sdd - StarOffice 5.0 presentation.
sprsheet.sdc - StarOffice 5.0 spreadsheet.
sprsheet.xls - Microsoft Excel 95 spreadsheet.
text.sdw - StarOffice 5.0 text.
All the files above was generated using the free StarOffice 5.0 Personal
Edition.
text.doc - Microsoft Word 97 text with an incrusted image.

159
cole/examples/demo.c Normal file
View File

@ -0,0 +1,159 @@
/*
cole - A free C OLE library.
cole using sample.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <ctype.h>
/* To compile this file outside cole source tree,
you must include here <cole/cole.h> instead <cole.h> */
#include <cole.h>
#define PRGNAME "demo"
#define BUFFER_SIZE 128
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLEDIR * cd;
COLEDIRENT * cde;
COLEFILE * cf;
COLERRNO colerrno;
char * entry_name;
char buffer[BUFFER_SIZE];
size_t char_read;
size_t char_read_total;
if (argc != 2) {
fprintf (stderr, "cole demo. cole is a free C OLE library.\n"
"Usage: demo <FILE>\n");
return 1;
}
/*
* version info
*/
printf ("Version info: (%d.%d.%d) (%d.%d.%d) (%s)\n",
COLE_MAJOR_VERSION, COLE_MINOR_VERSION, COLE_MICRO_VERSION,
cole_major_version, cole_minor_version, cole_micro_version,
cole_version);
printf ("Host info: (%s)\n", cole_host_info);
cfs = cole_mount (argv[1], &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
if (cole_print_tree (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
cd = cole_opendir_rootdir (cfs, &colerrno);
if (cd == NULL) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
for (cde = cole_visiteddirentry (cd); cde != NULL;
cde = cole_nextdirentry (cd)) {
if (cole_direntry_isdir (cde))
printf ("DIR ");
else if (cole_direntry_isfile (cde)) {
printf ("FILE ");
/* open the file using their direntry */
cf = cole_fopen_direntry (cde, &colerrno);
if (cf == NULL) {
cole_perror ("travel", colerrno);
cole_closedir (cd, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fclose (cf, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_closedir (cd, NULL);
cole_umount (cfs, NULL);
exit (1);
}
} else
printf ("???? ");
printf ("%7u ", cole_direntry_getsize (cde));
entry_name = cole_direntry_getname (cde);
printf ("%08lx-%08lx %08lx-%08lx\t",
cole_direntry_getdays1 (cde),
cole_direntry_getsec1 (cde),
cole_direntry_getdays2 (cde),
cole_direntry_getsec2 (cde));
if (!isprint ((int)entry_name[0]))
printf ("'\\x%02x%s'\n", entry_name[0], entry_name+1);
else
printf ("'%s'\n", entry_name);
}
if (cole_closedir (cd, &colerrno)) {
cole_umount (cfs, NULL);
exit (1);
}
cf = cole_fopen (cfs, "\005SummaryInformation", &colerrno);
if (cf == NULL) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
char_read_total = 0;
printf ("Reading: ");
while ((char_read = cole_fread (cf, buffer, BUFFER_SIZE, &colerrno))) {
printf ("[%d]", char_read);
char_read_total += char_read;
}
cole_perror (PRGNAME, colerrno);
printf ("\nRead %d bytes from the stream '\\005SummaryInformation'\n",
char_read_total);
if (cole_fclose (cf, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
exit (0);
}

121
cole/examples/directory.c Normal file
View File

@ -0,0 +1,121 @@
/*
cole - A free C OLE library.
cole test.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <ctype.h>
#include <cole.h>
#include <topsrcdir.h>
/*
MISSING TO TEST:
cole_opendir_direntry
cole_dir_getname
cole_dir_getsize
cole_dir_getdays1
cole_dir_getsec1
cole_dir_getdays2
cole_dir_getsec2
*/
#define PRGNAME "directory"
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLEDIR * cd;
COLEDIRENT * cde;
COLEFILE * cf;
char * entry_name;
COLERRNO colerrno;
cfs = cole_mount (COLE_TOPSRCDIR"/examples/text.doc", &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
cd = cole_opendir_rootdir (cfs, &colerrno);
if (cd == NULL) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
for (cde = cole_visiteddirentry (cd); cde != NULL;
cde = cole_nextdirentry (cd)) {
if (cole_direntry_isdir (cde))
printf ("DIR ");
else if (cole_direntry_isfile (cde)) {
printf ("FILE");
/* open the file using their direntry */
cf = cole_fopen_direntry (cde, &colerrno);
if (cf == NULL) {
cole_perror ("travel", colerrno);
cole_closedir (cd, NULL);
cole_umount (cfs, NULL);
exit (1);
}
/* Here we process cf */
if (cole_fclose (cf, &colerrno)) {
cole_perror ("travel", colerrno);
cole_closedir (cd, NULL);
cole_umount (cfs, NULL);
exit (1);
}
} else
printf ("????");
printf (" %7u", cole_direntry_getsize (cde));
entry_name = cole_direntry_getname (cde);
if (!isprint ((int)entry_name[0]))
printf ("' \\x%02x%s'", entry_name[0], entry_name+1);
else
printf ("'%s'", entry_name);
printf ("\t%08lx-%08lx %08lx-%08lx",
cole_direntry_getdays1 (cde),
cole_direntry_getsec1 (cde),
cole_direntry_getdays2 (cde),
cole_direntry_getsec2 (cde));
printf ("\n");
}
if (cole_closedir (cd, &colerrno)) {
cole_perror ("travel", colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror ("travel", colerrno);
exit (1);
}
exit (0);
}

192
cole/examples/file.c Normal file
View File

@ -0,0 +1,192 @@
/*
cole - A free C OLE library.
cole test.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <cole.h>
#include <topsrcdir.h>
/* cole_fopen_direntry is tested in `directory.c' */
#define PRGNAME "file"
#define BUFFER_SIZE 128
#define FILENAME2_SIZE 108004
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLEFILE * cf;
COLERRNO colerrno;
char buffer[BUFFER_SIZE];
size_t char_read;
size_t char_read_total;
char *filename2 = "/ObjectPool/_994231763/\001Ole10Native";
char *filename2_pretty = "/ObjectPool/_994231763/\\001Ole10Native";
cfs = cole_mount (COLE_TOPSRCDIR"/examples/text.doc", &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
cf = cole_fopen (cfs, filename2, &colerrno);
if (cf == NULL) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File size: %d\n", cole_fsize (cf));
if (cole_fsize (cf) != FILENAME2_SIZE) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
char_read_total = 0;
while ((char_read = cole_fread (cf, buffer, BUFFER_SIZE, &colerrno)))
char_read_total += char_read;
cole_perror (PRGNAME, colerrno);
printf ("File position: %d\n", cole_ftell (cf));
printf ("Read %d bytes from the stream `%s'\n", char_read_total,
filename2_pretty);
if (cole_frewind (cf, &colerrno)) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_ftell (cf) != 0) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fseek (cf, 0, COLE_SEEK_END, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_ftell (cf) != FILENAME2_SIZE) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fseek (cf, 200, COLE_SEEK_END, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_ftell (cf) != FILENAME2_SIZE - 200) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fseek (cf, 100, COLE_SEEK_FORWARD, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_ftell (cf) != FILENAME2_SIZE - 200 + 100) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fseek (cf, 200, COLE_SEEK_BACKWARD, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_ftell (cf) != FILENAME2_SIZE - 200 + 100 - 200) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (!cole_fseek (cf, FILENAME2_SIZE + 1, COLE_SEEK_SET, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_fseek (cf, FILENAME2_SIZE, COLE_SEEK_END, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_ftell (cf) != 0) {
fprintf (stderr, "Test failed\n");
cole_fclose (cf, NULL);
cole_umount (cfs, NULL);
exit (1);
}
printf ("File position: %d\n", cole_ftell (cf));
if (cole_fclose (cf, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
exit (0);
}

102
cole/examples/filesystem.c Normal file
View File

@ -0,0 +1,102 @@
/*
cole - A free C OLE library.
cole test.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <cole.h>
#include <topsrcdir.h>
#define PRGNAME "filesystem"
/* To test cole_locate_filename() */
struct str_info {
char *name;
size_t size;
};
COLE_LOCATE_ACTION_FUNC check_size;
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLERRNO colerrno;
/* To test cole_locate_filename() */
#define FILENAME "/ObjectPool/_994231763/\001Ole10Native"
struct str_info info = { FILENAME, 108004 };
cfs = cole_mount (COLE_TOPSRCDIR"/examples/text.doc", &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
if (cole_print_tree (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_locate_filename (cfs, FILENAME, &info, check_size,
&colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_recurse_tree (cfs, NULL, NULL, NULL, NULL, NULL, NULL,
&colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror ("travel", colerrno);
exit (1);
}
exit (0);
}
/* To test cole_locate_filename() */
void
check_size (COLEDIRENT *cde, void *_info) {
struct str_info *info = (struct str_info *)_info;
if (info->size != cole_direntry_getsize (cde))
printf ("SIZE OF `%s' DOESN'T CHECK!\n", info->name);
else
printf ("Size of `%s' is ok\n", info->name);
}

BIN
cole/examples/present.sdd Normal file

Binary file not shown.

BIN
cole/examples/sprsheet.sdc Normal file

Binary file not shown.

BIN
cole/examples/sprsheet.xls Normal file

Binary file not shown.

BIN
cole/examples/text.doc Normal file

Binary file not shown.

BIN
cole/examples/text.sdw Normal file

Binary file not shown.

View File

@ -0,0 +1,41 @@
/*
cole - A free C OLE library.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#ifndef COLE_TOPSRCDIR_H
#define COLE_TOPSRCDIR_H
#ifdef __cplusplus
extern "C" {
#endif
#define COLE_TOPSRCDIR "@top_srcdir@"
#ifdef __cplusplus
}
#endif
#endif /* COLE_TOPSRCDIR_H */

42
cole/examples/version.c Normal file
View File

@ -0,0 +1,42 @@
/*
cole - A free C OLE library.
cole test.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <cole.h>
int
main (int argc, char **argv)
{
printf ("cole version (defines): %d.%d.%d\n",
COLE_MAJOR_VERSION, COLE_MINOR_VERSION, COLE_MICRO_VERSION);
printf ("cole version (variables): %d.%d.%d\n",
cole_major_version, cole_minor_version, cole_micro_version);
printf ("cole version (cole_version): %s\n", cole_version);
printf ("cole host: %s\n", cole_host_info);
exit (0);
}

139
cole/internal.c Normal file
View File

@ -0,0 +1,139 @@
/*
cole - A free C OLE library.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if !(defined( __WIN32__ ) || defined( __BORLANDC__ ))
#include <unistd.h>
#endif
#include "internal.h"
#define MIN(a,b) ((a)<(b) ? (a) : (b))
int
__cole_extract_file (FILE **file, char **filename, U32 size, U32 pps_start,
U8 *BDepot, U8 *SDepot, FILE *sbfile, FILE *inputfile)
{
/* FIXME rewrite this cleaner */
U16 BlockSize, Offset;
U8 *Depot;
FILE *infile;
long FilePos;
size_t bytes_to_copy;
U8 Block[0x0200];
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
FILE *ret;
*filename = (char *)malloc (TMPNAM_LEN);
if (*filename == NULL)
return 1;
if (tmpnam (*filename) == NULL) {
free (*filename);
return 2;
}
ret = fopen (*filename, "w+b");
*file = ret;
if (ret == NULL) {
free (*filename);
return 3;
}
#else
int ret;
*filename = malloc (TMPNAM_LEN);
if (*filename == NULL)
return 1;
strcpy(*filename, "/tmp/xlHtmlXXXXXX");
ret = mkstemp(*filename);
if (ret == -1) {
free(*filename);
return 2;
}
*file = fdopen(ret, "w+b");
if (*file == NULL) {
free(*filename);
close(ret);
return 3;
}
/* unlink() is called so this file deletes when we are done with it */
unlink(*filename);
#endif
if (size >= 0x1000) {
/* read from big block depot */
Offset = 1;
BlockSize = 0x0200;
infile = inputfile;
Depot = BDepot;
} else {
/* read from small block file */
Offset = 0;
BlockSize = 0x40;
infile = sbfile;
Depot = SDepot;
}
while (pps_start != 0xfffffffeUL /*&& pps_start != 0xffffffffUL &&
pps_start != 0xfffffffdUL*/) {
FilePos = (long)((pps_start + Offset) * BlockSize);
if (FilePos < 0) {
fclose (*file);
remove (*filename);
free (*filename);
return 4;
}
bytes_to_copy = MIN ((U32)BlockSize, size);
if (fseek (infile, FilePos, SEEK_SET)) {
fclose (*file);
remove (*filename);
free (*filename);
return 4;
}
fread (Block, bytes_to_copy, 1, infile);
if (ferror (infile)) {
fclose (*file);
remove (*filename);
free (*filename);
return 5;
}
fwrite (Block, bytes_to_copy, 1, *file);
if (ferror (*file)) {
fclose (*file);
remove (*filename);
free (*filename);
return 6;
}
pps_start = fil_sreadU32 (Depot + (pps_start * 4));
size -= MIN ((U32)BlockSize, size);
if (size == 0)
break;
}
return 0;
}

142
cole/internal.h Normal file
View File

@ -0,0 +1,142 @@
/*
cole - A free C OLE library.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#ifndef COLE_INTERNAL_H
#define COLE_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#ifndef COLE_SUPPORT_H
#include "support.h"
#endif
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
#define TMPNAM_LEN L_tmpnam
#else
#define TMPNAM_LEN 18 /* /tmp/xlHtmlXXXXXX + NULL */
#endif
/* This structure describe one stream. */
struct pps_block
{
char name[0x20];
char filename[TMPNAM_LEN]; /* valid only if type == 2 */
U8 type; /* 5 == root, 1 == dir, 2 == file */
U32 size; /* the size of the file,
valid only if type == 2 */
U32 next; /* next entry in this level,
in this directory */
U32 dir; /* valid only if type != 2 */
U16 level; /* level in the ole tree */
U32 seconds1;
U32 seconds2;
U32 days1;
U32 days2;
U32 start; /* start block */
/* private fields, used only inside OLEdecoded and OLEcode,
don't modify them if you want to use OLEcode */
U32 previous; /* previous pps, valid before reordering */
U32 ppsnumber; /* pps number */
};
typedef struct pps_block pps_entry;
/*
Create a OLE stream tree from a file.
Input: char *Olefilename = File to be decoded (ie. .xsl, .doc, .ppt).
. pps_entry ** stream_list = The stream tree.
. U32 * root = The number of root dir in stream_list.
. U8 **_BDepot, U8 **_SDepot, FILE **_sbfile, char **_sbfilename,
. FILE **_input,
. = Exposes internals, read only.
. U16 max_level = The maximum level on stream tree in which
. streams will be actually extracted
. to a file. 0 (zero) means extract all.
Output: 0 = Sucess.
. 4 = Couldn't open OLEfilename file (can use perror).
. 8 = OLEfilename file seems to contain plain text, not OLE file.
. 9 = OLEfilename is a binary file, but it have not OLEfile format.
. 5 = Error reading from file, means OLEfilename file has a faulty
. OLE file format (UPDATE: not always).
. 6 = Error removing temporal files. <-- this is never returned now
. 7 = Error creating temporal files, can use perror.
. 10 = Error allocating memory, there's no more memory.
*/
int __OLEdecode (char *OLEfilename, pps_entry ** stream_list, U32 * root,
U8 **_BDepot, U8 **_SDepot, FILE **_sbfile, char **_sbfilename,
FILE **_input, U16 max_level);
/*
* FROM COLE 2.0.0 API
*/
struct _COLEFS {
/* This structure is for internal use only, not for the public API */
pps_entry *tree;
U32 root; /* entry root, root pps_entry */
U8 *BDepot;
U8 *SDepot;
FILE *sbfile;
char *sbfilename;
FILE *file; /* actual file (the filesystem) */
};
struct _COLEDIRENT {
/* This structure is for internal use only, not for the public API */
U32 entry;
struct _COLEDIR *dir; /* father */
};
struct _COLEDIR {
/* This structure is for internal use only, not for the public API */
U32 entry;
struct _COLEDIRENT visited_entry;
struct _COLEFS *fs; /* father */
};
struct _COLEFILE {
/* This structure is for internal use only, not for the public API */
U32 entry;
FILE *file; /* actual extracted file */
char *filename; /* actual extracted file's name */
U32 filesize; /* actual extracted file size */
struct _COLEFS *fs; /* father */
U32 pos; /* file pointer position */
};
int __cole_extract_file (FILE **file, char **filename, U32 size,
U32 pps_start, U8 *BDepot, U8 *SDepot, FILE *sbfile,
FILE *inputfile);
#define _COLE_TYPE_DIR 1
#define _COLE_TYPE_FILE 2
#define _COLE_TYPE_ROOT 5
#ifdef __cplusplus
}
#endif
#endif /* COLE_INTERNAL_H */

1260
cole/olecod.c Normal file

File diff suppressed because it is too large Load Diff

790
cole/oledecod.c Normal file
View File

@ -0,0 +1,790 @@
/*
OLEdecode - Decode Microsoft OLE files into its components.
Copyright (C) 1998, 1999 Andrew Scriven
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
*/
/*
Released under GPL, written by
Andrew Scriven <andy.scriven@research.natpower.co.uk>
Copyright (C) 1998, 1999
Andrew Scriven
*/
/*
-----------------------------------------------------------------------
Andrew Scriven
Research and Engineering
Electron Building, Windmill Hill, Whitehill Way, Swindon, SN5 6PB, UK
Phone (44) 1793 896206, Fax (44) 1793 896251
-----------------------------------------------------------------------
*/
/*
*Extremely* modified by Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <assert.h>
#if !(defined( __BORLANDC__ ) || defined( __WIN32__ ))
#include "cole.h"
#include "config.h"
#include <unistd.h> /* for unlink() */
#else
#include "cole.h.in"
#endif
/* FIXME: replace all VERBOSE with COLE_VERBOSE */
#ifdef COLE_VERBOSE
#define VERBOSE
#else
#undef VERBOSE
#endif
#include "support.h"
#include "internal.h"
#define ENTRYCHUNK 20 /* number of entries in root_list and sbd_list
will be added each time. must be at least 1 */
#define MIN(a,b) ((a)<(b) ? (a) : (b))
/* reorder pps tree, from tree structure to a linear one,
and write the level numbers, returns zero if OLE format fails,
returns no zero if success */
static int reorder_pps_tree (pps_entry * root_pps, U16 level);
/* free memory used (except the pps tree) */
static void ends (void);
/* close and remove files in the tree */
/* closeOLEtreefiles --- outdated because not to generate the
real files by now --- cole 2.0.0 */
/*
static void closeOLEtreefiles (pps_entry * tree, U32 root);
*/
/*
Verbose pps tree.
Input: pps_list: stream list.
root_pps: root pps.
level: how much levels will be extracted.
Output: none.
*/
static void verbosePPSTree (pps_entry * pps_list, U32 root_pps, int level);
static FILE *input;
static U8 *Block;
static U8 *Blockx;
static U8 *BDepot, *SDepot, *Root;
static pps_entry *pps_list;
static U32 num_of_pps;
static FILE *sbfile;
/* sbfilename is stored in *_sbfilename instead -- cole 2.0.0 */
/* static char sbfilename[L_tmpnam]; */
static U32 *sbd_list;
static U32 *root_list;
int __OLEdecode (char *OLEfilename, pps_entry ** stream_list, U32 * root,
U8 **_BDepot, U8 **_SDepot, FILE **_sbfile, char **_sbfilename,
FILE **_input,
U16 max_level)
{
int c;
U32 num_bbd_blocks;
U32 num_xbbd_blocks;
U32 bl;
U32 i, j, len;
U8 *s, *p, *t;
long FilePos;
/* FilePos is long, not U32, because second argument of fseek is long */
/* initialize static variables */
input = sbfile = NULL;
Block = Blockx = BDepot = SDepot = Root = NULL;
pps_list = NULL;
num_of_pps = 0;
/* sbfilename is stored in *_sbfilename instead -- cole 2.0.0 */
/* sbfilename[0] = 0; */
root_list = sbd_list = NULL;
/* initalize return parameters */
*stream_list = NULL;
/* open input file */
verbose ("open input file");
input = fopen (OLEfilename, "rb");
test_exitf (input != NULL, 4, ends ());
*_input = input;
/* fast check type of file */
verbose ("fast testing type of file");
test_exitf ((c = getc (input)) != EOF, 5, ends ());
test_exitf (ungetc (c, input) != EOF, 5, ends ());
/* test_exitf (!isprint (c), 8, ends ()); OpenBSD suggestion to comment this out */
test_exitf (c == 0xd0, 9, ends ());
/* read header block */
verbose ("read header block");
Block = (U8 *) malloc (0x0200);
test_exitf (Block != NULL, 10, ends ());
fread (Block, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
/* really check type of file */
rewind (input);
verbose ("testing type of file");
test_exitf (fil_sreadU32 (Block) != 0xd0cf11e0UL, 9, ends ());
test_exitf (fil_sreadU32 (Block + 0x04) != 0xa1b11ae1UL, 9, ends ());
/* read big block depot */
verbose ("read big block depot (bbd)");
num_bbd_blocks = fil_sreadU32 (Block + 0x2c);
num_xbbd_blocks = fil_sreadU32 (Block + 0x48);
verboseU32 (num_bbd_blocks);
verboseU32 (num_xbbd_blocks);
BDepot = (U8 *) malloc (0x0200 * (num_bbd_blocks + num_xbbd_blocks));
test_exitf (BDepot != NULL, 10, ends ());
*_BDepot = BDepot;
s = BDepot;
assert (num_bbd_blocks <= (0x0200 / 4 - 1) * num_xbbd_blocks +
(0x0200 / 4) - 19);
/* the first 19 U32 in header does not belong to bbd_list */
for (i = 0; i < MIN (num_bbd_blocks, 0x0200 / 4 - 19); i++)
{
/* note: next line may be needed to be cast to long in right side */
FilePos = 0x0200 * (1 + fil_sreadU32 (Block + 0x4c + (i * 4)));
assert (FilePos >= 0);
test_exitf (!fseek (input, FilePos, SEEK_SET), 5, ends ());
fread (s, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
s += 0x0200;
}
Blockx = (U8 *) malloc (0x0200);
test_exitf (Blockx != NULL, 10, ends ());
bl = fil_sreadU32 (Block + 0x44);
for (i = 0; i < num_xbbd_blocks; i++)
{
FilePos = 0x0200 * (1 + bl);
assert (FilePos >= 0);
test_exitf (!fseek (input, FilePos, SEEK_SET), 5, ends ());
fread (Blockx, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
for (j=0; j < 0x0200 / 4 - 1;j++)
/* last U32 is for the next bl */
{
if (fil_sreadU32 (Blockx + (j * 4)) == 0xfffffffeUL ||
fil_sreadU32 (Blockx + (j * 4)) == 0xfffffffdUL ||
fil_sreadU32 (Blockx + (j * 4)) == 0xffffffffUL)
break;
/* note: next line may be needed to be cast to long in right side */
FilePos = 0x0200 * (1 + fil_sreadU32 (Blockx + (j * 4)));
assert (FilePos >= 0);
test_exitf (!fseek (input, FilePos, SEEK_SET), 5, ends ());
fread (s, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
s += 0x0200;
}
bl = fil_sreadU32 (Blockx + 0x0200 - 4);
}
verboseU8Array (BDepot, (num_bbd_blocks+num_xbbd_blocks), 0x0200);
/* extract the sbd block list */
verbose ("extract small block depot (sbd) block list");
sbd_list = (U32 *) malloc (ENTRYCHUNK * 4);
test_exitf (sbd_list != NULL, 10, ends ());
sbd_list[0] = fil_sreadU32 (Block + 0x3c);
/* -2 signed long int == 0xfffffffe unsinged long int */
for (len = 1; sbd_list[len - 1] != 0xfffffffeUL; len++)
{
test_exitf (len != 0, 5, ends ()); /* means file is too big */
/* if memory allocated in sbd_list is all used, allocate more memory */
if (!(len % ENTRYCHUNK))
{
U32 *newspace;
newspace = realloc (sbd_list,
(1 + len / ENTRYCHUNK) * ENTRYCHUNK * 4);
test_exitf (newspace != NULL, 10, ends ());
sbd_list = newspace;
}
sbd_list[len] = fil_sreadU32 (BDepot + (sbd_list[len - 1] * 4));
/*verboseU32 (len);*/
/*verboseU32 (sbd_list[0]);*/
/*verboseU32 (sbd_list[1]);*/
if (sbd_list[len] != 0xfffffffeUL)
test_exitf (sbd_list[len] <= num_bbd_blocks * 0x0200 - 4, 5, ends ());
test_exitf (sbd_list[len] != 0xfffffffdUL &&
sbd_list[len] != 0xffffffffUL,
5, ends ());
}
len--;
verboseU32Array (sbd_list, len+1);
/* read in small block depot, if there's any small block */
if (len == 0)
{
SDepot = NULL;
verbose ("not read small block depot (sbd): there's no small blocks");
}
else
{
verbose ("read small block depot (sbd)");
SDepot = (U8 *) malloc (0x0200 * len);
test_exitf (SDepot != NULL, 10, ends ());
s = SDepot;
for (i = 0; i < len; i++)
{
FilePos = 0x0200 * (1 + sbd_list[i]);
assert (FilePos >= 0);
test_exitf (!fseek (input, FilePos, SEEK_SET), 5, ends ());
fread (s, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
s += 0x200;
}
verboseU8Array (SDepot, len, 0x0200);
}
*_SDepot = SDepot;
/* extract the root block list */
verbose ("extract root block depot (root) block list");
root_list = (U32 *) malloc (ENTRYCHUNK * 4);
test_exitf (root_list != NULL, 10, ends ());
root_list[0] = fil_sreadU32 (Block + 0x30);
for (len = 1; root_list[len - 1] != 0xfffffffeUL; len++)
{
test_exitf (len != 0, 5, ends ()); /* means file is too long */
/* if memory allocated in root_list is all used, allocate more memory */
if (!(len % ENTRYCHUNK))
{
U32 *newspace;
newspace = realloc (root_list,
(1 + len / ENTRYCHUNK) * ENTRYCHUNK * 4);
test_exitf (newspace != NULL, 10, ends ());
root_list = newspace;
}
root_list[len] = fil_sreadU32 (BDepot + (root_list[len - 1] * 4));
test_exitf (root_list[len] != 0xfffffffdUL && root_list[len] !=
0xffffffffUL, 5, ends ());
}
len--;
verboseU32Array (root_list, len+1);
/* read in root block depot */
verbose ("read in root block depot (Root)");
Root = (U8 *) malloc (0x0200 * len);
test_exitf (Root != NULL, 10, ends ());
s = Root;
for (i = 0; i < len; i++)
{
FilePos = 0x0200 * (root_list[i] + 1);
assert (FilePos >= 0);
test_exitf (!fseek (input, FilePos, SEEK_SET), 5, ends ());
fread (s, 0x0200, 1, input);
test_exitf (!ferror (input), 5, ends ());
s += 0x200;
}
verboseU8Array (Root, len, 0x0200);
/* assign space for pps list */
verbose ("read pps list");
num_of_pps = len * 4; /* each sbd block have 4 pps */
*stream_list = pps_list = (pps_entry *)malloc(num_of_pps*sizeof(pps_entry));
test_exitf (pps_list != NULL, 10, ends ());
/* read pss entry details and look out for "Root Entry" */
verbose ("read pps entry details");
for (i = 0; i < num_of_pps; i++)
{
U16 size_of_name;
s = Root + (i * 0x80);
/* read the number */
pps_list[i].ppsnumber = i;
/* read the name */
size_of_name = (U16)MIN (0x40, fil_sreadU16 (s + 0x40));
pps_list[i].name[0] = 0;
if (size_of_name == 0)
continue;
for (p = (U8 *) pps_list[i].name, t = s;
t < s + size_of_name; t++)
*p++ = *t++;
/* makes visible the non printable first character */
/* if (!isprint (pps_list[i].name[0]) && pps_list[i].name[0])
pps_list[i].name[0] += 'a'; */
/* read the pps type */
pps_list[i].type = *(s + 0x42);
if (pps_list[i].type == 5)
{
assert (i == 0);
*root = i; /* this pps is the root */
}
/* read the others fields */
pps_list[i].previous = fil_sreadU32 (s + 0x44);
pps_list[i].next = fil_sreadU32 (s + 0x48);
pps_list[i].dir = fil_sreadU32 (s + 0x4c);
pps_list[i].start = fil_sreadU32 (s + 0x74);
pps_list[i].size = fil_sreadU32 (s + 0x78);
pps_list[i].seconds1 = fil_sreadU32 (s + 0x64);
pps_list[i].seconds2 = fil_sreadU32 (s + 0x6c);
pps_list[i].days1 = fil_sreadU32 (s + 0x68);
pps_list[i].days2 = fil_sreadU32 (s + 0x70);
}
/* NEXT IS VERBOSE verbose */
#ifdef VERBOSE
{
U32 i;
printf ("before reorder pps tree\n");
printf ("pps type prev next dir start level size name\n");
for (i = 0; i < num_of_pps; i++)
{
if (!pps_list[i].name[0])
{
printf (" -\n");
continue;
}
printf ("%08lx ", pps_list[i].ppsnumber);
printf ("%d ", pps_list[i].type);
printf ("%08lx ", pps_list[i].previous);
printf ("%08lx ", pps_list[i].next);
printf ("%08lx ", pps_list[i].dir);
printf ("%08lx ", pps_list[i].start);
printf ("%04x ", pps_list[i].level);
printf ("%08lx ", pps_list[i].size);
printf ("'%c", !isprint (pps_list[i].name[0]) ? ' ' : pps_list[i].name[0]);
printf ("%s'\n", pps_list[i].name+1);
}
}
#endif
/* go through the tree made with pps entries, and reorder it so only the
next link is used (move the previous-link-children to the last visited
next-link-children) */
test_exitf (reorder_pps_tree (&pps_list[*root], 0), 9, ends ());
/* NEXT IS VERBOSE verbose */
#ifdef VERBOSE
{
U32 i;
printf ("after reorder pps tree\n");
printf ("pps type prev next dir start level size name\n");
for (i = 0; i < num_of_pps; i++)
{
if (!pps_list[i].name[0])
{
printf (" -\n");
continue;
}
printf ("%08lx ", pps_list[i].ppsnumber);
printf ("%d ", pps_list[i].type);
printf ("%08lx ", pps_list[i].previous);
printf ("%08lx ", pps_list[i].next);
printf ("%08lx ", pps_list[i].dir);
printf ("%08lx ", pps_list[i].start);
printf ("%04x ", pps_list[i].level);
printf ("%08lx ", pps_list[i].size);
printf ("'%c", !isprint (pps_list[i].name[0]) ? ' ' : pps_list[i].name[0]);
printf ("%s\n", pps_list[i].name+1);
}
}
/* NEXT IS VERBOSE verbose */
verbosePPSTree (pps_list, *root, 0);
#endif
/* generates pps real files */
/* NOTE: by this moment, the pps tree,
wich is made with pps_list entries, is reordered */
verbose ("create pps files");
{
U8 *Depot;
FILE *OLEfile, *infile;
U16 BlockSize, Offset;
size_t bytes_to_read;
U32 pps_size, pps_start;
assert (num_of_pps >= 1);
/* i < 1 --- before i < num_of_pps --- changed so not to generate the
real files by now --- cole 2.0.0 */
/* may be later we can rewrite this code in order to only extract the
sbfile, may be using __cole_extract_file call to avoid duplicated
code --- cole 2.0.0 */
for (i = 0; i < 1; i++)
{
pps_list[i].filename[0] = 0;
/* storage pps and non-valid-pps (except root) does not need files */
/* because FlashPix file format have a root of type 5 but with no name,
we must to check if the non-valid-pps is root */
if (pps_list[i].type == 1
|| (!pps_list[i].name[0] && pps_list[i].type != 5))
continue;
/* pps that have level > max_level will not be extracted */
if (max_level != 0 && pps_list[i].level > max_level)
continue;
pps_size = pps_list[i].size;
pps_start = pps_list[i].start;
/* FIXME MARK 2 */
/* How we get sure pps_start doesn't point to a block bigger than the
real file (input of sbfile) have? */
/* create the new file */
if (pps_list[i].type == 5)
/* root entry, sbfile must be generated */
{
if (SDepot == NULL) {
/* if there are not small blocks, not generate sbfile */
*_sbfilename = NULL;
*_sbfile = NULL;
break;
}
assert (i == *root);
assert (i == 0);
/* tmpnam (sbfile) and next calls --- commented out so not to
generate the real files by now --- sbfilename is stored in
*_sbfilename instead --- cole 2.0.0
*/
/*
tmpnam (sbfilename);
test_exitf (sbfilename[0], 7, ends ());
sbfile = OLEfile = fopen (sbfilename, "wb+");
test_exitf (OLEfile != NULL, 7, ends ());
verboseS (sbfilename);
*/
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
*_sbfilename = (U8 *)malloc (TMPNAM_LEN);
test_exitf (*_sbfilename != NULL, 10, ends ());
tmpnam (*_sbfilename);
test_exitf (*_sbfilename[0], 7, ends ());
sbfile = OLEfile = fopen (*_sbfilename, "w+b");
#else
{
int ret;
*_sbfilename = (U8 *)malloc (TMPNAM_LEN);
test_exitf (*_sbfilename != NULL, 10, ends ());
strcpy(*_sbfilename, "/tmp/xlHtmlXXXXXX");
ret = mkstemp(*_sbfilename);
if (ret == -1) {
free(*_sbfilename);
test_exitf (ret == -1, 7, ends ());
}
sbfile = OLEfile = fdopen(ret, "w+b");
/* unlink() is called so this file deletes when we are done with it */
unlink(*_sbfilename);
}
#endif
*_sbfile = sbfile;
test_exitf (OLEfile != NULL, 7, ends ());
verboseS (*_sbfilename);
}
else
/* other entry, save in a file */
{
/* this branch is never executed now */
#if defined( __WIN32__ ) || defined( __BORLANDC__ )
tmpnam (pps_list[i].filename);
test_exitf (pps_list[i].filename[0], 7, ends ());
verbose(pps_list[i].name + (!isprint(pps_list[i].name[0]) ? 1 : 0));
OLEfile = fopen (pps_list[i].filename, "wb");
#else
int ret;
strcpy(pps_list[i].filename, "/tmp/xlHtmlXXXXXX");
ret = mkstemp(pps_list[i].filename);
test_exitf (ret == -1, 7, ends ());
OLEfile = fdopen(ret, "wb");
#endif
test_exitf (OLEfile != NULL, 7, ends ());
verbose (pps_list[i].filename);
}
if (pps_size >= 0x1000 /*is in bbd */ ||
OLEfile == sbfile /*is root */ )
{
/* read from big block depot */
Offset = 1;
BlockSize = 0x0200;
assert (input != NULL);
assert (BDepot != NULL);
infile = input;
Depot = BDepot;
}
else
{
/* read from small block file */
Offset = 0;
BlockSize = 0x40;
assert (sbfile != NULL);
assert (SDepot != NULL);
infile = sbfile;
Depot = SDepot;
}
/* -2 signed long int == 0xfffffffe unsinged long int */
while (pps_start != 0xfffffffeUL)
{
#ifdef VERBOSE
printf ("reading pps %08lx block %08lx from %s\n",
pps_list[i].ppsnumber, pps_start,
Depot == BDepot ? "big block depot" : "small block depot");
#endif
FilePos = (pps_start + Offset) * BlockSize;
assert (FilePos >= 0);
bytes_to_read = MIN ((U32)BlockSize, pps_size);
fseek (infile, FilePos, SEEK_SET);
fread (Block, bytes_to_read, 1, infile);
test_exitf (!ferror (infile), 5, ends ());
fwrite (Block, bytes_to_read, 1, OLEfile);
test_exitf (!ferror (infile), 5, ends ());
pps_start = fil_sreadU32 (Depot + (pps_start * 4));
pps_size -= MIN ((U32)BlockSize, pps_size);
if (pps_size == 0)
pps_start = 0xfffffffeUL;
}
if (OLEfile == sbfile)
/* if small block file generated */
rewind (OLEfile); /* rewind because we will read it later */
/*else if (!fclose (OLEfile))*/ /* close the pps file */
/* don't know what to do here */
/*;*/
}
/* if (sbfile != NULL) --- commented out so conservate sbfile
open --- cole 2.0.0 */
/*
if (sbfile != NULL)
{
fclose (sbfile);
if (!remove (sbfilename)) ;
sbfile = NULL;
}
*/
}
ends ();
return 0;
}
/* reorder pps tree and write levels */
/* not sure if it is safe declare last_next_link_visited
inside reorder_pps_tree function */
static U32 *last_next_link_visited;
static int reorder_pps_tree (pps_entry * node, U16 level)
{
/* NOTE: in next, previous and dir link,
0xffffffff means point to nowhere (NULL) */
node->level = level;
/* reorder subtrees, if there's any */
if (node->dir != 0xffffffffUL)
{
if (node->dir > num_of_pps || !pps_list[node->dir].name[0])
return 0;
else if (!reorder_pps_tree (&pps_list[node->dir], (U16)(level + 1)))
return 0;
}
/* reorder next-link subtree, saving the most next link visited */
if (node->next != 0xffffffffUL)
{
if (node->next > num_of_pps || !pps_list[node->next].name[0])
return 0;
else if (!reorder_pps_tree (&pps_list[node->next], level))
return 0;
}
else
last_next_link_visited = &node->next;
/* move the prev child to the next link and reorder it, if there's any */
if (node->previous != 0xffffffffUL)
{
if (node->previous > num_of_pps || !pps_list[node->previous].name[0])
return 0;
else
{
*last_next_link_visited = node->previous;
node->previous = 0xffffffffUL;
if (!reorder_pps_tree (&pps_list[*last_next_link_visited], level))
return 0;
}
}
return 1;
}
/* verbose pps tree */
static void verbosePPSTree (pps_entry * pps_list, U32 start_entry, int level)
{
U32 entry;
int i;
#if __GNUC__ == 2
static char cff[] = "cole235711";
#define nextff(var) static void * nextff_var = (&nextff_var); \
nextff_var=&var;
nextff (cff);
#endif
for (entry = start_entry; entry != 0xffffffffUL; entry = pps_list[entry].next)
{
if (pps_list[entry].type == 2)
{
for (i = 0; i < level * 3; i++)
printf (" ");
printf ("FILE %02lx %8ld '%c%s'\n", pps_list[entry].ppsnumber,
pps_list[entry].size, !isprint((int)pps_list[entry].name[0]) ? ' ' : pps_list[entry].name[0], pps_list[entry].name+1);
}
else
{
for (i = 0; i < level * 3; i++)
printf (" ");
printf ("DIR %02lx '%c%s'\n", pps_list[entry].ppsnumber,
!isprint((int)pps_list[entry].name[0]) ? ' ' : pps_list[entry].name[0], pps_list[entry].name+1);
verbosePPSTree (pps_list, pps_list[entry].dir, level + 1);
}
}
}
/* closeOLEtreefiles --- outdated because not to generate the
real files by now --- cole 2.0.0 */
/*
#define freeNoNULL(x) { if ((x) != NULL) free (x); }
static int errorClosingTreeFiles;
void
closeOLEtreefiles (pps_entry * tree, U32 root)
{
#ifdef VERBOSE
printf ("Visiting entry 0x%08lx to erase file\n",
tree[root].ppsnumber);
#endif
if (tree[root].previous != 0xffffffffUL)
closeOLEtreefiles (tree, tree[root].previous);
if (tree[root].next != 0xffffffffUL)
closeOLEtreefiles (tree, tree[root].next);
if (tree[root].type != 2 && tree[root].dir != 0xffffffffUL)
{
#ifdef VERBOSE
printf ("Going down to directory 0x%08lx to erase files\n",
tree[root].dir);
#endif
closeOLEtreefiles (tree, tree[root].dir);
}
else if (tree[root].type == 2)
if (!remove (tree[root].filename))
{
#ifdef VERBOSE
printf ("Success removing %s\n", tree[root].filename);
#endif
}
else
{
#ifdef VERBOSE
printf ("Failed to remove %s\n", tree[root].filename);
#endif
errorClosingTreeFiles = 1;
}
}
*/
/* freeOLEtree is now useless: it only free tree -- cole 2.0.0 */
/*
Free all the memory allocated in the tree.
Output: 0 = Sucess.
. 6 = Error removing some temporal stream files.
*/
/*
int freeOLEtree (pps_entry * tree);
*/
/*
int
freeOLEtree (pps_entry * tree)
{
*/
/* errorCloseingTreeFiles --- doesn't exists because closeOLEtreefiles
was outdated because not to generate the real files by
now --- cole 2.0.0 */
/*
errorClosingTreeFiles = 0;
*/
/*
if (tree != NULL)
{
*/
/* closeOLEtreefiles --- outdated because not to generate the
real files by now --- cole 2.0.0 */
/*
closeOLEtreefiles (tree, 0);
*/
/*
free (tree);
}
*/
/* errorCloseingTreeFiles --- doesn't exists because closeOLEtreefiles
was outdated because not to generate the real files by
now --- cole 2.0.0 */
/*return*/ /* errorClosingTreeFiles ? 6 : */ /*0;*/
/*}*/
/* free memory used (except the pps tree) */
#define freeNoNULL(x) { if ((x) != NULL) free (x); }
static void ends (void)
{
/* if (input != NULL) and next lines --- commented out so conservate input
file open --- cole 2.0.0 */
/*
if (input != NULL)
fclose (input);
*/
freeNoNULL (Block);
freeNoNULL (Blockx);
/* freeNoNULL (BDepot) and next line --- commented out so conservate
depots --- cole 2.0.0 */
/*
freeNoNULL (BDepot);
freeNoNULL (SDepot);
*/
freeNoNULL (Root);
freeNoNULL (sbd_list);
freeNoNULL (root_list);
/* if (sbfile != NULL) and next lines --- commented out so conservate sbfile
open --- cole 2.0.0 */
/*
if (sbfile != NULL)
{
fclose (sbfile);
if (!remove (sbfilename)) ;
}
*/
}
#undef VERBOSE

169
cole/support.c Normal file
View File

@ -0,0 +1,169 @@
/*
Support - Provides some big and little endian abstraction functions,
besides another things.
Copyright (C) 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
/*
Some code was from Caolan, but I have replaced all the code,
now all code here is mine, so I changed copyright announce in cole-1.0.0.
Arturo Tena
*/
#include "support.h"
U16
fil_sreadU16 (U8 * in)
{
#ifdef WORDS_BIGENDIAN
U16 ret;
*( (U8*)(&ret) ) = *(in+1);
*( ((U8*)(&ret)) + 1 ) = *in;
return ret;
#else /* !WORDS_BIGENDIAN */
return *((U16 *)in);
#endif
}
U32
fil_sreadU32 (U8 * in)
{
#ifdef WORDS_BIGENDIAN
U32 ret;
*( ((U8*)(&ret)) + 3 ) = *in;
*( ((U8*)(&ret)) + 2 ) = *(in+1);
*( ((U8*)(&ret)) + 1 ) = *(in+2);
*( (U8*)(&ret) ) = *(in+3);
return ret;
#else /* !WORDS_BIGENDIAN */
return *((U32 *)in);
#endif
}
F64
fil_sreadF64 (U8 * in)
{
#ifdef WORDS_BIGENDIAN
F64 ret;
*( ((U8*)(&ret)) + 7 ) = *in;
*( ((U8*)(&ret)) + 6 ) = *(in+1);
*( ((U8*)(&ret)) + 5 ) = *(in+2);
*( ((U8*)(&ret)) + 4 ) = *(in+3);
*( ((U8*)(&ret)) + 3 ) = *(in+4);
*( ((U8*)(&ret)) + 2 ) = *(in+5);
*( ((U8*)(&ret)) + 1 ) = *(in+6);
*( (U8*)(&ret) ) = *(in+7);
return ret;
#else /* !WORDS_BIGENDIAN */
return *((F64 *)in);
#endif
}
void
fil_swriteU16 (U8 * dest, U16 * src)
{
#ifdef WORDS_BIGENDIAN
*(dest) = *(((U8*)src)+1);
*(dest+1) = *((U8*)src);
#else /* !WORDS_BIGENDIAN */
*(dest) = *((U8*)src);
*(dest+1) = *(((U8*)src)+1);
#endif
}
void
fil_swriteU32 (U8 * dest, U32 * src)
{
#ifdef WORDS_BIGENDIAN
fil_swriteU16 (dest, ( U16* )( ((U8*)src)+2 ) );
fil_swriteU16 (dest+2, (U16*)src);
#else /* !WORDS_BIGENDIAN */
fil_swriteU16 (dest, (U16*)src);
fil_swriteU16 (dest+2, ( U16* )( ((U8*)src)+2 ) );
#endif
}
/*-*
@func (void) __cole_dump dump the content of memory
@param (void *) m memory position which content will be dumped
@param (void *) start memory position from where calculate
offset
@param (int) length size in bytes of the dumped memory
@param (char *) msg optional message, can be NULL
*-*/
void
__cole_dump (void *_m, void *_start, int length, char *msg)
{
unsigned char * pm;
char buff[18];
long achar;
unsigned char * m;
unsigned char * start;
if (_m == NULL) {
printf ("VERBOSE: can't dump because m is NULL\n");
return;
}
if (_start == NULL) {
printf ("VERBOSE: can't dump because start is NULL\n");
return;
}
m = (unsigned char *)_m;
start = (unsigned char *)_start;
buff[8] = '-';
buff[17] = 0;
if (msg != NULL)
printf ("VERBOSE: %s (from 0x%08x length 0x%08x (%d)):\n",
msg, m - start, length, length);
for (pm = m; pm - m < length; pm++) {
achar = (pm - m) % 16;
/* print offset */
if (achar == 0)
printf ("%08x ", (pm - m) + (m - start));
/* write char in the right column buffer */
buff[achar + (achar < 8 ? 0 : 1)] = (char)((isprint (*pm) ? *pm : '.'));
/* print next char */
if (! ((pm - m + 1) % 16))
/* print right column */
printf ("%02x %s\n", *pm, buff);
else if (! ((pm - m + 1) % 8))
printf ("%02x-", *pm);
else
printf ("%02x ", *pm);
}
achar = (pm - m) % 16;
if (achar) {
int i;
for (i = 0; i < (16 - achar) * 3 - 1; i++)
printf (" ");
if (achar != 8)
buff [achar] = 0;
printf (" %s\n", buff);
}
}

259
cole/support.h Normal file
View File

@ -0,0 +1,259 @@
/*
Support - Provides some big and little endian abstraction functions.
Copyright (C) 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
/*
Some code was from Caolan, but I have replaced all the code,
now all code here is mine, so I changed copyright announce in cole-1.0.0.
Arturo Tena
*/
#ifndef COLE_SUPPORT_H
#define COLE_SUPPORT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ctype.h>
#include <stdio.h>
#if !(defined( __BORLANDC__ ) || defined( __WIN32__ ))
#include "config.h"
/* F32 */
#if SIZEOF_FLOAT == 4
#define F32 float
#elif SIZEOF_DOUBLE == 4
#define F32 double
#elif SIZEOF_LONG_DOUBLE == 4
#define F32 long double
#else
#error No 4 byte length float type found.
#endif
/* F64 */
#if SIZEOF_DOUBLE == 8
#define F64 double
#elif SIZEOF_LONG_DOUBLE == 8
#define F64 long double
#else
#error No 8 byte length float type found.
#endif
/* U8 */
#if SIZEOF_UNSIGNED_CHAR == 1
#define U8 unsigned char
#else
#error No 1 byte length type found.
#error Char is not a byte! Mmmh... maybe you need another compiler.
#endif
/* U16 */
#if SIZEOF_UNSIGNED_INT == 2
#define U16 unsigned int
#elif SIZEOF_UNSIGNED_SHORT == 2
#define U16 unsigned short
#elif SIZEOF_UNSIGNED_LONG == 2
#define U16 unsigned long
#else
#error No 2 byte length type found.
#endif
/* S16 */
#if SIZEOF_UNSIGNED_INT == 2
#define S16 signed int
#elif SIZEOF_UNSIGNED_SHORT == 2
#define S16 signed short
#elif SIZEOF_UNSIGNED_LONG == 2
#define S16 signed long
#else
#error No 2 byte length type found.
#endif
/* U32 */
#if SIZEOF_UNSIGNED_LONG == 4
#define U32 unsigned long
#elif SIZEOF_UNSIGNED_INT == 4
#define U32 unsigned int
#elif SIZEOF_UNSIGNED_LONG_LONG == 4
#define U32 unsigned long long
#else
#error No 4 byte length type found.
#endif
/* S32 */
#if SIZEOF_UNSIGNED_LONG == 4
#define S32 signed long
#elif SIZEOF_UNSIGNED_INT == 4
#define S32 signed int
#elif SIZEOF_UNSIGNED_LONG_LONG == 4
#define S32 signed long long
#else
#error No 4 byte length type found.
#endif
#else
/* Borland or Wintel constants */
#define F32 float
#define F64 double
#define U8 unsigned char
#define U16 unsigned short
#define S16 signed short
#define U32 unsigned long
#define S32 signed long
#endif
U16 fil_sreadU16 (U8 * in);
U32 fil_sreadU32 (U8 * in);
F64 fil_sreadF64 (U8 * in);
void fil_swriteU16 (U8 * dest, U16 * src);
void fil_swriteU32 (U8 * dest, U32 * src);
void __cole_dump (void *_m, void *_start, int length, char *msg);
#define verbose_return() \
{ \
verbose_wonl ("returning from "); \
verbose_wonl (__FILE__); \
verbose_wonl (":"); \
verbose_d (__LINE__); \
}
#define test(t,retval) \
{ \
if (!(t)) \
{ \
verbose_return (); \
return retval; \
} \
}
#define test_exitf(t,retval,func) \
{ \
if (!(t)) \
{ \
func; \
verbose_return (); \
return (retval); \
} \
}
#define test_call(t,typeretval) \
{ \
typeretval retval; \
retval = (t); \
if (retval) \
{ \
verbose_return () \
return (retval); \
} \
}
#define test_call_exitf(t,typeretval,func) \
{ \
typeretval retval; \
retval = (t); \
if (retval) \
{ \
func; \
verbose_return () \
return (retval); \
} \
}
#define report_bug(prog) \
{ \
fprintf (stderr, #prog": A bug have been found: %s:%d\n"#prog \
":Please, download a most recent version and try again\n", \
__FILE__, __LINE__); \
}
#define assert_return(prog,t,retval) \
{ \
if (!(t)) \
{ \
fprintf (stderr, #prog": Condition "#t" is not valid: %s:%d\n", \
__FILE__, __LINE__); \
report_bug (prog); \
return (retval); \
} \
}
#ifdef VERBOSE
#define verbose_d(n) { printf ("%d\n", n); }
#define verbose(s) { puts(s); }
#define verbose_wonl(s) { printf (s); }
#define verboseU8(expr) { printf (#expr " = 0x%02x\n", expr); }
#define verboseU16(expr) { printf (#expr " = 0x%04x\n", expr); }
#define verboseU32(expr) { printf (#expr " = 0x%08x\n", expr); }
#define verboseS(expr) { printf (#expr " = %s\n", expr); }
#define verboseS_wonl(expr) { printf (#expr " = %s", expr); }
#define warning(t) { if (!(t)) printf ("warning: %s is false\n", #t); }
#else /* ifndef VERBOSE */
#define verbose_d(n) ;
#define verbose(s) ;
#define verbose_wonl(s) ;
#define verboseU8(expr) ;
#define verboseU16(expr) ;
#define verboseU32(expr) ;
#define verboseS(expr)
#define verboseS_wonl(expr)
#define warning(t)
#endif /* ifdef VERBOSE */
#ifdef VERBOSE
#define verboseU32Array(array,len) \
{ \
U32 temp; \
for (temp = 0; temp < len; temp++) \
printf (#array "[%lu] = 0x%08lx\n", temp, array [temp]); \
}
#else
#define verboseU32Array(array,len)
#endif
#define verboseU8Array_force(rec,len,reclen) \
__cole_dump ((rec), (rec), ((len)*(reclen)), "");
#ifdef VERBOSE
#define verboseU8Array(rec,len,reclen) verboseU8Array_force(rec,len,reclen)
#else
#define verboseU8Array(rec,len,reclen)
#endif
#ifdef __cplusplus
}
#endif
#endif /* COLE_SUPPORT_H */

7
cole/utils/Makefile.am Normal file
View File

@ -0,0 +1,7 @@
## Process this file with automake to produce Makefile.in
INCLUDES = -I$(top_srcdir)
LDADD = $(top_builddir)/libcole.la
noinst_PROGRAMS = cole_tree cole_isfs cole_isfs_fast cole_extract

328
cole/utils/Makefile.in Normal file
View File

@ -0,0 +1,328 @@
# Makefile.in generated automatically by automake 1.4 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
COLE_MAJOR = @COLE_MAJOR@
COLE_MICRO = @COLE_MICRO@
COLE_MINOR = @COLE_MINOR@
DLLTOOL = @DLLTOOL@
HOST_ALIAS_NAME = @HOST_ALIAS_NAME@
HOST_CANONICAL_NAME = @HOST_CANONICAL_NAME@
HOST_CPU = @HOST_CPU@
HOST_OS = @HOST_OS@
HOST_VENDOR = @HOST_VENDOR@
LD = @LD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
NM = @NM@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
VERSION_INFO = @VERSION_INFO@
INCLUDES = -I$(top_srcdir)
LDADD = $(top_builddir)/libcole.la
noinst_PROGRAMS = cole_tree cole_isfs cole_isfs_fast cole_extract
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(noinst_PROGRAMS)
DEFS = @DEFS@ -I. -I$(srcdir) -I..
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
cole_tree_SOURCES = cole_tree.c
cole_tree_OBJECTS = cole_tree.o
cole_tree_LDADD = $(LDADD)
cole_tree_DEPENDENCIES = $(top_builddir)/libcole.la
cole_tree_LDFLAGS =
cole_isfs_SOURCES = cole_isfs.c
cole_isfs_OBJECTS = cole_isfs.o
cole_isfs_LDADD = $(LDADD)
cole_isfs_DEPENDENCIES = $(top_builddir)/libcole.la
cole_isfs_LDFLAGS =
cole_isfs_fast_SOURCES = cole_isfs_fast.c
cole_isfs_fast_OBJECTS = cole_isfs_fast.o
cole_isfs_fast_LDADD = $(LDADD)
cole_isfs_fast_DEPENDENCIES = $(top_builddir)/libcole.la
cole_isfs_fast_LDFLAGS =
cole_extract_SOURCES = cole_extract.c
cole_extract_OBJECTS = cole_extract.o
cole_extract_LDADD = $(LDADD)
cole_extract_DEPENDENCIES = $(top_builddir)/libcole.la
cole_extract_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
SOURCES = cole_tree.c cole_isfs.c cole_isfs_fast.c cole_extract.c
OBJECTS = cole_tree.o cole_isfs.o cole_isfs_fast.o cole_extract.o
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps utils/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-noinstPROGRAMS:
clean-noinstPROGRAMS:
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
distclean-noinstPROGRAMS:
maintainer-clean-noinstPROGRAMS:
.c.o:
$(COMPILE) -c $<
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
.c.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.s.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.S.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
maintainer-clean-libtool:
cole_tree: $(cole_tree_OBJECTS) $(cole_tree_DEPENDENCIES)
@rm -f cole_tree
$(LINK) $(cole_tree_LDFLAGS) $(cole_tree_OBJECTS) $(cole_tree_LDADD) $(LIBS)
cole_isfs: $(cole_isfs_OBJECTS) $(cole_isfs_DEPENDENCIES)
@rm -f cole_isfs
$(LINK) $(cole_isfs_LDFLAGS) $(cole_isfs_OBJECTS) $(cole_isfs_LDADD) $(LIBS)
cole_isfs_fast: $(cole_isfs_fast_OBJECTS) $(cole_isfs_fast_DEPENDENCIES)
@rm -f cole_isfs_fast
$(LINK) $(cole_isfs_fast_LDFLAGS) $(cole_isfs_fast_OBJECTS) $(cole_isfs_fast_LDADD) $(LIBS)
cole_extract: $(cole_extract_OBJECTS) $(cole_extract_DEPENDENCIES)
@rm -f cole_extract
$(LINK) $(cole_extract_LDFLAGS) $(cole_extract_OBJECTS) $(cole_extract_LDADD) $(LIBS)
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = utils
distdir: $(DISTFILES)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
mostlyclean-libtool mostlyclean-tags \
mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-noinstPROGRAMS distclean-compile \
distclean-libtool distclean-tags distclean-generic \
clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

95
cole/utils/cole_extract.c Normal file
View File

@ -0,0 +1,95 @@
/*
cole - A free C OLE library.
cole_extract - Extract a file from a filesystem.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
/* To compile this file outside cole source tree,
you must include here <cole/cole.h> instead <cole.h> */
#include <cole.h>
#define PRGNAME "cole_extract"
#define BUFFER_SIZE 128
int
main (int argc, char **argv)
{
COLEFS *cfs;
COLEFILE *cf;
COLERRNO colerrno;
char buffer[BUFFER_SIZE];
size_t char_read;
if (argc != 3) {
fprintf (stderr, "cole_extract. Extract a file from a "
"filesystem to the standard output.\n"
"Usage: "PRGNAME" <FILE> <INFILE>\n"
" FILE - File with the filesystem.\n"
" INFILE - Filename of the file to extract.\n");
exit (1);
}
cfs = cole_mount (argv[1], &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
cf = cole_fopen (cfs, argv[2], &colerrno);
if (cf == NULL) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
while ((char_read = cole_fread (cf, buffer, BUFFER_SIZE, &colerrno))) {
if (fwrite (buffer, 1, char_read, stdout) != char_read) {
break;
}
}
if (!cole_feof (cf)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_fclose (cf, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
exit (0);
}

75
cole/utils/cole_isfs.c Normal file
View File

@ -0,0 +1,75 @@
/*
cole - A free C OLE library.
cole_isfs - Guess if a file is a valid filesystem.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
/* To compile this file outside cole source tree,
you must include here <cole/cole.h> instead <cole.h> */
#include <cole.h>
#define PRGNAME "cole_isfs"
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLERRNO colerrno;
if (argc != 2) {
fprintf (stderr, PRGNAME". Prints `yes' if the file is a "
"valid filesystem, otherwise it prints `no'.\n"
"Usage: "PRGNAME" <FILE>\n");
exit (1);
}
cfs = cole_mount (argv[1], &colerrno);
if (cfs == NULL) {
switch (colerrno) {
case COLE_ENOFILESYSTEM:
case COLE_EINVALIDFILESYSTEM:
printf ("no\n");
break;
case COLE_EMEMORY:
case COLE_EOPENFILE:
case COLE_EUNKNOWN:
default:
cole_perror (PRGNAME, colerrno);
break;
}
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
printf ("yes\n");
exit (0);
}

View File

@ -0,0 +1,77 @@
/*
cole - A free C OLE library.
cole_isfs_fast - Fast guess if a file is a valid filesystem.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
/* To compile this file outside cole source tree,
you must include here <cole/cole.h> instead <cole.h> */
#include <cole.h>
#define PRGNAME "cole_isfs_fast"
int
main (int argc, char **argv)
{
FILE *file;
unsigned char sign[8];
if (argc != 2) {
fprintf (stderr, PRGNAME". Prints `yes' if the file is a "
"valid filesystem, otherwise it prints `no'. "
"The test is not much accurate.\n"
"Usage: "PRGNAME" <FILE>\n");
exit (1);
}
file = fopen (argv[1], "rb");
if (file == NULL) {
perror (PRGNAME);
exit (1);
}
fread (sign, 1, 8, file);
if ( sign[0] != 0xd0
|| sign[1] != 0xcf
|| sign[2] != 0x11
|| sign[3] != 0xe0
|| sign[4] != 0xa1
|| sign[5] != 0xb1
|| sign[6] != 0x1a
|| sign[7] != 0xe1) {
printf ("no\n");
fclose (file);
exit (1);
}
fclose (file);
printf ("yes\n");
exit (0);
}

68
cole/utils/cole_tree.c Normal file
View File

@ -0,0 +1,68 @@
/*
cole - A free C OLE library.
cole_tree - Prints the tree of a filesystem.
Copyright 1998, 1999 Roberto Arturo Tena Sanchez
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
*/
/*
Arturo Tena <arturo@directmail.org>
*/
#include <stdio.h>
/* To compile this file outside cole source tree,
you must include here <cole/cole.h> instead <cole.h> */
#include <cole.h>
#define PRGNAME "cole_tree"
int
main (int argc, char **argv)
{
COLEFS * cfs;
COLERRNO colerrno;
if (argc != 2) {
fprintf (stderr, "cole_tree. Prints the tree of a filesystem.\n"
"Usage: "PRGNAME" <FILE>\n");
exit (1);
}
cfs = cole_mount (argv[1], &colerrno);
if (cfs == NULL) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
if (cole_print_tree (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
cole_umount (cfs, NULL);
exit (1);
}
if (cole_umount (cfs, &colerrno)) {
cole_perror (PRGNAME, colerrno);
exit (1);
}
exit (0);
}

13
cole/version.c.in Normal file
View File

@ -0,0 +1,13 @@
#ifndef __BORLANDC__
int cole_major_version = @COLE_MAJOR@;
int cole_minor_version = @COLE_MINOR@;
int cole_micro_version = @COLE_MICRO@;
char * cole_version = "@COLE_MAJOR@.@COLE_MINOR@.@COLE_MICRO@";
char * cole_host_info = "@HOST_ALIAS_NAME@ (@HOST_CANONICAL_NAME@): @HOST_CPU@, @HOST_VENDOR@, @HOST_OS@";
#else
int cole_major_version = 2;
int cole_minor_version = 0;
int cole_micro_version = 1;
char * cole_version = "2.0.1";
char * cole_host_info = "BORLANDC (Windows): i386, GPL, Win32";
#endif

1183
config.guess vendored Executable file

File diff suppressed because it is too large Load Diff

65
config.h.in Normal file
View File

@ -0,0 +1,65 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Name of package */
#undef PACKAGE
/* The size of a `double', as computed by sizeof. */
#undef SIZEOF_DOUBLE
/* The size of a `float', as computed by sizeof. */
#undef SIZEOF_FLOAT
/* The size of a `long double', as computed by sizeof. */
#undef SIZEOF_LONG_DOUBLE
/* The size of a `unsigned char', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_CHAR
/* The size of a `unsigned int', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_INT
/* The size of a `unsigned long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG
/* The size of a `unsigned long long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG_LONG
/* The size of a `unsigned short', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_SHORT
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define if your processor stores words with the most significant byte first
(like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t

30
config.log Normal file
View File

@ -0,0 +1,30 @@
## ----------------------- ##
## Running config.status. ##
## ----------------------- ##
This file was extended by config.status 2.50, executed with
> ./config.status
on moses
config.status:5395: creating ppthtml/Makefile
## ----------------------- ##
## Running config.status. ##
## ----------------------- ##
This file was extended by config.status 2.50, executed with
> ./config.status
on moses
config.status:5395: creating xlhtml/Makefile
## ----------------------- ##
## Running config.status. ##
## ----------------------- ##
This file was extended by config.status 2.50, executed with
> ./config.status
on moses
config.status:5395: creating cole/Makefile

1268
config.sub vendored Executable file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More