Skip to content

Cleanup contract comment string generation get_source #11

@JAChapmanII

Description

@JAChapmanII

In get_source in input.c:

  char buf[1024 + 4]{};
  char *res = buf;
  size_t len = 1024;

should use obstacks.

      int s = expstart.column - 1;
      int l = expend.column - expstart.column + 1;

could be int l = expend.column - s; and then the if could probably be simplified as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions