All pastes #340178 Raw Edit

Mine

public text v1 · immutable
·published 2007-02-04 16:35 UTC
rendered paste body
#include <stdio.h>
#include "main.h"
#include "fsm.h"

state CurrentState = state1 ;
event CurrentEvent = event1 ;

char *buf ;

void main( void )
{
	init( ) ;

	printf( "Current State is %d\n", fsm( (void*)buf ) ) ;
}

void init( void )
{
	CurrentState = state1 ;
	CurrentEvent = event3 ;
}





//auto einai to arxeio "global.h"

extern state CurrentState ;
extern event CurrentEvent ;