X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=source%2Fsrc%2Ffifo.h;h=14fd9561f694efa763e11c1d527269dc3bdc98bf;hb=6e5fce336fd11988c4ce4b667bd453b08fc2949a;hp=9983b1ba65465576edd834d2cf8e6d17aa6958e1;hpb=cd7306aed0ec801cc73097c79a1b7e6953bb6350;p=csp-qt%2Fcommon_source_project-fm7.git diff --git a/source/src/fifo.h b/source/src/fifo.h index 9983b1ba6..14fd9561f 100644 --- a/source/src/fifo.h +++ b/source/src/fifo.h @@ -1,36 +1,36 @@ -/* - 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 - +/* + 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 +