Cleanup: comments (long lines) in editors

This commit is contained in:
2019-04-22 00:18:34 +10:00
parent f8b2268f4f
commit 0ac990d088
139 changed files with 1249 additions and 753 deletions

View File

@@ -78,12 +78,16 @@ struct UnitSettings;
/**
* There are important things to note here for code using numinput:
* - Values passed to #applyNumInput() should be valid and are stored as default ones (val_org), if it is not EDITED.
* - bool returned by #applyNumInput should be used to decide whether to apply numinput-specific post-process to data.
* - Once #applyNumInput has been called, #hasNumInput returns a valid value to decide whether to use numinput
* as drawstr source or not (i.e. to call #outputNumInput).
* - Values passed to #applyNumInput() should be valid and are stored as default ones (val_org),
* if it is not EDITED.
* - bool returned by #applyNumInput should be used to decide whether to apply
* numinput-specific post-process to data.
* - Once #applyNumInput has been called,
* #hasNumInput returns a valid value to decide whether to use numinput as drawstr source or not
* (i.e. to call #outputNumInput).
*
* Those two steps have to be separated (so do not use a common call to #hasNumInput() to do both in the same time!).
* Those two steps have to be separated
* (so do not use a common call to #hasNumInput() to do both in the same time!).
*/
void initNumInput(NumInput *n);