From: james Date: Thu, 7 Feb 2008 01:57:46 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=0daf8487b7ce04368a0a8e33231a547161f444e7;p=sympathy.git *** empty log message *** --- diff --git a/src/vt102.c b/src/vt102.c index 882574a..0253cdf 100644 --- a/src/vt102.c +++ b/src/vt102.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.17 2008/02/07 01:58:28 james + * *** empty log message *** + * * Revision 1.16 2008/02/07 01:57:46 james * *** empty log message *** * @@ -170,6 +173,18 @@ csi_ender (int c) return 0; } +static inline int +scs_starter (int c) +{ + switch (c) + { + case '(': + case ')': + return 1; + } + return 0; +} + static inline int csi_starter (int c) { diff --git a/src/vt102.h b/src/vt102.h index fcf7aca..f0d4e91 100644 --- a/src/vt102.h +++ b/src/vt102.h @@ -12,6 +12,9 @@ /* * $Log$ + * Revision 1.9 2008/02/07 01:57:46 james + * *** empty log message *** + * * Revision 1.8 2008/02/07 00:39:13 james * *** empty log message *** * @@ -55,6 +58,7 @@ typedef struct int in_csi; int csi_ptr; char csi_buf[VT102_CSI_LEN]; + int in_scs; } VT102_parser; typedef struct