![]() |
Prusa Slicer 2.6.0
|
#include "ac_cfg.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include "avrdude.h"#include "libavrdude.h"#include "config.h"#include "config_gram.h"#include "avrdude-slic3r.conf.h"
Include dependency graph for config.c:Go to the source code of this file.
Macros | |
| #define | DEBUG 0 |
Typedefs | |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
Functions | |
| void | cleanup_config (void) |
| int | init_config (void) |
| int | yywrap () |
| int | yyerror (char *errmsg,...) |
| int | yywarning (char *errmsg,...) |
| TOKEN * | new_token (int primary) |
| void | free_token (TOKEN *tkn) |
| void | free_tokens (int n,...) |
| TOKEN * | number (char *text) |
| TOKEN * | number_real (char *text) |
| TOKEN * | hexnumber (char *text) |
| TOKEN * | string (char *text) |
| TOKEN * | keyword (int primary) |
| void | print_token (TOKEN *tkn) |
| void | pyytext (void) { yylval = NULL |
| char * | dup_string (const char *str) |
| int | yylex_destroy (void) |
| int | read_config (const char *file) |
| YY_BUFFER_STATE | yy_scan_bytes (const char *base, size_t size) |
| void | yy_delete_buffer (YY_BUFFER_STATE b) |
| int | read_config_builtin () |
Variables | |
| char | default_programmer [MAX_STR_CONST] |
| char | default_parallel [PATH_MAX] |
| char | default_serial [PATH_MAX] |
| double | default_bitclock |
| int | default_safemode |
| char | string_buf [MAX_STR_CONST] |
| char * | string_buf_ptr = '\r' |
| LISTID | string_list |
| LISTID | number_list |
| PROGRAMMER * | current_prog |
| AVRPART * | current_part |
| AVRMEM * | current_mem |
| LISTID | part_list |
| LISTID | programmers |
| int | lineno |
| const char * | infile |
| char * | yytext |
| #define DEBUG 0 |
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
References avr_free_part(), free_token(), ldestroy_cb(), number_list, part_list, pgm_free(), programmers, and string_list.
Referenced by cleanup_main().
Here is the call graph for this function:
Here is the caller graph for this function:| char * dup_string | ( | const char * | str | ) |
References free(), value_t::string, value_t::type, V_STR, and token_t::value.
Referenced by assign_pin(), assign_pin_list(), cleanup_config(), free_tokens(), parse_cmdbits(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| void free_tokens | ( | int | n, |
| ... | |||
| ) |
References free_token().
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * hexnumber | ( | char * | text | ) |
References avrdude_message(), MSG_INFO, new_token(), value_t::number, TKN_NUMBER, value_t::type, V_NUM, token_t::value, and yyerror().
Here is the call graph for this function:| int init_config | ( | void | ) |
References current_mem, current_part, current_prog, infile, lcreat(), lineno, number_list, part_list, programmers, and string_list.
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * keyword | ( | int | primary | ) |
References new_token(), and token_t::primary.
Referenced by Slic3r::GCode::do_export(), and Slic3r::GUI::Tab::validate_custom_gcode().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * new_token | ( | int | primary | ) |
References malloc(), token_t::primary, and yyerror().
Referenced by hexnumber(), keyword(), number(), number_real(), and string().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * number | ( | char * | text | ) |
References avrdude_message(), MSG_INFO, new_token(), value_t::number, TKN_NUMBER, value_t::type, V_NUM, and token_t::value.
Referenced by Slic3r::anonymous_namespace{SL1_SVG.cpp}::decimal_from().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * number_real | ( | char * | text | ) |
References avrdude_message(), MSG_INFO, new_token(), value_t::number_real, TKN_NUMBER, value_t::type, V_NUM_REAL, and token_t::value.
Here is the call graph for this function:References avrdude_message(), MSG_INFO, value_t::number, value_t::number_real, token_t::primary, value_t::string, value_t::type, V_NUM, V_NUM_REAL, V_STR, and token_t::value.
Here is the call graph for this function:References avrdude_message(), MSG_INFO, and yytext.
Here is the call graph for this function:| int read_config | ( | const char * | file | ) |
References avrdude_message(), fopen_utf8(), infile, lineno, MSG_INFO, progname, yyin, yylex_destroy(), and yyparse().
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| int read_config_builtin | ( | ) |
References avrdude_message(), infile, lineno, MSG_INFO, progname, yy_delete_buffer(), yy_scan_bytes(), yylex_destroy(), and yyparse().
Referenced by avrdude_main().
Here is the call graph for this function:
Here is the caller graph for this function:| TOKEN * string | ( | char * | text | ) |
References avrdude_message(), malloc(), MSG_INFO, new_token(), value_t::string, TKN_STRING, value_t::type, V_STR, token_t::value, and yyerror().
Referenced by Slic3r::client::macro_processor::macro_processor(), igl::readOFF(), and igl::readWRL().
Here is the call graph for this function:
Here is the caller graph for this function:| void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
| YY_BUFFER_STATE yy_scan_bytes | ( | const char * | base, |
| size_t | size | ||
| ) |
| int yyerror | ( | char * | errmsg, |
| ... | |||
| ) |
References avrdude_message(), infile, lineno, MSG_INFO, and progname.
Referenced by assign_pin(), assign_pin_list(), dup_string(), hexnumber(), new_token(), parse_cmdbits(), string(), which_opcode(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int yylex_destroy | ( | void | ) |
| int yywarning | ( | char * | errmsg, |
| ... | |||
| ) |
References avrdude_message(), infile, lineno, MSG_INFO, and progname.
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int yywrap | ( | void | ) |
| AVRMEM* current_mem |
Referenced by init_config(), and yyparse().
| AVRPART* current_part |
Referenced by init_config(), and yyparse().
| PROGRAMMER* current_prog |
Referenced by assign_pin(), assign_pin_list(), init_config(), and yyparse().
| double default_bitclock |
Referenced by avrdude_main(), and yyparse().
| char default_parallel[PATH_MAX] |
Referenced by avrdude_main(), and yyparse().
| char default_programmer[MAX_STR_CONST] |
Referenced by avrdude_main(), and yyparse().
| int default_safemode |
Referenced by avrdude_main(), and yyparse().
| char default_serial[PATH_MAX] |
Referenced by avrdude_main(), and yyparse().
| const char* infile |
Referenced by ihex2b(), init_config(), read_config(), read_config_builtin(), igl::readCSV(), srec2b(), yyerror(), yyparse(), and yywarning().
| int lineno |
Referenced by ihex2b(), init_config(), jtagmkII_chip_erase32(), jtagmkII_close32(), jtagmkII_flash_clear_pagebuffer32(), jtagmkII_flash_erase32(), jtagmkII_flash_lock32(), jtagmkII_flash_write_page32(), jtagmkII_paged_load32(), jtagmkII_paged_write32(), jtagmkII_reset32(), jtagmkII_smc_init32(), read_config(), read_config_builtin(), srec2b(), yyerror(), yyparse(), and yywarning().
| LISTID number_list |
Referenced by assign_pin_list(), cleanup_config(), init_config(), and yyparse().
| LISTID part_list |
Referenced by avr910_initialize(), avrdude_main(), cleanup_config(), init_config(), and yyparse().
| LISTID programmers |
Referenced by avrdude_main(), cleanup_config(), init_config(), list_programmers(), locate_programmer(), sort_programmers(), walk_programmers(), and yyparse().
| char string_buf[MAX_STR_CONST] |
| while yptr * string_buf_ptr = '\r' |
| LISTID string_list |
Referenced by cleanup_config(), init_config(), parse_cmdbits(), and yyparse().
|
extern |
Referenced by pyytext().