Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmuellr/cpost
typeset C code in PostScript
https://github.com/pmuellr/cpost
Last synced: about 2 months ago
JSON representation
typeset C code in PostScript
- Host: GitHub
- URL: https://github.com/pmuellr/cpost
- Owner: pmuellr
- Created: 2013-01-19T13:00:31.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T05:07:48.000Z (about 9 years ago)
- Last Synced: 2024-04-09T21:04:44.795Z (10 months ago)
- Language: C
- Size: 498 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Source / Porting Notes
cPost - C language file formatter for PostScript
by Patrick Mueller
----------------------------------------------------
What you've got
----------------------------------------------------You've got all the source for cPost included in this package.
The packing list is in the file cpostsrc.lst. It's just plain
old C source, with #defined out stuff for AIX, OS/2 1.x, OS/2 2.x.The code is intended to be straight ANSI C, with possible non-portable
stuff marked by #if defined() sections.Here's what you should #define for particular platforms:
OS/2 1.x #define OPSYS_OS2
OS/2 2.x #define OPSYS_OS2V2
VM/CMS #define OPSYS_CMS - untested
others don't define one of the aboveAIX versions have been compiled without using any of the #define's. DOS
versions should also compile fine, but as I don't have access to a DOS
compiler, I can no longer verify this myself.The main operating system dependent stuff is in cPostUtl - the FileSpecAddXXX
series of functions. If you need to modify this code, I would suggest
adding a new #if defined() section in there for the new platform, just
like the others. Nice and neat.Patrick Mueller