mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
Added support for include directories with the new '-I' argument of the
'read_verilog' command
This commit is contained in:
parent
6c4cbc03c2
commit
a99c224157
3 changed files with 24 additions and 4 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "frontends/ast/ast.h"
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <list>
|
||||
|
||||
namespace VERILOG_FRONTEND
|
||||
{
|
||||
|
@ -47,7 +48,7 @@ namespace VERILOG_FRONTEND
|
|||
}
|
||||
|
||||
// the pre-processor
|
||||
std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::map<std::string, std::string> pre_defines_map);
|
||||
std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::map<std::string, std::string> pre_defines_map, const std::list<std::string> include_dirs);
|
||||
|
||||
// the usual bison/flex stuff
|
||||
extern int frontend_verilog_yydebug;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue