[PATCH 1/3] conf-parser: Pass parser state in a struct instead of function parameters.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/12/3 Tanu Kaskinen <tanuk at iki.fi>:
> I don't like long function parameter lists, and I plan to
> add some more state data to the parser which would make the
> parameter lists even longer without this refactoring.

Why not also change the pa_config_parser_cb_t prototype to accept a
parser_state struct?

Maarten


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux