lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /************************************************************************
|
| 2 | * °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
|
| 3 | *
|
| 4 | * ÎļþÃû³Æ£º nu_os.h
|
| 5 | * Îļþ±êʶ£º
|
| 6 | * ÄÚÈÝÕªÒª£º
|
| 7 | *
|
| 8 | * ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
| 9 | * ---------------------------------------------------------------------
|
| 10 | * 2007/11/24 V0.5 ¹¨Òí create
|
| 11 | ************************************************************************/
|
| 12 |
|
| 13 |
|
| 14 | /**************************************************************************
|
| 15 | * Í·Îļþ°üº¬ *
|
| 16 | **************************************************************************/
|
| 17 |
|
| 18 |
|
| 19 | #include "base_api.h"
|
| 20 |
|
| 21 | #ifndef PS_OS_H
|
| 22 | #define PS_OS_H
|
| 23 |
|
| 24 | #define SDL_STARTUP_SIGNAL (SIGREFTYPE) ~0
|
| 25 |
|
| 26 | #define enqueue( list, elem ) \
|
| 27 | (elem)->succ = (list)->succ; \
|
| 28 | (elem)->pred = (list); \
|
| 29 | (list)->succ->pred = (elem); \
|
| 30 | (list)->succ = (elem);
|
| 31 |
|
| 32 | #define dequeue( elem ) \
|
| 33 | (elem)->succ->pred = (elem)->pred; \
|
| 34 | (elem)->pred->succ = (elem)->succ;
|
| 35 |
|
| 36 |
|
| 37 | extern UINT32 create_queue (t_queue *queue);
|
| 38 | extern VOID free_queue(xSignalHeader list);
|
| 39 |
|
| 40 | #endif
|