This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mylib.c | |
#include "mylib.hh" | |
#include "cmylib.h" | |
Foo FooInit() | |
{ | |
cxxFoo * ret = new cxxFoo(1); | |
return (void*)ret; | |
} | |
void FooFree(Foo f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################## | |
### | |
### Severely updated version! | |
### (now says "1 bottle" and | |
### contains no extra "0" verse) | |
### | |
########################## | |
### 99 Bottles of Beer ### | |
### coded in Brainfuck ### | |
### with explanations ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ff3.c - fast befunge-93 interpreter | |
* (C) 2010 Heikki Kallasjoki <fis@zem.fi> | |
* | |
* This is a reasonably fast, reasonably portable (needs GCC, some | |
* other assumptions) Befunge-93 interpreter. The main crafty trick | |
* here is that all (well, most) instructions have four | |
* implementations, specialized to the current delta, leading to a | |
* single indirect jump per executed instruction. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vnckvm: vnckvm.o d3des.o | |
gcc -Wall -g $^ -o $@ \ | |
`pkg-config --libs gtk+-2.0` | |
vnckvm.o: vnckvm.c d3des.h | |
gcc -c -Wall -g vnckvm.c -o vnckvm.o `pkg-config --cflags gtk+-2.0` | |
d3des.o: d3des.c d3des.h | |
gcc -c -Wall -g d3des.c -o d3des.o |