Skip to content

Commit

Permalink
Document INI_HANDLER_LINENO compile-time option
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Dec 29, 2016
1 parent 30a8592 commit f5609c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Download a release, browse the source, or read about [how to use inih in a DRY s
* **Stack vs heap:** By default, inih allocates its line buffer on the stack. To allocate on the heap using `malloc` instead, specify `-DINI_USE_STACK=0`.
* **Stop on first error:** By default, inih keeps parsing the rest of the file after an error. To stop parsing on the first error, add `-DINI_STOP_ON_FIRST_ERROR=1`.
* **Maximum line length:** The default maximum line length is 200 bytes. To override this, add something like `-DINI_MAX_LINE=1000`.
* **Report line numbers:** By default, the `ini_handler` callback doesn't receive the line number as a parameter. If you need that, add `-DINI_HANDLER_LINENO=1`.


## Simple example in C ##
Expand Down

0 comments on commit f5609c8

Please sign in to comment.