9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

diff.h (817B)


      1 #define stdout bstdout
      2 
      3 char mode;			/* '\0', 'e', 'f', 'h' */
      4 char bflag;			/* ignore multiple and trailing blanks */
      5 char rflag;			/* recurse down directory trees */
      6 char mflag;			/* pseudo flag: doing multiple files, one dir */
      7 int anychange;
      8 extern Biobuf	stdout;
      9 extern int	binary;
     10 
     11 #define MALLOC(t, n)		((t *)emalloc((n)*sizeof(t)))
     12 #define REALLOC(p, t, n)	((t *)erealloc((void *)(p), (n)*sizeof(t)))
     13 #define FREE(p)			free((void *)(p))
     14 
     15 #define MAXPATHLEN	1024
     16 
     17 int mkpathname(char *, char *, char *);
     18 void *emalloc(unsigned);
     19 void *erealloc(void *, unsigned);
     20 void diff(char *, char *, int);
     21 void diffdir(char *, char *, int);
     22 void diffreg(char *, char *);
     23 Biobuf *prepare(int, char *);
     24 void panic(int, char *, ...);
     25 void check(Biobuf *, Biobuf *);
     26 void change(int, int, int, int);
     27 void flushchanges(void);