-/*\r
- Skelton for retropc emulator\r
-\r
- Author : Takeda.Toshiya\r
- Date : 2006.09.17-\r
-\r
- [ fifo buffer ]\r
-*/\r
-\r
-#ifndef _FIFO_H_\r
-#define _FIFO_H_\r
-\r
-#include "common.h"\r
-\r
-class FIFO\r
-{\r
-private:\r
- int size;\r
- int* buf;\r
- int cnt, rpt, wpt;\r
-public:\r
- FIFO(int s);\r
- void release();\r
- void clear();\r
- void write(int val);\r
- int read();\r
- int read_not_remove(int pt);\r
- int count();\r
- bool full();\r
- bool empty();\r
- void save_state(void *f);\r
- bool load_state(void *f);\r
-};\r
-\r
-#endif\r
-\r
+/*
+ Skelton for retropc emulator
+
+ Author : Takeda.Toshiya
+ Date : 2006.09.17-
+
+ [ fifo buffer ]
+*/
+
+#ifndef _FIFO_H_
+#define _FIFO_H_
+
+#include "common.h"
+
+class FIFO
+{
+private:
+ int size;
+ int* buf;
+ int cnt, rpt, wpt;
+public:
+ FIFO(int s);
+ void release();
+ void clear();
+ void write(int val);
+ int read();
+ int read_not_remove(int pt);
+ int count();
+ bool full();
+ bool empty();
+ void save_state(void *f);
+ bool load_state(void *f);
+};
+
+#endif
+