~vcs-imports/pmake/main

Viewing all changes in revision 1415.

  • Committer: rillig
  • Date: 2020-05-03 12:10:28 UTC
  • Revision ID: rillig-20200503121028-ugtg5fdbeh9yb01j
usr.bin/make: refactor brk_string

The variables are renamed to reflect to which memory region each pointer
belongs.

The variable "curlen" was always zero.

The type of "ch" has changed to char, and its scope is now limited to
its actual use.

Comparisons of pointers are now consistently written as p != NULL
instead of !p, like character comparisons are written as ch != '\0'.

The "store_words_buf" is updated when the function returns, not before.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: