As many other programmers out there, I have a lot of temporary directories laying around on my hard disk which contain small programs I wrote when I wanted to try a new API, or test some new idea. These programs often do not do anything important themselves, but the functions are used in bigger projects. But what use do I have of them now?
Some of the are really good for beginners, and some as reference for more experienced programmers. So what I did was borrow the 'Snippets' idea. I renamed the sources from test* to more descriptive names, and added some comments here and there, and called it The OS/2 Primecuts. The sources are not always as cleaned up as I would like, but it'll have to do.
The OS/2 Primecuts is free. Anyone may download it and use any of it's sources in their own programs, noncommercial as well as commercial.
Anyone can contribute, but there are some things I would like you to be aware of:
The OS/2 Control Program Reference describes how to duplicate stdout pipes and how this can be used
to pass stdout streams to a child application. This application is simply an implementation of that technique.
This application is a requirement if you want to compile and run the debug versions of many of my sources here.
The terminal window class is heavily based on the pmtermsr.lzh archive by Peter Fitszimmons.
Warning: This project is more or less just a quick rip and rewrite of a kernel debugging terminal I was working on.
Expect odd comments.
I am currently working on a game for which I need a shortest path algorithm implementation. Since I had never been working with anything similar earlier, I decided to write a program which would allow me to write different shortest path implementations without having to rewrite the whole application each time. The A* implementation I have written is based on the A* code in SimBlob by Amit Patel.
This is a simple bitmap viewer. It only supports 24-bit uncompressed OS/2 BMP files.
This application demonstrates basic usage of:
The EAUTIL supplied OS/2, can dump/extract, merge, apply and remove extended attributes to/from files. The only thing missing is a filtering function. dump_ea dumps a file's extended attributes, but allows user to specify which EA's to ignore.
This application demonstrates the basic usage of extended attributes.
BloatCom is a communications library which I slapped together when I needed to write an EMSI handshaker.
This library is not meant to be used in communications software, it's meant to be used for writing test protocols and small test applications.
Most functions are not finished and implemented.
This library demonstrates the basic usage of:
A simple PM window class and application which demonstrates how to split a window into panes. I haven't implemented relative offsets for the splitbar yet, and there sure are more user friendly methods of creating split view windows, but this works.