Coding Conventions

General

C and C++

The formatting indicated below can be accomplished by

/usr/local/gnu/bin/indent -i2 -kr file.c
expand file.c

General

File

Naming

Functions

Indentation and Bracketing

Comments

There isn't a particularly rational reason for the style below, except that it seems to work and it's what a lot of the existing code does. It's a lot easier to read code if it's all formatted the same.

Other Conventions


Java Coding Conventions

Java coding conventions:

Tcl/Tk Coding Conventions

summary of conventions (Xiaotao Wu, Oct. 2000)

Others

Translations


Last updated by Henning Schulzrinne