rollup commit
This commit is contained in:
12
cole/AUTHORS
12
cole/AUTHORS
@@ -1,6 +1,6 @@
|
||||
|
||||
Current maintainer:
|
||||
*******************
|
||||
|
||||
Charles Wyble <jackshck@thewybles.com>
|
||||
|
||||
|
||||
Current maintainer:
|
||||
*******************
|
||||
|
||||
Charles Wyble <jackshck@thewybles.com>
|
||||
|
||||
|
||||
680
cole/COPYING
680
cole/COPYING
@@ -1,340 +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.
|
||||
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.
|
||||
|
||||
148
cole/ChangeLog
148
cole/ChangeLog
@@ -1,74 +1,74 @@
|
||||
|
||||
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.
|
||||
Developer Level:
|
||||
+ 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.
|
||||
|
||||
|
||||
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.
|
||||
Developer Level:
|
||||
+ 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.
|
||||
|
||||
|
||||
@@ -1,6 +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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
552
cole/Makefile
552
cole/Makefile
@@ -1,276 +1,276 @@
|
||||
# Generated automatically from Makefile.in by configure.
|
||||
# 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 = /bin/sh
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
prefix = /usr/local
|
||||
exec_prefix = ${prefix}
|
||||
|
||||
bindir = ${exec_prefix}/bin
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
datadir = ${prefix}/share
|
||||
sysconfdir = ${prefix}/etc
|
||||
sharedstatedir = ${prefix}/com
|
||||
localstatedir = ${prefix}/var
|
||||
libdir = ${exec_prefix}/lib
|
||||
infodir = ${prefix}/info
|
||||
mandir = ${prefix}/man
|
||||
includedir = ${prefix}/include
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/xlhtml/xlhtml
|
||||
pkglibdir = $(libdir)/xlhtml/xlhtml
|
||||
pkgincludedir = $(includedir)/xlhtml/xlhtml
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = aclocal
|
||||
AUTOCONF = autoconf
|
||||
AUTOMAKE = automake
|
||||
AUTOHEADER = autoheader
|
||||
|
||||
INSTALL = /usr/bin/install -c
|
||||
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
transform = s,x,x,
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = x86_64-unknown-linux-gnu
|
||||
host_triplet =
|
||||
CC = gcc
|
||||
COLE_MAJOR = 2
|
||||
COLE_MICRO = 2
|
||||
COLE_MINOR = 0
|
||||
HOST_ALIAS_NAME = x86_64-unknown-linux-gnu
|
||||
HOST_CANONICAL_NAME =
|
||||
HOST_CPU =
|
||||
HOST_OS =
|
||||
HOST_VENDOR =
|
||||
MAKEINFO = makeinfo
|
||||
PACKAGE = xlhtml/xlhtml
|
||||
RANLIB = ranlib
|
||||
STRIP = strip
|
||||
VERSION = 0.5
|
||||
|
||||
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
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES = version.c cole.h
|
||||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
|
||||
|
||||
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
|
||||
CPPFLAGS =
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
libcole_a_LIBADD =
|
||||
libcole_a_OBJECTS = cole.o internal.o oledecod.o olecod.o support.o \
|
||||
version.o
|
||||
AR = ar
|
||||
CFLAGS = -g -O2
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = AUTHORS COPYING ChangeLog 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
|
||||
|
||||
#AM_CFLAGS = -Wall -Wcast-align -Wpointer-arith
|
||||
|
||||
# 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:
|
||||
# Generated automatically from Makefile.in by configure.
|
||||
# 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 = /bin/sh
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
prefix = /usr/local
|
||||
exec_prefix = ${prefix}
|
||||
|
||||
bindir = ${exec_prefix}/bin
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
datadir = ${prefix}/share
|
||||
sysconfdir = ${prefix}/etc
|
||||
sharedstatedir = ${prefix}/com
|
||||
localstatedir = ${prefix}/var
|
||||
libdir = ${exec_prefix}/lib
|
||||
infodir = ${prefix}/info
|
||||
mandir = ${prefix}/man
|
||||
includedir = ${prefix}/include
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/xlhtml/xlhtml
|
||||
pkglibdir = $(libdir)/xlhtml/xlhtml
|
||||
pkgincludedir = $(includedir)/xlhtml/xlhtml
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = aclocal
|
||||
AUTOCONF = autoconf
|
||||
AUTOMAKE = automake
|
||||
AUTOHEADER = autoheader
|
||||
|
||||
INSTALL = /usr/bin/install -c
|
||||
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
transform = s,x,x,
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = x86_64-unknown-linux-gnu
|
||||
host_triplet =
|
||||
CC = gcc
|
||||
COLE_MAJOR = 2
|
||||
COLE_MICRO = 2
|
||||
COLE_MINOR = 0
|
||||
HOST_ALIAS_NAME = x86_64-unknown-linux-gnu
|
||||
HOST_CANONICAL_NAME =
|
||||
HOST_CPU =
|
||||
HOST_OS =
|
||||
HOST_VENDOR =
|
||||
MAKEINFO = makeinfo
|
||||
PACKAGE = xlhtml/xlhtml
|
||||
RANLIB = ranlib
|
||||
STRIP = strip
|
||||
VERSION = 0.5
|
||||
|
||||
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
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES = version.c cole.h
|
||||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
|
||||
|
||||
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
|
||||
CPPFLAGS =
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
libcole_a_LIBADD =
|
||||
libcole_a_OBJECTS = cole.o internal.o oledecod.o olecod.o support.o \
|
||||
version.o
|
||||
AR = ar
|
||||
CFLAGS = -g -O2
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = AUTHORS COPYING ChangeLog 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
|
||||
|
||||
#AM_CFLAGS = -Wall -Wcast-align -Wpointer-arith
|
||||
|
||||
# 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:
|
||||
|
||||
@@ -1,8 +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
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# -w-8008 Disable warning "Condition is always true"
|
||||
# -q Disable copyright message
|
||||
#CFLAGS_DEBUG = -y -v
|
||||
CFLAGS = -w-8008 -q -DWIN32=1 -I.. $(CFLAGS_DEBUG)
|
||||
|
||||
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
|
||||
|
||||
all: cole.h cole.lib
|
||||
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.lib
|
||||
|
||||
cole.lib: $(OBJECTS)
|
||||
tlib cole.lib -+$(OBJECTS: = -+)
|
||||
|
||||
version.obj: version.win32.c
|
||||
$(CC) $(CFLAGS) -DCOMPILER=BC++ -c -o$@ $?
|
||||
|
||||
cole.h: cole.h.in
|
||||
copy $? $@
|
||||
|
||||
# eof
|
||||
|
||||
# -w-8008 Disable warning "Condition is always true"
|
||||
# -q Disable copyright message
|
||||
#CFLAGS_DEBUG = -y -v
|
||||
CFLAGS = -w-8008 -q -DWIN32=1 -I.. $(CFLAGS_DEBUG)
|
||||
|
||||
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
|
||||
|
||||
all: cole.h cole.lib
|
||||
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.lib
|
||||
|
||||
cole.lib: $(OBJECTS)
|
||||
tlib cole.lib -+$(OBJECTS: = -+)
|
||||
|
||||
version.obj: version.win32.c
|
||||
$(CC) $(CFLAGS) -DCOMPILER=BC++ -c -o$@ $?
|
||||
|
||||
cole.h: cole.h.in
|
||||
copy $? $@
|
||||
|
||||
# eof
|
||||
|
||||
|
||||
1120
cole/Makefile.in
1120
cole/Makefile.in
File diff suppressed because it is too large
Load Diff
@@ -1,21 +1,21 @@
|
||||
CFLAGS = /nologo /DWIN32=1 /I..
|
||||
|
||||
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
|
||||
|
||||
all: cole.h cole.lib
|
||||
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.lib
|
||||
|
||||
cole.lib: $(OBJECTS)
|
||||
lib /OUT:cole.lib $(OBJECTS)
|
||||
|
||||
version.obj: version.win32.c
|
||||
$(CC) $(CFLAGS) /DCOMPILER=BC++ /c /Fo$@ version.win32.c
|
||||
|
||||
cole.h: cole.h.in
|
||||
copy $? $@
|
||||
|
||||
# eof
|
||||
|
||||
CFLAGS = /nologo /DWIN32=1 /I..
|
||||
|
||||
OBJECTS = cole.obj internal.obj oledecod.obj olecod.obj support.obj version.obj
|
||||
|
||||
all: cole.h cole.lib
|
||||
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.lib
|
||||
|
||||
cole.lib: $(OBJECTS)
|
||||
lib /OUT:cole.lib $(OBJECTS)
|
||||
|
||||
version.obj: version.win32.c
|
||||
$(CC) $(CFLAGS) /DCOMPILER=BC++ /c /Fo$@ version.win32.c
|
||||
|
||||
cole.h: cole.h.in
|
||||
copy $? $@
|
||||
|
||||
# eof
|
||||
|
||||
|
||||
150
cole/NEWS
150
cole/NEWS
@@ -1,75 +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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
54
cole/THANKS
54
cole/THANKS
@@ -1,27 +1,27 @@
|
||||
|
||||
Thank you to everyone that has contributed to this project!
|
||||
|
||||
(If you can't find your name here, please email the current maintainer).
|
||||
|
||||
Thanks to:
|
||||
**********
|
||||
|
||||
The LAOLA guy: Martin Schwartz.
|
||||
Without his amazing hack into Structured Storage and Compound Files
|
||||
this work would have never been 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 used by cole
|
||||
in pre 1.x and 1.x releases.
|
||||
|
||||
|
||||
Thank you to everyone that has contributed to this project!
|
||||
|
||||
(If you can't find your name here, please email the current maintainer).
|
||||
|
||||
Thanks to:
|
||||
**********
|
||||
|
||||
The LAOLA guy: Martin Schwartz.
|
||||
Without his amazing hack into Structured Storage and Compound Files
|
||||
this work would have never been 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 used by cole
|
||||
in pre 1.x and 1.x releases.
|
||||
|
||||
|
||||
186
cole/TODO
186
cole/TODO
@@ -1,93 +1,93 @@
|
||||
|
||||
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.
|
||||
|
||||
* 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).
|
||||
|
||||
|
||||
|
||||
NOT URGENT:
|
||||
***********
|
||||
|
||||
* Use some package to discover uninitializated memory, use some profile
|
||||
package, etc.
|
||||
|
||||
* Use zlib to support compressed files.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.
|
||||
|
||||
* 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).
|
||||
|
||||
|
||||
|
||||
NOT URGENT:
|
||||
***********
|
||||
|
||||
* Use some package to discover uninitializated memory, use some profile
|
||||
package, etc.
|
||||
|
||||
* Use zlib to support compressed files.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,71 +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
|
||||
#! /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
|
||||
|
||||
2446
cole/cole.c
2446
cole/cole.c
File diff suppressed because it is too large
Load Diff
454
cole/cole.h
454
cole/cole.h
@@ -1,227 +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 2
|
||||
#define COLE_MINOR_VERSION 0
|
||||
#define COLE_MICRO_VERSION 2
|
||||
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 */
|
||||
|
||||
/*
|
||||
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 2
|
||||
#define COLE_MINOR_VERSION 0
|
||||
#define COLE_MICRO_VERSION 2
|
||||
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 */
|
||||
|
||||
|
||||
454
cole/cole.h.in
454
cole/cole.h.in
@@ -1,227 +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 */
|
||||
|
||||
/*
|
||||
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 */
|
||||
|
||||
|
||||
326
cole/doc/HACKING
326
cole/doc/HACKING
@@ -1,163 +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.
|
||||
|
||||
/*
|
||||
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.
|
||||
|
||||
|
||||
@@ -1,92 +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/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2html $(DOC_MAIN_SGML_FILE); \
|
||||
rm BUGS)
|
||||
rtf:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2rtf $(DOC_MAIN_SGML_FILE); \
|
||||
-rm BUGS)
|
||||
ps:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" | sed "s/&/&/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
|
||||
|
||||
## 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/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2html $(DOC_MAIN_SGML_FILE); \
|
||||
rm BUGS)
|
||||
rtf:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2rtf $(DOC_MAIN_SGML_FILE); \
|
||||
-rm BUGS)
|
||||
ps:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" | sed "s/&/&/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
|
||||
|
||||
|
||||
@@ -1,256 +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/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2html $(DOC_MAIN_SGML_FILE); \
|
||||
rm BUGS)
|
||||
rtf:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2rtf $(DOC_MAIN_SGML_FILE); \
|
||||
-rm BUGS)
|
||||
ps:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" | sed "s/&/&/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:
|
||||
# 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/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2html $(DOC_MAIN_SGML_FILE); \
|
||||
rm BUGS)
|
||||
rtf:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" > BUGS; \
|
||||
db2rtf $(DOC_MAIN_SGML_FILE); \
|
||||
-rm BUGS)
|
||||
ps:
|
||||
(cd $(srcdir); \
|
||||
cat ../BUGS | sed "s/>/>/g" | sed "s/</</g" | sed "s/&/&/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:
|
||||
|
||||
@@ -1,39 +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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,73 +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ánchez">
|
||||
<!entity maintainer-email-ulink "<ulink
|
||||
URL="mailto:arturo@directmail.org"
|
||||
><arturo@directmail.org></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>
|
||||
|
||||
<!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ánchez">
|
||||
<!entity maintainer-email-ulink "<ulink
|
||||
URL="mailto:arturo@directmail.org"
|
||||
><arturo@directmail.org></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
@@ -1,223 +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"
|
||||
><arturo@directmail.org></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"
|
||||
> 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... </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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Legal issues</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
><arturo@directmail.org></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"
|
||||
> 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... </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"
|
||||
> </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
@@ -1,137 +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
|
||||
<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
|
||||
>
|
||||
@@ -1,20 +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 }
|
||||
.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 }
|
||||
|
||||
@@ -1,199 +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
|
||||
<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
|
||||
>
|
||||
@@ -1,236 +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"
|
||||
> </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"
|
||||
> </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"
|
||||
> </TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
> </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"
|
||||
> </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"
|
||||
> </TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,385 +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
|
||||
<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
|
||||
>
|
||||
@@ -1,225 +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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,330 +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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>cole Library</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>cole Library</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,193 +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 © 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
|
||||
> — Public cole API for the present release.</DT
|
||||
><DT
|
||||
><A
|
||||
HREF="cole-internals.html"
|
||||
>Internals</A
|
||||
> — 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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="introduction.html"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Introduction</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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 © 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
|
||||
> — Public cole API for the present release.</DT
|
||||
><DT
|
||||
><A
|
||||
HREF="cole-internals.html"
|
||||
>Internals</A
|
||||
> — 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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
><A
|
||||
HREF="introduction.html"
|
||||
>Next</A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="left"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="34%"
|
||||
ALIGN="center"
|
||||
VALIGN="top"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Introduction</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,189 +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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Features</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Features</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,184 +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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Trademarks</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>Trademarks</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,273 +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
|
||||
> — Public cole API for the present release.</DT
|
||||
><DT
|
||||
><A
|
||||
HREF="cole-internals.html"
|
||||
>Internals</A
|
||||
> — 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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>API</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
<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
|
||||
> — Public cole API for the present release.</DT
|
||||
><DT
|
||||
><A
|
||||
HREF="cole-internals.html"
|
||||
>Internals</A
|
||||
> — 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"
|
||||
> </TD
|
||||
><TD
|
||||
WIDTH="33%"
|
||||
ALIGN="right"
|
||||
VALIGN="top"
|
||||
>API</TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
@@ -1,137 +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
|
||||
<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
|
||||
>
|
||||
@@ -1,147 +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"
|
||||
><arturo@directmail.org></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
|
||||
<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"
|
||||
><arturo@directmail.org></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
|
||||
>
|
||||
@@ -1,93 +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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,48 +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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,412 +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 -->
|
||||
|
||||
|
||||
<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 -->
|
||||
|
||||
|
||||
@@ -1,89 +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>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,60 +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>
|
||||
|
||||
|
||||
<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 +1 @@
|
||||
*.bak
|
||||
*.bak
|
||||
|
||||
@@ -1,434 +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:
|
||||
|
||||
|
||||
<!-- ##### 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:
|
||||
|
||||
|
||||
|
||||
@@ -1,75 +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:
|
||||
|
||||
<!-- ##### 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:
|
||||
|
||||
|
||||
@@ -1,284 +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:
|
||||
|
||||
|
||||
<!-- ##### 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:
|
||||
|
||||
|
||||
|
||||
@@ -1,33 +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>
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -1,11 +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
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
@@ -1,369 +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:
|
||||
# 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:
|
||||
|
||||
@@ -1,11 +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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -1,159 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,121 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,192 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,102 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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 */
|
||||
|
||||
/*
|
||||
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 */
|
||||
|
||||
|
||||
@@ -1,42 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
278
cole/internal.c
278
cole/internal.c
@@ -1,139 +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)
|
||||
#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)
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
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)
|
||||
#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)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
284
cole/internal.h
284
cole/internal.h
@@ -1,142 +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)
|
||||
#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 */
|
||||
|
||||
/*
|
||||
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)
|
||||
#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 */
|
||||
|
||||
|
||||
2516
cole/olecod.c
2516
cole/olecod.c
File diff suppressed because it is too large
Load Diff
1576
cole/oledecod.c
1576
cole/oledecod.c
File diff suppressed because it is too large
Load Diff
310
cole/support.c
310
cole/support.c
@@ -1,155 +1,155 @@
|
||||
/*
|
||||
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 <string.h>
|
||||
#include "support.h"
|
||||
|
||||
|
||||
U16
|
||||
fil_sreadU16 (U8 * in)
|
||||
{
|
||||
return (in[1] << 8) | in[0];
|
||||
}
|
||||
|
||||
|
||||
U32
|
||||
fil_sreadU32 (U8 * in)
|
||||
{
|
||||
U32 i0 = in[0], i1 = in[1], i2 = in[2], i3 = in[3];
|
||||
|
||||
return (i3 << 24) | (i2 << 16) | (i1 << 8) | i0;
|
||||
}
|
||||
|
||||
|
||||
F64
|
||||
fil_sreadF64 (U8 * in)
|
||||
{
|
||||
F64 ret;
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
*( ((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);
|
||||
#else /* !WORDS_BIGENDIAN */
|
||||
memcpy (&ret, in, 8);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
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%08tx 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 ("%08tx ", (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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
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 <string.h>
|
||||
#include "support.h"
|
||||
|
||||
|
||||
U16
|
||||
fil_sreadU16 (U8 * in)
|
||||
{
|
||||
return (in[1] << 8) | in[0];
|
||||
}
|
||||
|
||||
|
||||
U32
|
||||
fil_sreadU32 (U8 * in)
|
||||
{
|
||||
U32 i0 = in[0], i1 = in[1], i2 = in[2], i3 = in[3];
|
||||
|
||||
return (i3 << 24) | (i2 << 16) | (i1 << 8) | i0;
|
||||
}
|
||||
|
||||
|
||||
F64
|
||||
fil_sreadF64 (U8 * in)
|
||||
{
|
||||
F64 ret;
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
*( ((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);
|
||||
#else /* !WORDS_BIGENDIAN */
|
||||
memcpy (&ret, in, 8);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
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%08tx 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 ("%08tx ", (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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
520
cole/support.h
520
cole/support.h
@@ -1,260 +1,260 @@
|
||||
/*
|
||||
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>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if defined(WIN32)
|
||||
#define SIZEOF_FLOAT 4
|
||||
#define SIZEOF_DOUBLE 8
|
||||
#define SIZEOF_UNSIGNED_CHAR 1
|
||||
#define SIZEOF_UNSIGNED_SHORT 2
|
||||
#define SIZEOF_UNSIGNED_LONG 4
|
||||
/* compile time checks for good measure */
|
||||
#define COMPILE_TIME_CHECK(tag,expr) \
|
||||
typedef char tag##_CHECK[ (expr) ? 1 : -1 ]
|
||||
COMPILE_TIME_CHECK( FLOAT, sizeof(float) == SIZEOF_FLOAT );
|
||||
COMPILE_TIME_CHECK( DOUBLE, sizeof(double) == SIZEOF_DOUBLE );
|
||||
COMPILE_TIME_CHECK( CHAR, sizeof(char) == SIZEOF_UNSIGNED_CHAR );
|
||||
COMPILE_TIME_CHECK( SHORT, sizeof(short) == SIZEOF_UNSIGNED_SHORT );
|
||||
COMPILE_TIME_CHECK( LONG, sizeof(long) == SIZEOF_UNSIGNED_LONG );
|
||||
#endif
|
||||
|
||||
/* 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
|
||||
|
||||
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 */
|
||||
|
||||
/*
|
||||
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>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#if defined(WIN32)
|
||||
#define SIZEOF_FLOAT 4
|
||||
#define SIZEOF_DOUBLE 8
|
||||
#define SIZEOF_UNSIGNED_CHAR 1
|
||||
#define SIZEOF_UNSIGNED_SHORT 2
|
||||
#define SIZEOF_UNSIGNED_LONG 4
|
||||
/* compile time checks for good measure */
|
||||
#define COMPILE_TIME_CHECK(tag,expr) \
|
||||
typedef char tag##_CHECK[ (expr) ? 1 : -1 ]
|
||||
COMPILE_TIME_CHECK( FLOAT, sizeof(float) == SIZEOF_FLOAT );
|
||||
COMPILE_TIME_CHECK( DOUBLE, sizeof(double) == SIZEOF_DOUBLE );
|
||||
COMPILE_TIME_CHECK( CHAR, sizeof(char) == SIZEOF_UNSIGNED_CHAR );
|
||||
COMPILE_TIME_CHECK( SHORT, sizeof(short) == SIZEOF_UNSIGNED_SHORT );
|
||||
COMPILE_TIME_CHECK( LONG, sizeof(long) == SIZEOF_UNSIGNED_LONG );
|
||||
#endif
|
||||
|
||||
/* 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
|
||||
|
||||
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 */
|
||||
|
||||
|
||||
@@ -1,7 +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
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
@@ -1,328 +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:
|
||||
# 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:
|
||||
|
||||
@@ -1,95 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,75 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,77 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,68 +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);
|
||||
}
|
||||
|
||||
/*
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
int cole_major_version = 2;
|
||||
int cole_minor_version = 0;
|
||||
int cole_micro_version = 2;
|
||||
char * cole_version = "2.0.2";
|
||||
char * cole_host_info = "x86_64-unknown-linux-gnu (): , , ";
|
||||
int cole_major_version = 2;
|
||||
int cole_minor_version = 0;
|
||||
int cole_micro_version = 2;
|
||||
char * cole_version = "2.0.2";
|
||||
char * cole_host_info = "x86_64-unknown-linux-gnu (): , , ";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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@";
|
||||
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@";
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
int cole_major_version = 2;
|
||||
int cole_minor_version = 0;
|
||||
int cole_micro_version = 2;
|
||||
char * cole_version = "2.0.2";
|
||||
|
||||
#ifndef COMPILER
|
||||
#error Define the COMPILER macro
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_SUB(s) #s
|
||||
#define STRINGIFY(s) STRINGIFY_SUB(s)
|
||||
char * cole_host_info = STRINGIFY(COMPILER) ": i686, Microsoft, Win32";
|
||||
int cole_major_version = 2;
|
||||
int cole_minor_version = 0;
|
||||
int cole_micro_version = 2;
|
||||
char * cole_version = "2.0.2";
|
||||
|
||||
#ifndef COMPILER
|
||||
#error Define the COMPILER macro
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_SUB(s) #s
|
||||
#define STRINGIFY(s) STRINGIFY_SUB(s)
|
||||
char * cole_host_info = STRINGIFY(COMPILER) ": i686, Microsoft, Win32";
|
||||
|
||||
Reference in New Issue
Block a user