Skip to content

Commit

Permalink
no real point in having a separate header file
Browse files Browse the repository at this point in the history
  • Loading branch information
tavmem committed Jan 31, 2015
1 parent b8230c9 commit 1678928
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 11 additions & 1 deletion ncn.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#include "ncn.h"
#include <stdlib.h> // malloc,labs
#include <stdio.h> // printf
#include <string.h> // 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;}
Expand Down
10 changes: 0 additions & 10 deletions ncn.h

This file was deleted.

0 comments on commit 1678928

Please sign in to comment.