File: c89.html

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (12 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<body>
<h1> librnd - C89 </h1>

Most of the code base is written in C89, with a few exceptions
written in C99 (gtk, because it's not C89-compatible). When adding
new code, keep it C89. Especially watch out for these:
<ul>
	<li> comment: always use /* */, never //
	<li> don't mix variable declaration with code - open a new {} block, which will also scope your new variables, or better yet, split up the function into smaller, static functions, the compiler will inline them anyway
	<li> try to avoid vararg macros, use vararg functions instead
</ul>