summaryrefslogtreecommitdiff
path: root/test/ragel.d/mailbox1.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/ragel.d/mailbox1.h')
-rw-r--r--test/ragel.d/mailbox1.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/ragel.d/mailbox1.h b/test/ragel.d/mailbox1.h
deleted file mode 100644
index b6833569..00000000
--- a/test/ragel.d/mailbox1.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef _MAILBOX1_H
-#define _MAILBOX1_H
-
-#include <stdio.h>
-#include <string.h>
-#include "buffer.h"
-
-struct MBox
-{
- int cs;
-
- Buffer headName;
- Buffer headContent;
-
- // Initialize the machine. Invokes any init statement blocks. Returns 0
- // if the machine begins in a non-accepting state and 1 if the machine
- // begins in an accepting state.
- void init( );
-
- // Execute the machine on a block of data. Returns -1 if after processing
- // the data, the machine is in the error state and can never accept, 0 if
- // the machine is in a non-accepting state and 1 if the machine is in an
- // accepting state.
- void execute( const char *data, int len );
-
- // Indicate that there is no more data. Returns -1 if the machine finishes
- // in the error state and does not accept, 0 if the machine finishes
- // in any other non-accepting state and 1 if the machine finishes in an
- // accepting state.
- int finish( );
-};
-
-#endif