diff options
author | staffcvs <> | 2008-02-20 22:54:22 +0000 |
---|---|---|
committer | staffcvs <> | 2008-02-20 22:54:22 +0000 |
commit | c1aa93b7aa74d01cf1d1686e0c90decc24a344c6 (patch) | |
tree | a67600a73092d0ef66c9617869bfe30257e3a74a /src/ansi.c | |
parent | 72bf4c274834b91ce599ae272fb5159913b8e033 (diff) | |
download | sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.tar.gz sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.tar.bz2 sympathy-c1aa93b7aa74d01cf1d1686e0c90decc24a344c6.zip |
*** empty log message ***
Diffstat (limited to 'src/ansi.c')
-rw-r--r-- | src/ansi.c | 37 |
1 files changed, 21 insertions, 16 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.27 2008/02/20 22:54:22 staffcvs + * *** empty log message *** + * * Revision 1.26 2008/02/20 20:16:07 james * *** empty log message *** * @@ -859,30 +862,32 @@ ansi_update (ANSI * a, Context * c) ansi_draw (a, &c->v->crt); } -static void ansi_free(ANSI *a) +static void +ansi_free (ANSI * a) { - a->terminal_reset(a); - if (a->terminal) - a->terminal->close(a->terminal); + a->terminal_reset (a); + if (a->terminal) + a->terminal->close (a->terminal); - free(a); + free (a); } -ANSI *ansi_new_from_terminal(TTY *t) +ANSI * +ansi_new_from_terminal (TTY * t) { -ANSI *ret; + ANSI *ret; -ret=malloc(sizeof(ANSI)); -memset(ret,0,sizeof(ANSI)); + ret = malloc (sizeof (ANSI)); + memset (ret, 0, sizeof (ANSI)); -ret->terminal=t; + ret->terminal = t; -ret->update=ansi_update; -ret->reset=ansi_reset; -ret->terminal_reset=ansi_terminal_reset; -ret->close=ansi_free; -ret->dispatch=ansi_dispatch; + ret->update = ansi_update; + ret->reset = ansi_reset; + ret->terminal_reset = ansi_terminal_reset; + ret->close = ansi_free; + ret->dispatch = ansi_dispatch; -return ret; + return ret; } |