changeset 1118:b319cbbf35c2

Reformat the source for cons_supp.c
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 09 Dec 2010 00:07:01 +0800
parents 1de8bb740c46
children 17cbb862a8c6
files src/cons_supp.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/cons_supp.c	Thu Dec 09 00:04:17 2010 +0800
+++ b/src/cons_supp.c	Thu Dec 09 00:07:01 2010 +0800
@@ -97,8 +97,8 @@
 };
 
 static int _cons_supp_io_man_reg(struct _mb_IO_man *io_man,
-				int fd, MB_IO_TYPE type,
-				mb_IO_cb_t cb, void *data);
+				 int fd, MB_IO_TYPE type,
+				 mb_IO_cb_t cb, void *data);
 static void _cons_supp_io_man_unreg(struct _mb_IO_man *io_man, int io_hdl);
 static mb_IO_man_t *_cons_supp_io_man_new(void);
 static void _cons_supp_io_man_free(mb_IO_man_t *io_man);
@@ -126,7 +126,7 @@
 
 static int
 _cons_supp_io_man_reg(struct _mb_IO_man *io_man,
-		     int fd, MB_IO_TYPE type, mb_IO_cb_t cb, void *data) {
+		      int fd, MB_IO_TYPE type, mb_IO_cb_t cb, void *data) {
     struct _cons_supp_IO_man *cmb_io_man = (struct _cons_supp_IO_man *)io_man;
     int i;
 
@@ -248,7 +248,7 @@
 }
 
 static int cons_kb_init(cons_kb_info_t *kbinfo, MB_DISPLAY display,
-		       redraw_man_t *rdman) {
+			redraw_man_t *rdman) {
     int n_syms;
     observer_factory_t *factory;
     int r;
@@ -413,8 +413,8 @@
  * \param display_name is actually the path to the console/input device.
  */
 static int _cons_supp_init(cons_supp_runtime_t *cmb_rt,
-			  const char *display_name,
-			  int w, int h) {
+			   const char *display_name,
+			   int w, int h) {
     int r;
     int console_fd;
 
@@ -450,7 +450,7 @@
  */
 static int
 _cons_supp_init_with_win(cons_supp_runtime_t *cmb_rt,
-			MB_DISPLAY display, MB_WINDOW win) {
+			 MB_DISPLAY display, MB_WINDOW win) {
     int r;
 
     memset(cmb_rt, 0, sizeof(cons_supp_runtime_t));
@@ -600,7 +600,7 @@
 
 static int
 _cons_supp_add_event(mb_rt_t *rt, int fd, MB_IO_TYPE type,
-		    mb_IO_cb_t cb, void *data)
+		     mb_IO_cb_t cb, void *data)
 {
     cons_supp_runtime_t *cmb_rt = (cons_supp_runtime_t *) rt;
     mb_IO_man_t *io_man = cmb_rt->io_man;