diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 00:29:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 00:29:34 +0000 |
commit | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (patch) | |
tree | a96439088c2f51ee2f71159515153687043bffe7 | |
parent | 448d30ee17aaab4faa0a927c5dcba1bc990a44db (diff) | |
download | busybox-w32-26bc57d8b26425f23f4be974cce7bf35c95c9a1a.tar.gz busybox-w32-26bc57d8b26425f23f4be974cce7bf35c95c9a1a.tar.bz2 busybox-w32-26bc57d8b26425f23f4be974cce7bf35c95c9a1a.zip |
ash: improve comments
-rw-r--r-- | shell/ash.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/shell/ash.c b/shell/ash.c index 8c99e30ef..9c3216243 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -204,32 +204,33 @@ struct globals_misc { | |||
204 | 204 | ||
205 | /* Rarely referenced stuff */ | 205 | /* Rarely referenced stuff */ |
206 | #if ENABLE_ASH_RANDOM_SUPPORT | 206 | #if ENABLE_ASH_RANDOM_SUPPORT |
207 | int32_t random_galois_LFSR; /* Galois LFSR (fast but weak) */ | 207 | /* Random number generators */ |
208 | uint32_t random_LCG; /* LCG1 (fast but weak) */ | 208 | int32_t random_galois_LFSR; /* Galois LFSR (fast but weak). signed! */ |
209 | uint32_t random_LCG; /* LCG (fast but weak) */ | ||
209 | #endif | 210 | #endif |
210 | pid_t backgndpid; /* pid of last background process */ | 211 | pid_t backgndpid; /* pid of last background process */ |
211 | smallint job_warning; /* user was warned about stopped jobs (can be 2, 1 or 0). */ | 212 | smallint job_warning; /* user was warned about stopped jobs (can be 2, 1 or 0). */ |
212 | }; | 213 | }; |
213 | extern struct globals_misc *const ash_ptr_to_globals_misc; | 214 | extern struct globals_misc *const ash_ptr_to_globals_misc; |
214 | #define G_misc (*ash_ptr_to_globals_misc) | 215 | #define G_misc (*ash_ptr_to_globals_misc) |
215 | #define rootpid (G_misc.rootpid ) | 216 | #define rootpid (G_misc.rootpid ) |
216 | #define shlvl (G_misc.shlvl ) | 217 | #define shlvl (G_misc.shlvl ) |
217 | #define minusc (G_misc.minusc ) | 218 | #define minusc (G_misc.minusc ) |
218 | #define curdir (G_misc.curdir ) | 219 | #define curdir (G_misc.curdir ) |
219 | #define physdir (G_misc.physdir ) | 220 | #define physdir (G_misc.physdir ) |
220 | #define arg0 (G_misc.arg0 ) | 221 | #define arg0 (G_misc.arg0 ) |
221 | #define exception_handler (G_misc.exception_handler) | 222 | #define exception_handler (G_misc.exception_handler) |
222 | #define exception (G_misc.exception ) | 223 | #define exception (G_misc.exception ) |
223 | #define suppressint (G_misc.suppressint ) | 224 | #define suppressint (G_misc.suppressint ) |
224 | #define intpending (G_misc.intpending ) | 225 | #define intpending (G_misc.intpending ) |
225 | //#define exsig (G_misc.exsig ) | 226 | //#define exsig (G_misc.exsig ) |
226 | #define pendingsig (G_misc.pendingsig ) | 227 | #define pendingsig (G_misc.pendingsig ) |
227 | #define isloginsh (G_misc.isloginsh ) | 228 | #define isloginsh (G_misc.isloginsh ) |
228 | #define nullstr (G_misc.nullstr ) | 229 | #define nullstr (G_misc.nullstr ) |
229 | #define optlist (G_misc.optlist ) | 230 | #define optlist (G_misc.optlist ) |
230 | #define sigmode (G_misc.sigmode ) | 231 | #define sigmode (G_misc.sigmode ) |
231 | #define gotsig (G_misc.gotsig ) | 232 | #define gotsig (G_misc.gotsig ) |
232 | #define trap (G_misc.trap ) | 233 | #define trap (G_misc.trap ) |
233 | #define random_galois_LFSR (G_misc.random_galois_LFSR) | 234 | #define random_galois_LFSR (G_misc.random_galois_LFSR) |
234 | #define random_LCG (G_misc.random_LCG ) | 235 | #define random_LCG (G_misc.random_LCG ) |
235 | #define backgndpid (G_misc.backgndpid ) | 236 | #define backgndpid (G_misc.backgndpid ) |