From f1ddc12b68b4e4c8087962de25260470e6df2bea Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Tue, 8 Sep 2026 18:27:39 -0700 Subject: Add tuxanci2 files --- handbook/codestyle | 57 ------------------------------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 handbook/codestyle (limited to 'handbook/codestyle') diff --git a/handbook/codestyle b/handbook/codestyle deleted file mode 100644 index 0e6a765..0000000 --- a/handbook/codestyle +++ /dev/null @@ -1,57 +0,0 @@ -~~~ Code style ~~~ -- based on K&R conventions -- line length: 80 characters -- comments: /* like this */ - - -%%% If statements -if (var <= 64) { - return TRUE; -} else if (var - vor >= 64 && - var + vor <= 128) { - return TRUE; -} else { - return FALSE; -} - - -%%% Switch statement -/* between case blocks could be one empty line if they are enough big */ -switch (var) { - case 10: - return 3; - break; - case 20: - return 30; - break; - default: - return 0; - break; -} - - -%%% Header files -#ifndef FOO_H -#define FOO_H - -#include -#include "bar.h" - -#define FOO 1 -#define BAR 2 - -typedef struct foobar_struct { - int foo; - char *bar; -} foobar_t; - -typedef struct { - int foo; - char *bar; -} barfoo_t; - -/* breaking lines only when longer than 80 characters or for special purposes */ -extern foobar_t *foo_new(int faa, int fae, - char *bor, char *ber); - -#endif /* FOO_H */ -- cgit v1.2.3