Merge pull request #62 from xexyl/tetris
This commit is contained in:
2 files changed
+10
-5
No files matched your search
+9
-4
@@ -63,9 +63,9 @@ X11_INCDIR= /opt/X11/include
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
#CSILENCE=
|
#CSILENCE=
|
||||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pointer-to-int-cast \
|
CSILENCE= -Wno-error -Wno-pointer-to-int-cast -Wno-no-return-type -Wno-empty-body \
|
||||||
-Wno-no-return-type -Wno-builtin-requires-header -Wno-empty-body \
|
-Wno-implicit-function-declaration -Wno-string-plus-int -Wno-return-type \
|
||||||
-Wno-string-plus-int -Wno-return-type -Wno-unknown-warning-option
|
-Wno-unknown-warning-option
|
||||||
|
|
||||||
# Common C compiler warning flags
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
@@ -99,7 +99,7 @@ CDEFINE=
|
|||||||
|
|
||||||
# Include files that are needed to compile
|
# Include files that are needed to compile
|
||||||
#
|
#
|
||||||
CINCLUDE= -include stdio.h -include unistd.h
|
CINCLUDE=
|
||||||
#CINCLUDE= -include stdlib.h
|
#CINCLUDE= -include stdlib.h
|
||||||
#CINCLUDE= -include stdio.h
|
#CINCLUDE= -include stdio.h
|
||||||
#CINCLUDE= -include stdlib.h -include stdio.h
|
#CINCLUDE= -include stdlib.h -include stdio.h
|
||||||
@@ -174,6 +174,11 @@ ALT_OBJ= ${PROG}.alt.o
|
|||||||
ALT_TARGET= ${PROG}.alt
|
ALT_TARGET= ${PROG}.alt
|
||||||
|
|
||||||
|
|
||||||
|
# FORCE use of -include stdio.h -include unistd.h
|
||||||
|
#
|
||||||
|
CINCLUDE+= -include stdio.h -include unistd.h -include stdlib.h
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# build the entry
|
# build the entry
|
||||||
#################
|
#################
|
||||||
|
|||||||
+1
-1
@@ -16,4 +16,4 @@ for(;j%12;q[j--]=0);u();for(;--j;q[j+12]=q[j]);u();}n=f+rand()%7*4;G(x=17)||(c
|
|||||||
8192);printf("\033[H\033[J\033[0m%ld\n",w);if(c==a[5])break;for(j=264;j--;Q[j]=
|
8192);printf("\033[H\033[J\033[0m%ld\n",w);if(c==a[5])break;for(j=264;j--;Q[j]=
|
||||||
0);while(getchar()-a[4]);puts("\033[H\033[J\033[7m");sigsetmask(s);}}system("\
|
0);while(getchar()-a[4]);puts("\033[H\033[J\033[7m");sigsetmask(s);}}system("\
|
||||||
stty cbreak echo");d=popen("cat - HI 2>/dev/null|sort -rn|head -20>/tmp/$$;mv /tmp/$$ HI\
|
stty cbreak echo");d=popen("cat - HI 2>/dev/null|sort -rn|head -20>/tmp/$$;mv /tmp/$$ HI\
|
||||||
;cat HI","w");fprintf(d,"%4d by %s\n",w,getlogin());pclose(d);}
|
;cat HI","w");fprintf(d,"%4ld by %s\n",w,getlogin());pclose(d);}
|
||||||
Reference in new issue
Block a user