Swinging in a different direction, different syntax
This commit is contained in:
4
lang.h
4
lang.h
@@ -41,7 +41,7 @@ typedef struct String{
|
||||
S64 len;
|
||||
}String;
|
||||
|
||||
#define SLLQueuePush(f,l,n) do{\
|
||||
#define SLLQueuePushMod(f,l,n,next) do{\
|
||||
if((f)==0){\
|
||||
(f)=(l)=(n);\
|
||||
}\
|
||||
@@ -50,6 +50,8 @@ else{\
|
||||
} \
|
||||
}while(0)
|
||||
|
||||
#define SLLQueuePush(f,l,n) SLLQueuePushMod(f,l,n,next)
|
||||
|
||||
|
||||
#define SLLStackPush(l,n) do{\
|
||||
(n)->next = (l);\
|
||||
|
||||
Reference in New Issue
Block a user