So I wrote a preprocessor a little more complex than C's. I suck at writing tutorials, so I'd like my fellow programmers to review it and tell me if it's understandable. It should only take about ten minutes. There's also a couple examples, so you can verify that you understood everything right.
Heh heh. I just realized I left my debug.bat in the .7z.
There's a 7-zip command line tool for Linux called 7z.
7-zip is a pretty rare case of an OS program written only for Windows. Another notable (and annoying) example is Notepad++.
chrisname: I wanted to send you a PM but you don't accept them, so I'll just have to post it here.
If you still want to play with the preprocessor, go here: https://sourceforge.net/projects/onslaught-vn/files/
You can preprocess the examples in the doc/ directory by calling ./ONSlaught -pp-then-quit
I'm not sure, but this may or may not create a directory called ~/.ONSlaught/
Oh, /. Sorry, I read it wrong.
I'm doing that alot lately :l
Oh and can I ask why you 7zipped the Linux file when Linux users can't open .7z files, unless they install WinRAR or 7zip or some other program that can open .7z and then run it with WINE?
Also, I'm getting the following error when trying to run the file in the bin directory:
1 2 3 4
$ ls
ONSlaught
$ ./ONSlaught
bash: ./ONSlaught: Permission denied
chmod 777 ONSlaught might work. It worked for all the shell scripts I wrote... I'll try again later.
Edit:
I'm installing LinuxMint through windows at the moment so I'll try it either on Mint or Ubuntu later.
I also hate the restriction on the amount of primary partitions I can have. I can only install 3 operating systems :(
Stupid OEM. I deleted their recovery partition (then spent 3 hours with a recovery CD because the Ubuntu installer (I was reinstalling it to fix something to do with the /usr/bin directory) corrupted the windows partition) so I could use FreeBSD but I can't be asked to install FreeBSD now. Originally, in fact, I was going to try to install OSX on there but after I decided my money would be better spent buying a new PC (so I don't corrupt the NTFS partitions (I won't use windows on my new PC) and have to spend 3 hours recovering them) than an OS I'd probably use once and then get sick of. Plus that would risk killing my hard disk and various other hardwares, and I'd risk getting arrested by "The Man" (Apple)...
Well I wanted to mention the chmod thing and then got into this whole speel about partitions.
Logical partitions I'm not sure about, but I know I can only have 4 primary partitions. But that's ok... The thing is I like to use the windows partitioner (it's damn simple but pretty quick so I use it... gparted is more complex) and it doesn't necessarily allow you to make everything you want...