comparison toys/posix/false.c @ 694:786841fdb1e0

Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
author Rob Landley <rob@landley.net>
date Tue, 13 Nov 2012 17:14:08 -0600
parents 6df4ccc0acbe
children
comparison
equal deleted inserted replaced
693:4a5a250e0633 694:786841fdb1e0
1 /* vi: set sw=4 ts=4: 1 /* false.c - Return nonzero.
2 *
3 * false.c - Return nonzero.
4 * 2 *
5 * Copyright 2007 Rob Landley <rob@landley.net> 3 * Copyright 2007 Rob Landley <rob@landley.net>
6 * 4 *
7 * See http://opengroup.org/onlinepubs/9699919799/utilities/false.html 5 * See http://opengroup.org/onlinepubs/9699919799/utilities/false.html
8 6
9 USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN)) 7 USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN))
10 8
11 config FALSE 9 config FALSE
12 bool "false" 10 bool "false"
13 default y 11 default y
14 help 12 help
15 Return nonzero. 13 Return nonzero.
16 */ 14 */
17 15
18 #include "toys.h" 16 #include "toys.h"
19 17
20 void false_main(void) 18 void false_main(void)
21 { 19 {
22 toys.exitval = 1; 20 toys.exitval = 1;
23 } 21 }