Changes between Version 29 and Version 30 of CodeStyle


Ignore:
Timestamp:
04/21/22 18:09:24 (2 years ago)
Author:
flichtenheld
Comment:

Fix return type placement

Legend:

Unmodified
Added
Removed
Modified
  • CodeStyle

    v29 v30  
    33The OpenVPN 2.4+ coding style is based on the Allman style, e.g.:
    44{{{#!c
    5 void myfunction(int a, int b)
     5void
     6myfunction(int a, int b)
    67{
    78    const char *dummy = "Hello world!";
     
    2728The maximum line length is 80 characters.  When statements exceed this length, wrap them by aligning with the appropriate (, or otherwise using a single indent (ie 4 spaces) on the new line.  For example:
    2829{{{#!c
    29 void my_function(void)
     30void
     31my_function(void)
    3032{
    3133    if (variable_with_artificially_long_name_1 != 0