From 1678928bd8ed5df60badaab66fcd924b49b1b785 Mon Sep 17 00:00:00 2001 From: Tom Szczesny Date: Sat, 31 Jan 2015 12:31:50 -0500 Subject: [PATCH] no real point in having a separate header file --- ncn.c | 12 +++++++++++- ncn.h | 10 ---------- 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 ncn.h diff --git a/ncn.c b/ncn.c index ff037c3..fe13707 100644 --- a/ncn.c +++ b/ncn.c @@ -1,4 +1,14 @@ -#include "ncn.h" +#include // malloc,labs +#include // printf +#include // strlen +typedef char C; +typedef long I; +typedef void V; +typedef struct a{I t,r,d[3],p[2];}*A; +#define O printf +#define R return +#define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}} + I *ma(I n){R(I*)malloc(n*4);} V mv(I*d,I*s,I n){DO(n,d[i]=s[i]);} I tr(I r,I*d){I z=1;DO(r,z=z*d[i]);R z;} diff --git a/ncn.h b/ncn.h deleted file mode 100644 index 0f8feb0..0000000 --- a/ncn.h +++ /dev/null @@ -1,10 +0,0 @@ -#include // malloc,labs -#include // printf -#include // strlen -typedef char C; -typedef long I; -typedef void V; -typedef struct a{I t,r,d[3],p[2];}*A; -#define O printf -#define R return -#define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}}