Commit Graph

26 Commits

Author SHA1 Message Date
Frediano Ziglio
2379fcd6a5 style: Specify the possibility of "pragma once" usage
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber <ssheribe@redhat.com>
2019-08-12 08:18:28 +01:00
Frediano Ziglio
ed68d491fd Do not check for HAVE_CONFIG_H
This should always be defined and including config.h is a requirement.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
2019-04-30 09:26:55 +01:00
Christophe de Dinechin
afb90c1640 Add mention of fall-through comments
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-09 11:47:45 +01:00
Christophe de Dinechin
b34478a652 Add mention of header guards
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-09 10:11:30 +00:00
Frediano Ziglio
5088afb05a style: Update style to include some C++ element
This style is used by other SPICE projects like spice-streaming-agent.
See discussion "Coding style and naming conventions for C++" at
https://lists.freedesktop.org/archives/spice-devel/2018-January/041562.html.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Lukáš Hrázký <lhrazky@redhat.com>
2018-02-08 14:26:10 +00:00
Christophe de Dinechin
c2faefc2e1 Fix indentation in macro example
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-07 21:11:58 +00:00
Christophe de Dinechin
9417d77bef Fix grammatical error
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-07 21:11:52 +00:00
Christophe de Dinechin
c05c12f0ed Update copyright date
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-07 21:11:46 +00:00
Frediano Ziglio
7e395c3984 style: Change boolean style convention
Following
https://lists.freedesktop.org/archives/spice-devel/2017-February/035800.html
, the consensus was to use 'bool' rather than 'gboolean', and to use
true/false rather than TRUE/FALSE. New code should attempt to follow
the new style.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-02-27 12:35:25 +00:00
Frediano Ziglio
5277ac8921 style: Group together indentation sections
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-02-27 11:53:37 +00:00
Frediano Ziglio
1e6bdba552 style: Specify function definition indentation
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-10-11 10:28:22 +01:00
Li Zhijian
42db9054d1 docs/spice_style.txt: fix typo
'then' -> 'than'
'character' -> 'characters'

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
2016-09-13 16:44:47 +02:00
Frediano Ziglio
091d6400e4 style: Add some abbreviations
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-05-25 14:43:03 +01:00
Frediano Ziglio
4e7572b41d style: Sort abbreviations alphabetically
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-05-25 14:42:57 +01:00
Frediano Ziglio
a3c0859122 style: Add an abbreviation
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2016-05-20 05:53:57 +01:00
Frediano Ziglio
9fd82215d1 style: Add some documentation for names
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-05-18 00:24:37 +01:00
Frediano Ziglio
7673b388f5 style: put some notes on inclusion order
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-05-12 15:29:21 +01:00
Frediano Ziglio
448f037a3c style: use capital case for C language
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:09 +01:00
Frediano Ziglio
0149b37946 style: remove outdated void argument
For C is better to have void instead of arguments as otherwise
K&R rules apply.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:06 +01:00
Frediano Ziglio
04c238e09e style: update file name style
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:05 +01:00
Frediano Ziglio
fb336b8a1c style: update copyright lines
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:03 +01:00
Frediano Ziglio
586a07a2d3 style: fix condition indentation example
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:01 +01:00
Frediano Ziglio
a3871e62a7 style: we are now using capital FIXME and TODO
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:53:29 +01:00
Frediano Ziglio
12a7005a2f style: remove documentation for C++
C++ usage was removed with spicec (the old client).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 09:51:18 +01:00
Frediano Ziglio
7f439a8b6c style: remove spice client section
Spice client is no more in this repository and also the style was changed

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 09:47:51 +01:00
Frediano Ziglio
fafeb957c6 converts Spice_style.odt to asciidoc spice_style.txt
The conversion try keeps the content as is no matter if updated or not.
Asciidoc format is already used for manual.
Using a text format make easier to see git diff and send patches.
Also it's easier to convert to different format and copy to web pages.

Related: https://bugs.freedesktop.org/show_bug.cgi?id=95258

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-10 17:45:15 +01:00