neo.c

[code lang="cpp"]
/* neo.c
* Neo, reverse engineered by Carlos Macasaet
* http://www.carlos-m.net/
*/

#include
#include
#include

/* enlightenment levels */
typedef int enlightenment_level;
#define MR_ANDERSON -1
#define TOOK_RED_PILL 0
#define I_KNOW_KUNG_FU 1
#define MET_ORACLE 2
#define THERE_IS_NO_SPOON 3
#define RELOADED 4 /* I don't have to dodge bullets */

enlightenment_level elevel;

void die();
void resurrect();

int main() {
dead = false;
signal( SIGKILL, die );
signal( SIGKISS, resurrect );

return( 0 );
}

void die() {
dead = true;
while ( elevel < RELOADED )
sleep( 3600 ); /* this number is completely arbitrary */
}

void resurrect() {
elevel = RELOADED;
signal( SIGKILL, SIG_IGN ); /* I'm neo, I can do this */
}
[/code]

Leave a Reply