Mercurial > hg > toybox
comparison toys/dmesg.c @ 237:7cb15eae1664
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jan 2008 17:25:44 -0600 |
parents | 163498bf547b |
children |
comparison
equal
deleted
inserted
replaced
236:6b292ee780ab | 237:7cb15eae1664 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 #include "toys.h" | 24 #include "toys.h" |
25 #include <sys/klog.h> | 25 #include <sys/klog.h> |
26 | 26 |
27 #define TT toy.dmesg | 27 DEFINE_GLOBALS( |
28 long level; | |
29 long size; | |
30 ) | |
31 | |
32 #define TT this.dmesg | |
28 | 33 |
29 void dmesg_main(void) | 34 void dmesg_main(void) |
30 { | 35 { |
31 // For -n just tell kernel to which messages to keep. | 36 // For -n just tell kernel to which messages to keep. |
32 if (toys.optflags & 2) { | 37 if (toys.optflags & 2) { |