~ubuntu-branches/ubuntu/raring/libcaca/raring

« back to all changes in this revision

Viewing changes to doc/style.dox

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar
  • Date: 2010-02-08 01:40:59 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100208014059-9q4av8pze8p7uw3i
Tags: 0.99.beta17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id$ */
2
 
 
3
1
/** \page libcaca-style Libcaca coding style
4
2
 
5
3
 \section sty1 General guidelines
47
45
 
48
46
 \code
49
47
int function(int);
50
 
 
 
48
 \endcode
 
49
 
 
50
 A space can be inserted after keywords such as \c for, \c while or \c if,
 
51
 but consistency with the rest of the page is encouraged:
 
52
 
 
53
 \code
51
54
if(a == b)
52
55
    return;
 
56
 
 
57
if (p == NULL)
53
58
 \endcode
54
59
 
55
60
 Do not put parentheses around return values: