Libporty
Libporty is a lightweight portability lib configured by scconfig. It's been
tested on various different UNIX and BSD systems, including OSX, and on
Linux and Windows. The whole project is written in ANSI C, and does not
depend on m4. Only scripting dependencies are (traditional) make and
(traditional/POSIX) shell.
If a project is written in ANSI C (C89) and uses any extra feature exclusively
from libporty, it will also work on all systems libporty works on. To assist
developers in using libporty the Right Way, a lint-like utility called porty
is included in the project. Porty can be used to validate C sources for
portability.
Documentation is split in the same manner as the project is split:
- libporty, a lightweight portability library
- porty, a lint-like tool for validating C sources for portability
- c99tree, C code analysis tool that dumps AST of a C source file
License for libporty is LGPLv2, for c99tree is mixed BSD and GPLv2 and for porty
is GPLv2. To get latest version, check out the code from the public svn
repository: svn://repo.hu/libporty/trunk.
News
Libporty already works on the 3 major systems (Linux, OSX, Windows) and on
some BSD/UNIX systems. A release with these features are planned in the near
future. Bugs are mapped and solutions are designed for 3 other UNIX systems
in the mid future.