forked from jaliste/latexila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HACKING
59 lines (42 loc) · 1.85 KB
/
HACKING
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Guidelines for LaTeXila
=======================
LaTeXila source code is maintained using the Git version control system and is
available at the following location:
git://git.gnome.org/latexila
A Web Interface is available at:
http://git.gnome.org/browse/latexila
You can download the source code from the Git repository by doing:
$ git clone git://git.gnome.org/latexila
Later, to take the new commits you just have to do:
$ git pull
If you want to contribute to LaTeXila, contact the main developer (see the
file AUTHORS).
To create a patch, make first one or several commits (in another branch) and
then use the 'git format-patch' command. You can submit your patch to the
GNOME bugzilla.
Alternatively, if you have a GitHub account, you can make a pull request.
A GitHub repository is available, so you can fork it easily:
https://github.com/swilmet/latexila
There are some rules to follow when coding:
- indentation: 4 spaces
- lines: 90 characters maximum (in some cases it can be a little more)
- no trailing spaces
- /* ... */ comments for delimiting code sections
- // ... comments otherwise (e.g. for explaining just one line)
- some spaces almost everywhere:
- function (blah); // not function(blah);
- int num = 5; // not int num=5;
- if (! foo) // not if (!foo)
- for (int i = 0 ; i < max ; i++) // not for(int i=0;i<max;i++)
- etc...
- do not use 'var' for declaring variables, unless the type is very long
- same coding style everywhere
How to generate the C code from Vala files?
See the file "INSTALL".
How to debug LaTeXila with gdb?
Run CMake with this option: -DCMAKE_BUILD_TYPE=Debug
Here is how you can get the backtrace after a crash:
$ gdb ./latexila
> run
[segmentation fault]
> bt