Whitespace fixes. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 632c20a10fb43613d36dee2b577208779e9582e1
(DIR) parent 89c8d21b03fc2486c360586062025412d7487f28
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Sun, 14 Aug 2016 22:20:43 -0500
Whitespace fixes.
Diffstat:
include/frame.h | 116 +++++++++++++++---------------
1 file changed, 58 insertions(+), 58 deletions(-)
---
(DIR) diff --git a/include/frame.h b/include/frame.h
@@ -5,71 +5,71 @@ typedef struct Frame Frame;
struct Frbox
{
- long wid; /* in pixels */
- long nrune; /* <0 ==> negate and treat as break char */
- union{
- uchar *ptr;
- struct{
- short bc; /* break char */
- short minwid;
- } b;
- } a;
+ long wid; /* in pixels */
+ long nrune; /* <0 ==> negate and treat as break char */
+ union{
+ uchar *ptr;
+ struct{
+ short bc; /* break char */
+ short minwid;
+ } b;
+ } a;
};
struct Frame
{
- XftFont *font; /* of chars in the frame */
- Bitmap *b; /* on which frame appears */
- Rectangle r; /* in which text appears */
- Rectangle entire; /* of full frame */
- Frbox *box;
- ulong p0, p1; /* selection */
- short left; /* left edge of text */
- ushort nbox, nalloc;
- ushort maxtab; /* max size of tab, in pixels */
- ushort fheight; /* font height, in pixels */
- ushort nchars; /* # runes in frame */
- ushort nlines; /* # lines with text */
- ushort maxlines; /* total # lines in frame */
- ushort lastlinefull; /* last line fills frame */
- ushort modified; /* changed since frselect() */
+ XftFont *font; /* of chars in the frame */
+ Bitmap *b; /* on which frame appears */
+ Rectangle r; /* in which text appears */
+ Rectangle entire; /* of full frame */
+ Frbox *box;
+ ulong p0, p1; /* selection */
+ short left; /* left edge of text */
+ ushort nbox, nalloc;
+ ushort maxtab; /* max size of tab, in pixels */
+ ushort fheight; /* font height, in pixels */
+ ushort nchars; /* # runes in frame */
+ ushort nlines; /* # lines with text */
+ ushort maxlines; /* total # lines in frame */
+ ushort lastlinefull; /* last line fills frame */
+ ushort modified; /* changed since frselect() */
};
-ulong frcharofpt(Frame*, Point);
-Point frptofchar(Frame*, ulong);
-int frdelete(Frame*, ulong, ulong);
-void frinsert(Frame*, Rune*, Rune*, ulong);
-void frselect(Frame*, Mouse*);
-void frselectp(Frame*, Fcode);
-void frselectf(Frame*, Point, Point, Fcode);
-void frinit(Frame*, Rectangle, XftFont*, Bitmap*);
-void frsetrects(Frame*, Rectangle, Bitmap*);
-void frclear(Frame*);
-void frgetmouse(void);
+ulong frcharofpt(Frame*, Point);
+Point frptofchar(Frame*, ulong);
+int frdelete(Frame*, ulong, ulong);
+void frinsert(Frame*, Rune*, Rune*, ulong);
+void frselect(Frame*, Mouse*);
+void frselectp(Frame*, Fcode);
+void frselectf(Frame*, Point, Point, Fcode);
+void frinit(Frame*, Rectangle, XftFont*, Bitmap*);
+void frsetrects(Frame*, Rectangle, Bitmap*);
+void frclear(Frame*);
+void frgetmouse(void);
-uchar *_frallocstr(unsigned);
-void _frinsure(Frame*, int, unsigned);
-Point _frdraw(Frame*, Point);
-void _frgrowbox(Frame*, int);
-void _frfreebox(Frame*, int, int);
-void _frmergebox(Frame*, int);
-void _frdelbox(Frame*, int, int);
-void _frsplitbox(Frame*, int, int);
-int _frfindbox(Frame*, int, ulong, ulong);
-void _frclosebox(Frame*, int, int);
-int _frcanfit(Frame*, Point, Frbox*);
-void _frcklinewrap(Frame*, Point*, Frbox*);
-void _frcklinewrap0(Frame*, Point*, Frbox*);
-void _fradvance(Frame*, Point*, Frbox*);
-int _frnewwid(Frame*, Point, Frbox*);
-void _frclean(Frame*, Point, int, int);
-void _frredraw(Frame*, Point);
-void _fraddbox(Frame*, int, int);
-Point _frptofcharptb(Frame*, ulong, Point, int);
-Point _frptofcharnb(Frame*, ulong, int);
-int _frstrlen(Frame*, int);
+uchar *_frallocstr(unsigned);
+void _frinsure(Frame*, int, unsigned);
+Point _frdraw(Frame*, Point);
+void _frgrowbox(Frame*, int);
+void _frfreebox(Frame*, int, int);
+void _frmergebox(Frame*, int);
+void _frdelbox(Frame*, int, int);
+void _frsplitbox(Frame*, int, int);
+int _frfindbox(Frame*, int, ulong, ulong);
+void _frclosebox(Frame*, int, int);
+int _frcanfit(Frame*, Point, Frbox*);
+void _frcklinewrap(Frame*, Point*, Frbox*);
+void _frcklinewrap0(Frame*, Point*, Frbox*);
+void _fradvance(Frame*, Point*, Frbox*);
+int _frnewwid(Frame*, Point, Frbox*);
+void _frclean(Frame*, Point, int, int);
+void _frredraw(Frame*, Point);
+void _fraddbox(Frame*, int, int);
+Point _frptofcharptb(Frame*, ulong, Point, int);
+Point _frptofcharnb(Frame*, ulong, int);
+int _frstrlen(Frame*, int);
extern int tabwidth;
-#define NRUNE(b) ((b)->nrune<0? 1 : (b)->nrune)
-#define NBYTE(b) strlen((char*)(b)->a.ptr)
+#define NRUNE(b) ((b)->nrune<0? 1 : (b)->nrune)
+#define NBYTE(b) strlen((char*)(b)->a.ptr)