Home
last modified time | relevance | path

Searched refs:scan_ctx (Results 1 – 10 of 10) sorted by relevance

/external/libconfig/lib/
Dgrammar.y30 %parse-param{struct scan_context *scan_ctx}
55 static void capture_parse_pos(void *scanner, struct scan_context *scan_ctx,
59 setting->file = libconfig_scanctx_current_filename(scan_ctx);
63 capture_parse_pos(scanner, scan_ctx, (S))
66 struct scan_context *scan_ctx, char const *s)
120 libconfig_yyerror(scanner, ctx, scan_ctx, err_duplicate_setting);
200 libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
218 libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
240 libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
262 libconfig_yyerror(scanner, ctx, scan_ctx, err_array_elem_type);
[all …]
Dgrammar.c95 static void capture_parse_pos(void *scanner, struct scan_context *scan_ctx, in capture_parse_pos() argument
99 setting->file = libconfig_scanctx_current_filename(scan_ctx); in capture_parse_pos()
103 capture_parse_pos(scanner, scan_ctx, (S))
106 struct scan_context *scan_ctx, char const *s) in libconfig_yyerror() argument
215 int libconfig_yyparse (void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx);
678 yyerror (scanner, ctx, scan_ctx, YY_("syntax error: cannot back up")); \
715 Type, Value, scanner, ctx, scan_ctx); \
726 …PE const * const yyvaluep, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx) in yy_symbol_value_print() argument
732 YYUSE (scan_ctx); in yy_symbol_value_print()
748 …PE const * const yyvaluep, void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx) in yy_symbol_print() argument
[all …]
Dlibconfig.c537 struct scan_context scan_ctx; in __config_read() local
550 libconfig_scanctx_init(&scan_ctx, filename); in __config_read()
551 config->root->file = libconfig_scanctx_current_filename(&scan_ctx); in __config_read()
552 scan_ctx.config = config; in __config_read()
553 libconfig_yylex_init_extra(&scan_ctx, &scanner); in __config_read()
561 r = libconfig_yyparse(scanner, &parse_ctx, &scan_ctx); in __config_read()
567 config->error_file = libconfig_scanctx_current_filename(&scan_ctx); in __config_read()
571 while((buf = (YY_BUFFER_STATE)libconfig_scanctx_pop_include(&scan_ctx)) in __config_read()
577 config->filenames = libconfig_scanctx_cleanup(&scan_ctx); in __config_read()
Dgrammar.h114 int libconfig_yyparse (void *scanner, struct parse_context *ctx, struct scan_context *scan_ctx);
/external/libiio/src/tests/
Diio_adi_xflow_check.c155 struct iio_scan_context *scan_ctx; in scan() local
161 scan_ctx = iio_create_scan_context(NULL, 0); in scan()
162 if (!scan_ctx) { in scan()
167 ret = iio_scan_context_get_info_list(scan_ctx, &info); in scan()
195 iio_scan_context_destroy(scan_ctx); in scan()
Diio_readdev.c203 struct iio_scan_context *scan_ctx; in scan() local
209 scan_ctx = iio_create_scan_context(NULL, 0); in scan()
210 if (!scan_ctx) { in scan()
215 ret = iio_scan_context_get_info_list(scan_ctx, &info); in scan()
243 iio_scan_context_destroy(scan_ctx); in scan()
Diio_writedev.c214 struct iio_scan_context *scan_ctx; in scan() local
220 scan_ctx = iio_create_scan_context(NULL, 0); in scan()
221 if (!scan_ctx) { in scan()
226 ret = iio_scan_context_get_info_list(scan_ctx, &info); in scan()
254 iio_scan_context_destroy(scan_ctx); in scan()
Diio_info.c111 struct iio_scan_context *scan_ctx; in autodetect_context() local
117 scan_ctx = iio_create_scan_context(NULL, 0); in autodetect_context()
118 if (!scan_ctx) { in autodetect_context()
123 ret = iio_scan_context_get_info_list(scan_ctx, &info); in autodetect_context()
153 iio_scan_context_destroy(scan_ctx); in autodetect_context()
Diio_attr.c101 struct iio_scan_context *scan_ctx; in autodetect_context() local
107 scan_ctx = iio_create_scan_context(NULL, 0); in autodetect_context()
108 if (!scan_ctx) { in autodetect_context()
113 ret = iio_scan_context_get_info_list(scan_ctx, &info); in autodetect_context()
141 iio_scan_context_destroy(scan_ctx); in autodetect_context()
/external/libiio/src/examples/
Diio-monitor.c200 struct iio_scan_context *scan_ctx; in show_contexts_screen() local
211 scan_ctx = iio_create_scan_context(NULL, 0); in show_contexts_screen()
212 if (!scan_ctx) in show_contexts_screen()
218 ret = iio_scan_context_get_info_list(scan_ctx, &info); in show_contexts_screen()
277 iio_scan_context_destroy(scan_ctx); in show_contexts_screen()