| @@ -1,15 +1,15 @@ | | | @@ -1,15 +1,15 @@ |
1 | %{ | | 1 | %{ |
2 | /* $NetBSD: testlang_parse.y,v 1.12 2011/09/15 16:25:17 christos Exp $ */ | | 2 | /* $NetBSD: testlang_parse.y,v 1.13 2012/09/19 11:51:56 blymn Exp $ */ |
3 | | | 3 | |
4 | /*- | | 4 | /*- |
5 | * Copyright 2009 Brett Lymn <blymn@NetBSD.org> | | 5 | * Copyright 2009 Brett Lymn <blymn@NetBSD.org> |
6 | * | | 6 | * |
7 | * All rights reserved. | | 7 | * All rights reserved. |
8 | * | | 8 | * |
9 | * This code has been donated to The NetBSD Foundation by the Author. | | 9 | * This code has been donated to The NetBSD Foundation by the Author. |
10 | * | | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | | 11 | * Redistribution and use in source and binary forms, with or without |
12 | * modification, are permitted provided that the following conditions | | 12 | * modification, are permitted provided that the following conditions |
13 | * are met: | | 13 | * are met: |
14 | * 1. Redistributions of source code must retain the above copyright | | 14 | * 1. Redistributions of source code must retain the above copyright |
15 | * notice, this list of conditions and the following disclaimer. | | 15 | * notice, this list of conditions and the following disclaimer. |
| @@ -139,27 +139,28 @@ static void read_cmd_pipe(returns_t *); | | | @@ -139,27 +139,28 @@ static void read_cmd_pipe(returns_t *); |
139 | static void write_func_and_args(void); | | 139 | static void write_func_and_args(void); |
140 | static void compare_streams(char *, bool); | | 140 | static void compare_streams(char *, bool); |
141 | static void do_function_call(size_t); | | 141 | static void do_function_call(size_t); |
142 | static void save_slave_output(bool); | | 142 | static void save_slave_output(bool); |
143 | static void validate_type(returns_enum_t, returns_t *, int); | | 143 | static void validate_type(returns_enum_t, returns_t *, int); |
144 | static void set_var(returns_enum_t, char *, void *); | | 144 | static void set_var(returns_enum_t, char *, void *); |
145 | static void validate_reference(int, void *); | | 145 | static void validate_reference(int, void *); |
146 | static char *numeric_or(char *, char *); | | 146 | static char *numeric_or(char *, char *); |
147 | static char *get_numeric_var(const char *); | | 147 | static char *get_numeric_var(const char *); |
148 | static void perform_delay(struct timespec *); | | 148 | static void perform_delay(struct timespec *); |
149 | | | 149 | |
150 | static const char *input_functions[] = { | | 150 | static const char *input_functions[] = { |
151 | "getch", "getnstr", "getstr", "mvgetnstr", "mvgetstr", "mvgetnstr", | | 151 | "getch", "getnstr", "getstr", "mvgetnstr", "mvgetstr", "mvgetnstr", |
152 | "mvgetstr", "wgetch", "wgetnstr", "wgetstr" | | 152 | "mvgetstr", "mvscanw", "mvwscanw", "scanw", "wgetch", "wgetnstr", |
| | | 153 | "wgetstr" |
153 | }; | | 154 | }; |
154 | | | 155 | |
155 | static const unsigned ninput_functions = | | 156 | static const unsigned ninput_functions = |
156 | sizeof(input_functions) / sizeof(char *); | | 157 | sizeof(input_functions) / sizeof(char *); |
157 | | | 158 | |
158 | saved_data_t saved_output; | | 159 | saved_data_t saved_output; |
159 | | | 160 | |
160 | %} | | 161 | %} |
161 | | | 162 | |
162 | %union { | | 163 | %union { |
163 | char *string; | | 164 | char *string; |
164 | returns_t *retval; | | 165 | returns_t *retval; |
165 | } | | 166 | } |