Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions extern/btyacc/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ char *get_line() {
/* VM: Process %include line */
if(strncmp(&line[0], "%include ", 9)==0) {
int ii=0;
for(i=9; line[i]!='\n' && line[i]!=' '; i++, ii++) {
inc_file_name[ii] = line[i];
}
inc_file_name[ii] = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it related with libtommath update? :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, of course, please pay attention for:

#8887
#8893

are pending. We are preparing about ten more corrections... (not fount #include files, c++20 standard error etc.)
It would be much easier for us to debug and testing...

char *inc_file_name = line+9;
while (isspace(*inc_file_name)) inc_file_name++;
i = strlen(inc_file_name);
while (i > 0 && isspace(inc_file_name[i-1])) --i;
inc_file_name[i] = 0;

if(inc_file) {
error(lineno, 0, 0, "Nested include lines are not allowed");
}
Expand Down
Loading