comparison libnnutil.h @ 419:d015ecbd231d

Use C99 style comments, too.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 07:37:36 +0300
parents 3e64acb433e8
children
comparison
equal deleted inserted replaced
418:8ca09a6cca09 419:d015ecbd231d
13 13
14 14
15 #define NN_TMPBUF_SIZE (4096) 15 #define NN_TMPBUF_SIZE (4096)
16 #define NN_ALLOC_SIZE (128) 16 #define NN_ALLOC_SIZE (128)
17 #define NN_NUM_BUCKETS (256) 17 #define NN_NUM_BUCKETS (256)
18 #define NN_BACKBUF_LEN (512) /* Backbuffer size (in lines) */ 18 #define NN_BACKBUF_LEN (512) // Backbuffer size (in lines)
19 19
20 20
21 typedef struct _nn_user_t 21 typedef struct _nn_user_t
22 { 22 {
23 char *name; 23 char *name;
73 char * nn_editbuf_get_string(nn_editbuf_t *buf, ssize_t start, ssize_t end); 73 char * nn_editbuf_get_string(nn_editbuf_t *buf, ssize_t start, ssize_t end);
74 74
75 75
76 typedef struct 76 typedef struct
77 { 77 {
78 qringbuf_t *data; /* "Backbuffer" data for this window */ 78 qringbuf_t *data; // "Backbuffer" data for this window
79 int pos; /* Current position in the window, 0 = real time */ 79 int pos; // Current position in the window, 0 = real time
80 BOOL dirty; 80 BOOL dirty;
81 81
82 char *id; /* Chatter ID, NULL = main window */ 82 char *id; // Chatter ID, NULL = main window
83 int num; /* Window number */ 83 int num; // Window number
84 84
85 char *buf; 85 char *buf;
86 size_t len, bufsize; 86 size_t len, bufsize;
87 size_t chlen; 87 size_t chlen;
88 } nn_window_t; 88 } nn_window_t;