acme

thing1's custom acme build!
Log | Files | Refs | README

dat.c (1583B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <draw.h>
      4 #include <thread.h>
      5 #include <cursor.h>
      6 #include <mouse.h>
      7 #include <keyboard.h>
      8 #include <frame.h>
      9 #include <fcall.h>
     10 #include <plumb.h>
     11 #include <libsec.h>
     12 #include "dat.h"
     13 
     14 uint		globalincref;
     15 uint		seq;
     16 uint		maxtab;	/* size of a tab, in units of the '0' character */
     17 
     18 Mouse		*mouse;
     19 Mousectl		*mousectl;
     20 Keyboardctl	*keyboardctl;
     21 Reffont		reffont;
     22 Image		*modbutton;
     23 Image		*colbutton;
     24 Image		*button;
     25 Image		*but2col;
     26 Image		*but3col;
     27 Row			row;
     28 int			timerpid;
     29 Disk			*disk;
     30 Text			*seltext;
     31 Text			*argtext;
     32 Text			*mousetext;	/* global because Text.close needs to clear it */
     33 Text			*typetext;		/* global because Text.close needs to clear it */
     34 Text			*barttext;		/* shared between mousetask and keyboardthread */
     35 int			bartflag;
     36 Window		*activewin;
     37 Column		*activecol;
     38 Rectangle		nullrect;
     39 int			fsyspid;
     40 char			*cputype;
     41 char			*objtype;
     42 char			*acmeshell;
     43 //char			*fontnames[2];
     44 extern char		wdir[]; /* must use extern because no dimension given */
     45 int			globalautoindent;
     46 int			dodollarsigns;
     47 
     48 Channel	*cplumb;		/* chan(Plumbmsg*) */
     49 Channel	*cwait;		/* chan(Waitmsg) */
     50 Channel	*ccommand;	/* chan(Command*) */
     51 Channel	*ckill;		/* chan(Rune*) */
     52 Channel	*cxfidalloc;	/* chan(Xfid*) */
     53 Channel	*cxfidfree;	/* chan(Xfid*) */
     54 Channel	*cnewwindow;	/* chan(Channel*) */
     55 Channel	*mouseexit0;	/* chan(int) */
     56 Channel	*mouseexit1;	/* chan(int) */
     57 Channel	*cexit;		/* chan(int) */
     58 Channel	*cerr;		/* chan(char*) */
     59 Channel	*cedit;		/* chan(int) */
     60 Channel	*cwarn;		/* chan(void*)[1] (really chan(unit)[1]) */
     61 
     62 QLock	editoutlk;