diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 14:25:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 14:25:49 +0000 |
commit | 1e316cfc7c0623038f850de1a2f2688497c51914 (patch) | |
tree | c9f3d324701eaade5f8463ee4ffe0bad523451ab /tmux.h | |
parent | 653ee721df4b0464803d6cba46376b4fcbd09b82 (diff) | |
download | rtmux-1e316cfc7c0623038f850de1a2f2688497c51914.tar.gz rtmux-1e316cfc7c0623038f850de1a2f2688497c51914.tar.bz2 rtmux-1e316cfc7c0623038f850de1a2f2688497c51914.zip |
Lose intermediate handling (unused). Change argument parsing to work properly over multiple buffers by saving a copy of the argument (we can't just save off/len since the buffer may vanish at any point).
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.25 2007-09-29 13:22:15 nicm Exp $ */ +/* $Id: tmux.h,v 1.26 2007-09-29 14:25:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -396,11 +396,11 @@ struct screen { #define SCREEN_DEFDATA ' ' #define SCREEN_DEFATTR 0 #define SCREEN_DEFCOLR 0x88 - + /* Input parser sequence argument. */ struct input_arg { - size_t off; - size_t len; + u_char data[64]; + size_t used; }; /* Input character classes. */ @@ -431,10 +431,6 @@ struct input_ctx { void *(*state)(u_char, enum input_class, struct input_ctx *); - size_t intoff; - size_t intlen; - - size_t saved; u_char private; ARRAY_DECL(, struct input_arg) args; }; @@ -663,6 +659,7 @@ __dead void log_fatalx(const char *, ...); /* xmalloc.c */ void *ensure_size(void *, size_t *, size_t, size_t); void *ensure_for(void *, size_t *, size_t, size_t); +char *xmemstrdup(const char *, size_t); char *xstrdup(const char *); void *xcalloc(size_t, size_t); void *xmalloc(size_t); |