Merge branch 'master' into netbsd-support
[oweals/gnunet.git] / .indent.pro
1 //LRN extension for return values for prototypes
2 -nddd
3 //GNU (default) style:  
4 //
5 //-nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2
6 //-ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -nprs -psl -saf -sai
7 //-saw -nsc -nsob
8 //
9 // -------
10 // int foo;
11 // char *bar;
12 // bar = strdup ("whe-e-e");
13 // -------
14 // int foo;
15 // char *bar;
16 //
17 // bar = strdup ("whe-e-e");
18 // -------
19 // Broken in indent-2.2.10
20 --blank-lines-after-declarations
21 //--no-blank-lines-after-declarations
22 //
23 // -------
24 // int foo (...) {
25 // ...
26 // }
27 // void bar (...) {
28 // ...
29 // }
30 // -------
31 // int foo (...) {
32 // ...
33 // }
34 //
35 // void bar (...) {
36 // ...
37 // }
38 // -------
39 --blank-lines-after-procedures
40 //
41 // -------
42 // /*
43 //    blah
44 //  */
45 // -------
46 // /*
47 //  * blah
48 //  */
49 // -------
50 // WARNING: tends to turn commented-out code chunks into star-walled comment blocks
51 --start-left-side-of-comments
52 //
53 // -------
54 // if (foo) { bar }
55 // -------
56 // if (foo)
57 //   {
58 //     bar
59 //   }
60 // -------
61 --braces-after-if-line
62 //
63 // -------
64 // if (foo)
65 //   {
66 //     bar
67 //   } else {
68 //     baz
69 //   }
70 // -------
71 // if (foo)
72 //   {
73 //     bar
74 //   }
75 //   else
76 //   {
77 //     baz
78 //   }
79 // -------
80 --dont-cuddle-else
81 //
82 // -------
83 // do
84 //   {
85 //     foo
86 //   }
87 //   while (bar)
88 // -------
89 // do
90 //   {
91 //     foo
92 //   } while (bar)
93 // -------
94 --dont-cuddle-do-while
95 //
96 // -------
97 // switch (foo)
98 //   {
99 //     case bar:
100 //       baz
101 //   }
102 // -------
103 // switch (foo)
104 //   {
105 //   case bar:
106 //     baz
107 //   }
108 // -------
109 --case-indentation0
110 //
111 // -------
112 // switch (foo)
113 //   {
114 //   case bar:
115 //     {
116 //       baz
117 //     }
118 //   }
119 // -------
120 // switch (foo)
121 //   {
122 //   case bar:
123 //   {
124 //     baz
125 //   }
126 //   }
127 // -------
128 // Yes, it looks wrong. However, braces inside cases should not be used like this anyway.
129 --case-brace-indentation0
130 //
131 // -------
132 // for (i = 0; foobar(i); i++);
133 // -------
134 // for (i = 0; foobar(i); i++) ;
135 // -------
136 --space-special-semicolon
137 //
138 // -------
139 // foo(bar)
140 // -------
141 // foo (bar)
142 // -------
143 --space-after-procedure-calls
144 //
145 // -------
146 // (int *)foo;
147 // (my_custom_type_that_was_not_passed_with_T_argument_see_below *)bar;
148 // -------
149 // (int *) foo;
150 // (my_custom_type_that_was_not_passed_with_T_argument_see_below *)bar;
151 // -------
152 --space-after-cast
153 //
154 // -------
155 // sizeof(foobar)
156 // -------
157 // sizeof (foobar)
158 // -------
159 -bs
160 //
161 // -------
162 // for(foo;bar;baz)
163 // -------
164 // for (foo;bar;baz)
165 // -------
166 --space-after-for
167 //
168 // -------
169 // if(foo)
170 // -------
171 // if (foo)
172 // -------
173 --space-after-if
174 //
175 // -------
176 // while(foo)
177 // -------
178 // while (foo)
179 // -------
180 --space-after-while
181 //
182 // -------
183 // if ( foo ( a > b ) | ( bar ( baz ) ) )
184 // -------
185 // if (foo (a > b) | (bar (baz)))
186 // -------
187 --no-space-after-parentheses
188 //
189 // -------
190 // int     a;
191 // char  b;
192 // -------
193 // int a;
194 // char b;
195 // -------
196 --declaration-indentation0
197 //
198 // -------
199 // int a,
200 //  b,
201 //  c;
202 // -------
203 // int a, b, c;
204 // -------
205 --no-blank-lines-after-commas
206 //
207 // -------
208 // int foo (int bar, char *baz, long wheee, intptr_t zool);
209 // -------
210 // int foo (
211 //     int bar,
212 //     char *baz,
213 //     long wheee,
214 //     intptr_t zool);
215 // -------
216 --break-function-decl-args
217 //
218 // -------
219 // int foo (
220 //     int bar,
221 //     char *baz,
222 //     long wheee,
223 //     intptr_t zool
224 //     );
225 // -------
226 // int foo (
227 //     int bar,
228 //     char *baz,
229 //     long wheee,
230 //     intptr_t zool);
231 // -------
232 --dont-break-function-decl-args-end
233 //
234 // -------
235 // int foo (bar);
236 // -------
237 // int
238 // foo (bar);
239 // -------
240 --procnames-start-lines
241 //
242 // -------
243 // struct foo { int a; };
244 // -------
245 // struct foo
246 // {
247 //   int a;
248 // };
249 // -------
250 --braces-after-struct-decl-line
251 //
252 // -------
253 // int foo (bar) {
254 //   baz
255 // }
256 // -------
257 // int foo (bar)
258 // {
259 //   baz
260 // }
261 // -------
262 --braces-after-func-def-line
263 //
264 // -------
265 // if (foo)
266 // {
267 // while (bar)
268 // {
269 // baz;
270 // }
271 // }
272 // -------
273 // if (foo)
274 // {
275 //   while (bar)
276 //   {
277 //     baz;
278 //   }
279 // }
280 // -------
281 --indent-level2
282 //
283 // -------
284 // if (foo)
285 //   {
286 //     bar;
287 //   }
288 // -------
289 // if (foo)
290 // {
291 //   bar;
292 // }
293 // -------
294 --brace-indent0
295 //
296 // -------
297 // boom = foo (bar) - baz +
298 //   whee (zool);
299 // rules = power (mono, mwahahahahahahahaahahahahahahahahahahhahahahahaha,
300 // stereo);
301 // -------
302 // boom = foo (bar) - baz +
303 //     whee (zool);
304 // rules = power (mono, mwahahahahahahahaahahahahahahahahahahhahahahahaha,
305 //     stereo);
306 // -------
307 --continuation-indentation4
308 //
309 // -------
310 // rules = power (mono, mwahahahahahahahaahahahahahahahahahahhahahahahaha,
311 // stereo);
312 // -------
313 // rules = power (mono, mwahahahahahahahaahahahahahahahahahahhahahahahaha,
314 //                stereo);
315 // -------
316 --continue-at-parentheses
317 //--dont-line-up-parentheses
318 //
319 // -------
320 // while ((((i < 2 &&
321 //         k > 0) || p == 0) &&
322 //     q == 1) ||
323 //   n = 0)
324 // -------
325 // while ((((i < 2 &&
326 //     k > 0) || p == 0) &&
327 //     q == 1) ||
328 //     n = 0)
329 // -------
330 --paren-indentation2
331 //
332 // -------
333 // char *
334 // create_world (x, y, scale)
335 // int x;
336 // int y;
337 // float scale;
338 // {
339 //   ...
340 // }
341 // -------
342 // char *
343 // create_world (x, y, scale)
344 //   int x;
345 //   int y;
346 //   float scale;
347 // {
348 //   ...
349 // }
350 // -------
351 --parameter-indentation2
352 //
353 // -------
354 // if (longlonglonglonglonglonglong
355 // <tab character>short)
356 // -------
357 // if (longlonglonglonglonglonglong
358 //      short)
359 // -------
360 --no-tabs
361 //
362 // -------
363 // #if WINDOWS
364 // #if ZOOL
365 // #define WHEE GNUNET_NO
366 // #else
367 // #define WHEE GNUNET_YES
368 // #endif
369 // #endif
370 // -------
371 // #if WINDOWS
372 // #  if ZOOL
373 // #    define WHEE GNUNET_NO
374 // #  else
375 // #    define WHEE GNUNET_YES
376 // #  endif
377 // #endif
378 // -------
379 --preprocessor-indentation0
380 //
381 // -------
382 // int foo (bar)
383 // {
384 //   if (c)
385 //     goto end;
386 //   if (a > 0)
387 //   {
388 //     begin:
389 //     a = 0;
390 //     if (b != 0)
391 //       goto begin;
392 //   }
393 //   end:
394 //   return 0;
395 // }
396 // -------
397 // int foo (bar)
398 // {
399 //   if (c)
400 //     goto end;
401 //   if (a > 0)
402 //   {
403 // begin:
404 //     a = 0;
405 //     if (b != 0)
406 //       goto begin;
407 //   }
408 // end:
409 //   return 0;
410 // }
411 // -------
412 --indent-label0
413 //
414 // -------
415 // line-longer-than-80-chars /* some comment, not counted */
416 // -------
417 // 80-chars-long-line /* some comment, not counted */
418 // rest-of-the-line
419 // -------
420 --line-length80
421 //
422 // -------
423 // /* comment-line-longer-than-80-chars */
424 // -------
425 // /* 80-chars-long-comment-line
426 //    rest-of-the-line */
427 // -------
428 --comment-line-length80
429 //
430 // -------
431 // if (mask
432 //     && ((mask[0] == '\0')
433 //     || (mask[1] == '\0'
434 //     && ((mask[0] == '0') || (mask[0] == '*')))))
435 // -------
436 // if (mask &&
437 //     ((mask[0] == '\0') ||
438 //     (mask[1] == '\0' &&
439 //     ((mask[0] == '0') || (mask[0] == '*')))))
440 // -------
441 --break-after-boolean-operator
442 //
443 // -------
444 // if (mask
445 //     && ((mask[0] == '\0')
446 //     || (mask[1] == '\0' && ((mask[0] == '0') || (mask[0] == '*')))))
447 // -------
448 // if (mask  /* this newline is preserved, override it with --ignore-newlines */
449 //     && ((mask[0] == '\0')
450 //         || (mask[1] == '\0' &&
451 //             ((mask[0] == '0') || (mask[0] == '*')))))
452 // -------
453 // For now just keep ignoring. After everything settles down, we might want to start putting custom newlines where it is appropriate
454 // --honour-newlines
455 --ignore-newlines
456 //
457 //
458 //
459 // Also add a list of typedefed types here, like this:
460 // -T <typedefedtype1>
461 // -T <typedefedtype2>
462 // for this:
463 // typedef int typedefedtype1;
464 // typedef char *typedefedtype2;
465 // The following is obtained by running a Python script i wrote on src subdir:
466 -T GNUNET_MysqlDataProcessor
467 -T GNUNET_DHT_MessageReceivedHandler
468 -T DHTLOG_MESSAGE_TYPES
469 -T GNUNET_MysqlDataProcessor
470 -T GNUNET_DV_MessageReceivedHandler
471 -T p2p_dv_MESSAGE_NeighborInfo
472 -T p2p_dv_MESSAGE_Data
473 -T p2p_dv_MESSAGE_Disconnect
474 -T GNUNET_FS_QueueStart
475 -T GNUNET_FS_QueueStop
476 -T SuspendSignalFunction
477 -T GNUNET_FS_TEST_UriContinuation
478 -T GNUNET_FS_TreeBlockProcessor
479 -T GNUNET_FS_TreeProgressCallback
480 -T GSF_ConnectedPeerIterator
481 -T GSF_GetMessageCallback
482 -T GSF_PeerReserveCallback
483 -T GSF_PendingRequestReplyHandler
484 -T GSF_PendingRequestIterator
485 -T GSF_LocalLookupContinuation
486 -T GNUNET_ARM_Callback
487 -T GNUNET_TRANSPORT_ATS_AllocationNotification
488 -T GNUNET_ATS_AddressSuggestionCallback
489 -T GNUNET_BLOCK_GetKeyFunction
490 -T GNUNET_CHAT_JoinCallback
491 -T GNUNET_CHAT_MessageCallback
492 -T GNUNET_CHAT_MemberListCallback
493 -T GNUNET_CHAT_MessageConfirmation
494 -T GNUNET_CHAT_RoomIterator
495 -T GNUNET_CLIENT_MessageHandler
496 -T GNUNET_CLIENT_ShutdownTask
497 -T GNUNET_FileNameCallback
498 -T GNUNET_CONFIGURATION_Iterator
499 -T GNUNET_CONFIGURATION_Section_Iterator
500 -T GNUNET_CONNECTION_AccessCheck
501 -T GNUNET_CONNECTION_Receiver
502 -T GNUNET_CONNECTION_TransmitReadyNotify
503 -T GNUNET_HashCodeIterator
504 -T GNUNET_CONTAINER_HashMapIterator
505 -T GNUNET_CONTAINER_HeapCostType
506 -T GNUNET_CONTAINER_HeapIterator
507 -T GNUNET_CORE_ConnectEventHandler
508 -T GNUNET_CORE_PeerStatusEventHandler
509 -T GNUNET_CORE_DisconnectEventHandler
510 -T GNUNET_CORE_MessageCallback
511 -T GNUNET_CORE_StartupCallback
512 -T GNUNET_CORE_ControlContinuation
513 -T GNUNET_CORE_PeerConfigurationInfoCallback
514 -T GNUNET_CRYPTO_HashCompletedCallback
515 -T GNUNET_DATACACHE_Iterator
516 -T GNUNET_DATACACHE_DeleteNotifyCallback
517 -T DiskUtilizationChange
518 -T PluginDatumProcessor
519 -T PluginGetRandom
520 -T GNUNET_DATASTORE_ContinuationWithStatus
521 -T GNUNET_DATASTORE_DatumProcessor
522 -T GNUNET_DHT_GetIterator
523 -T GNUNET_DHT_FindPeerProcessor
524 -T GNUNET_DHT_ReplyProcessor
525 -T GNUNET_DISK_DirectoryIteratorCallback
526 -T GNUNET_FRAGMENT_MessageProcessor
527 -T GNUNET_DEFRAGMENT_AckProcessor
528 -T GNUNET_FS_KeywordIterator
529 -T GNUNET_FS_ProgressCallback
530 -T GNUNET_FS_FileInformationProcessor
531 -T GNUNET_FS_DataReader
532 -T GNUNET_FS_FileProcessor
533 -T GNUNET_FS_DirectoryScanner
534 -T GNUNET_FS_PublishContinuation
535 -T GNUNET_FS_IndexedFileProcessor
536 -T GNUNET_FS_NamespaceInfoProcessor
537 -T GNUNET_FS_IdentifierProcessor
538 -T GNUNET_FS_DirectoryEntryProcessor
539 -T GNUNET_HELLO_GenerateAddressListCallback
540 -T GNUNET_HELLO_AddressIterator
541 -T GNUNET_MESH_MessageCallback
542 -T GNUNET_MESH_TunnelEndHandler
543 -T GNUNET_MESH_ApplicationType
544 -T GNUNET_MESH_TunnelDisconnectHandler
545 -T GNUNET_MESH_TunnelConnectHandler
546 -T GNUNET_MESH_MessageCallback
547 -T GNUNET_MESH_TunnelEndHandler
548 -T GNUNET_MESH_ApplicationType
549 -T GNUNET_MESH_TunnelDisconnectHandler
550 -T GNUNET_MESH_TunnelConnectHandler
551 -T GNUNET_NAT_AddressCallback
552 -T GNUNET_NAT_ReversalCallback
553 -T GNUNET_NAT_TestCallback
554 -T GNUNET_NSE_Callback
555 -T GNUNET_OS_NetworkInterfaceProcessor
556 -T GNUNET_OS_LineProcessor
557 -T GNUNET_PEERINFO_Processor
558 -T GNUNET_PEER_Id
559 -T GNUNET_PLUGIN_Callback
560 -T GNUNET_PROGRAM_Main
561 -T GNUNET_PSEUDONYM_Iterator
562 -T GNUNET_RESOLVER_AddressCallback
563 -T GNUNET_RESOLVER_HostnameCallback
564 -T GNUNET_SCHEDULER_TaskIdentifier
565 -T GNUNET_SCHEDULER_Task
566 -T GNUNET_SCHEDULER_select
567 -T GNUNET_SERVER_MessageCallback
568 -T GNUNET_SERVER_DisconnectCallback
569 -T GNUNET_SERVER_MessageTokenizerCallback
570 -T GNUNET_SERVICE_Main
571 -T GNUNET_SIGNAL_Handler
572 -T GNUNET_STATISTICS_Iterator
573 -T GNUNET_STATISTICS_Callback
574 -T GNUNET_TESTING_NotifyHostkeyCreated
575 -T GNUNET_TESTING_NotifyDaemonRunning
576 -T GNUNET_TESTING_NotifyCompletion
577 -T GNUNET_TESTING_NotifyConnections
578 -T GNUNET_TESTING_NotifyConnection
579 -T GNUNET_TESTING_NotifyTopology
580 -T GNUNET_TESTING_STATISTICS_Iterator
581 -T GNUNET_TRANSPORT_SessionEnd
582 -T GNUNET_TRANSPORT_AddressNotification
583 -T GNUNET_TRANSPORT_TransmitContinuation
584 -T GNUNET_TRANSPORT_TransmitFunction
585 -T GNUNET_TRANSPORT_DisconnectFunction
586 -T GNUNET_TRANSPORT_AddressStringCallback
587 -T GNUNET_TRANSPORT_AddressPrettyPrinter
588 -T GNUNET_TRANSPORT_CheckAddress
589 -T GNUNET_TRANSPORT_AddressToString
590 -T GNUNET_TRANSPORT_ReceiveCallback
591 -T GNUNET_TRANSPORT_NotifyConnect
592 -T GNUNET_TRANSPORT_NotifyDisconnect
593 -T GNUNET_TRANSPORT_AddressLookUpCallback
594 -T GNUNET_TRANSPORT_HelloUpdateCallback
595 -T GNUNET_TRANSPORT_BlacklistCallback
596 -T sa_family_t
597 -T SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
598 -T PLIBC_SEARCH__compar_fn_t
599 -T _win_comparison_fn_t
600 -T PLIBC_SEARCH_ACTION
601 -T PLIBC_SEARCH_VISIT
602 -T PLIBC_SEARCH__action_fn_t
603 -T PLIBC_SEARCH__free_fn_t
604 -T MESH_TunnelNumber
605 -T TransmissionContinuation
606 -T GNUNET_TESTING_ConnectionProcessor
607 -T SetupContinuation
608 -T glp_prob
609 -T glp_iocp
610 -T glp_smcp
611 -T GNUNET_TRANSPORT_ATS_AddressNotification
612 -T GNUNET_TRANSPORT_ATS_ResultCallback
613 -T GST_BlacklistTestContinuation
614 -T GST_HelloCallback
615 -T GST_NeighbourSendContinuation
616 -T GST_NeighbourIterator
617 -T GST_ValidationAddressCallback
618 -T u32
619 -T u16
620 -T u8
621 -T __le32
622 -T EmailAddress
623 -T SMTPMessage
624 -T GNUNET_TRANSPORT_TESTING_connect_cb
625 -T ieee80211_mgt_beacon_t
626 -T ieee80211_mgt_auth_t
627 -T u64
628 -T u32
629 -T u16
630 -T u8
631 -T uLong
632 -T uLong
633 -T KBlock_secret_key
634 -T MyNSGetExecutablePathProto
635 -T MeshClient