Commit f6de20d 1 parent 68d949d commit f6de20d Copy full SHA for f6de20d
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
--Eric Warmenhoven
3
3
4
4
We're not terribly particular about coding style at this early stage. However,
5
- you should follow the following basic guidelines:
5
+ you should try to follow the following basic guidelines:
6
6
7
7
=== INDENTATION ===
8
8
@@ -62,6 +62,9 @@ void foo(int a_thing, int something_else)
62
62
...
63
63
}
64
64
65
+ No-args functions should be (void), and function arguments should be separated
66
+ with a space after the comma, like this:
67
+
65
68
void baz(void)
66
69
{
67
70
foo(bluh, blah);
Original file line number Diff line number Diff line change @@ -265,16 +265,16 @@ int main(int argc, char **argv)
265
265
if (argc > 1 )
266
266
user_device_number = atoi (argv [1 ]);
267
267
268
-
269
268
if (nr_devices < 1 )
270
269
return 1 ;
271
270
272
271
if (freenect_open_device (f_ctx , & f_dev , user_device_number ) < 0 ) {
273
272
printf ("Could not open device\n" );
274
273
return 1 ;
275
274
}
276
- freenect_set_tilt_degs (f_dev ,0 );
277
- freenect_set_led (f_dev ,LED_RED );
275
+
276
+ freenect_set_tilt_degs (f_dev , 0 );
277
+ freenect_set_led (f_dev , LED_RED );
278
278
freenect_set_depth_callback (f_dev , depth_cb );
279
279
freenect_set_rgb_callback (f_dev , rgb_cb );
280
280
freenect_set_rgb_format (f_dev , FREENECT_FORMAT_RGB );
You can’t perform that action at this time.
0 commit comments