Files
libgphoto2/camlibs
Marcus Meissner b06e5d1216 From: Axel Waggershauser <awagger@web.de>
1) introduce C_PARAMS and C_PARAMS_MSG along the lines of C_MEM

2) replace CHECK_NULL with C_PARAMS

3) replace the pattern

    if ( something ) return GP_ERROR_BAD_PARAMETERS;

with

    C_PARAMS ( !something );

I went over the whole patch again to check that each 'something'
condition is really inverted, so I dare to suggest you don't have to
do that again ;).

4) replaced CHECK_LIST and CHECK_INDEX_RANGE with simple one-line
C_PARAMS(...) expressions

5) a couple of hunks look like this

-      if (!inet_aton (buffer, &inp)) {
-          fprintf(stderr,"failed to scan for addr in %s\n", buffer);
-          return GP_ERROR_BAD_PARAMETERS;
-      }
+     C_PARAMS_MSG (inet_aton (buffer, &inp),

so some 'lost' error messages get now properly piped into the gp_log
mechanism.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15103 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:00:32 +00:00
..
2009-02-15 20:47:12 +00:00
2014-01-01 20:27:33 +00:00
2014-01-01 20:27:33 +00:00
2014-01-01 20:27:33 +00:00
2014-06-27 05:43:38 +00:00
2014-07-01 07:52:10 +00:00
2014-01-01 20:27:33 +00:00
2014-01-01 20:27:33 +00:00
2014-06-30 06:45:57 +00:00
2014-06-30 06:26:38 +00:00
2014-06-27 05:45:16 +00:00
2014-06-27 05:45:16 +00:00
2005-04-14 21:30:58 +00:00