Updates to 2001/kev
The code and alt code now have '#ifndef..#endif' blocks so that one need not specify all the -D options if they wish to change just one. In the case of SPEED if it's undefined it is set to 50 which is what the Makefile originally had it as but I changed it to 100 as it seemed to be a problem. The author does note how different speeds make for different kinds of play and so this change is even more useful. Format/typo check README.md file. This should complete the review of 2001/kev and I believe only one entry remains now.
This commit is contained in:
1 parent
a19cb214c1
commit
420e16da69
4 files changed
+112
-25
No files matched your search
@@ -5,6 +5,15 @@
|
||||
#include <netdb.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifndef PORT
|
||||
#define PORT 5455
|
||||
#endif
|
||||
#ifndef SPEED
|
||||
#define SPEED 50
|
||||
#endif
|
||||
#ifndef l_
|
||||
#define l_ socket(il.sin_family=AF_INET,SOCK_STREAM,0)
|
||||
#endif
|
||||
#define o0(M,W) mvprintw(W,M?M-1:M,"%s%s ",M?" ":"",_)
|
||||
#define O0(M,W) M##M=(M+=W##M)-W##M
|
||||
#define l1(M,W) M.tv_##W##sec
|
||||
|
||||
Reference in new issue
Block a user