This REALLY needs to be worked on. Typos, lack of thorough explanation, missing #endif. I would do it myself, but I'd like to see the author or someone more experienced revise this.
Nov 7., 2006: I took the liberty to do some editing on this page. If you can manage to set up your compiler and squirrel, you now should be able to cut and paste the code, and it should compile and work. (I hope).