Skip to content

Commit

Permalink
Get rid of _t suffix
Browse files Browse the repository at this point in the history
Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <[email protected]>
  • Loading branch information
malc committed Oct 1, 2009
1 parent bc6291a commit 99a0949
Show file tree
Hide file tree
Showing 316 changed files with 3,327 additions and 3,334 deletions.
12 changes: 4 additions & 8 deletions CODING_STYLE
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ Rationale:

3. Naming

Variables are lower_case_with_underscores; easy to type and read. Structured
type names are in CamelCase; harder to type but standing out. Scalar type
names are lower_case_with_underscores_ending_with_a_t, like the POSIX
uint64_t and family. Note that this last convention contradicts POSIX
and is therefore likely to be changed.

Typedefs are used to eliminate the redundant 'struct' keyword. It is the
QEMU coding style.
Variables are lower_case_with_underscores; easy to type and read.
Structured type names are in CamelCase; harder to type but standing
out. Scalar type names are a_lower_case_beginning_with_an a or an.
Do not use _t suffix if you are including any headers.

4. Block structure

Expand Down
6 changes: 3 additions & 3 deletions balloon.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

#include "cpu-defs.h"

typedef ram_addr_t (QEMUBalloonEvent)(void *opaque, ram_addr_t target);
typedef a_ram_addr (QEMUBalloonEvent)(void *opaque, a_ram_addr target);

void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque);

void qemu_balloon(ram_addr_t target);
void qemu_balloon(a_ram_addr target);

ram_addr_t qemu_balloon_status(void);
a_ram_addr qemu_balloon_status(void);

#endif
Loading

0 comments on commit 99a0949

Please sign in to comment.