/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
                           THE HACKING DOCUMENT
                    What to know when hacking on GPump

1) It is written in C/GLib

2) Use "1TBS" brace stryle.

3) Use two spaces for indentation

4) Use a spacious coding style. Put room between things as much as you can.

Examples:

Naming:
Files should be capitalised if, and only if they represent a type and or class.
files that only contain helper functions should not be capitalised.

Types should be capitalised but not variable or function names, this is to
comply with other GLib/GObject/GTK+ project naming conventions.

Pointers:

MyType * my_valiable;
MyType * my_function ();

Code example:

typedef struct Foo Foo;

struct Foo {
  gint some_int;
  GString * some_gstring;
  GIOStream * some_io_stream;
};

Foo * foo_new () {
  /* code goes here */
}