keybuk / libnih

NIH Utility Library
GNU General Public License v2.0
89 stars 28 forks source link

Update dbus code generator to allow for empty lists for type 'as' #4

Closed xnox closed 11 years ago

xnox commented 11 years ago

Upstart when in user-session mode, needs to pass lists over dbus connection which may be empty.

This drops the != NULL check for NULL terminated arrays and moves the iteration loop inside an 'if' statement.

vorlonofportland commented 11 years ago

Hi Scott, The branch includes a number of changes to the test cases, to address the changed code autogeneration. What further testing would you like to see here?

keybuk commented 11 years ago

It should have a specific test of an empty list

On Thu, Sep 12, 2013 at 10:51 PM, vorlonofportland <notifications@github.com

wrote:

Hi Scott, The branch includes a number of changes to the test cases, to address the changed code autogeneration. What further testing would you like to see here?

— Reply to this email directly or view it on GitHubhttps://github.com/keybuk/libnih/pull/4#issuecomment-24374601 .

Have you ever, ever felt like this? Had strange things happen? Are you going round the twist?

xnox commented 11 years ago

Updated with test case from Steve.