aboutsummaryrefslogtreecommitdiff
path: root/HACKING
blob: cb7d5f02fa2fd134f616126a5c18a8fcb8178037 (plain)
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
Hacking
=======

This document describes how to start hacking on the swodec project.
Make sure you read through the README file before continuing.


Coding style
------------

This project uses the Linux kernel coding style where appropiate, see
<https://www.kernel.org/doc/html/latest/process/coding-style.html> for details.

Amendments to the Linux kernel coding style:

 - Do not use goto statements.
 - Always declare variables at the beginng of a function.
 - Do not assign values to variables at declaration time.


Contributions
-------------

The following ways can be used to submit a contribution to the swodec project:

 - Send patches generated with `git format-patch`.
 - Push your changes to a public Git repository and send the URL where to pull
   them from.

In any case, send directly to <swo-dev@marcschink.de>.
Before submitting, please consider the following:

 - Every single patch must be compilable.
 - Develop your contribution against the current Git master branch.
 - Check your contribution for memory leaks and similar errors by using
   *valgrind*.


Bug reports
-----------

Send bug reports directly to <swo-dev@marcschink.de>.
Please try to include all of the following information in your report:

 - Instructions to reproduce the bug (e.g., command-line invocations)
 - Trace data which causes the problem
 - Debug output of swodec and libswo
 - Information about your environment:
   - Version of swodec and libswo
   - Operating system (e.g., Debian GNU/Linux 8.4)
 - Backtraces if swodec is crashing.

If the bug report is for a regression, additionally include the information
above about the working version where appropiate.

Please develop and attach a patch that solves the reported bug, if possible.
See the guidelines for contributions above.