aboutsummaryrefslogtreecommitdiff
path: root/docs/style-guide.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/style-guide.txt')
-rw-r--r--docs/style-guide.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/style-guide.txt b/docs/style-guide.txt
index c71f1e609..25c676ca2 100644
--- a/docs/style-guide.txt
+++ b/docs/style-guide.txt
@@ -252,7 +252,7 @@ files, you can do the following in the busybox directory:
252If you want to convert all the non-K&R vars in your file all at once, follow 252If you want to convert all the non-K&R vars in your file all at once, follow
253these steps: 253these steps:
254 254
255 - In the busybox directory type 'scripts/mk2knr.pl files-to-convert'. This 255 - In the busybox directory type 'examples/mk2knr.pl files-to-convert'. This
256 does not do the actual conversion, rather, it generates a script called 256 does not do the actual conversion, rather, it generates a script called
257 'convertme.pl' that shows what will be converted, giving you a chance to 257 'convertme.pl' that shows what will be converted, giving you a chance to
258 review the changes beforehand. 258 review the changes beforehand.
@@ -269,7 +269,7 @@ these steps:
269 269
270Please be aware of changes that have cascading effects into other files. For 270Please be aware of changes that have cascading effects into other files. For
271example, if you're changing the name of something in, say utility.c, you 271example, if you're changing the name of something in, say utility.c, you
272should probably run 'scripts/mk2knr.pl utility.c' at first, but when you run 272should probably run 'examples/mk2knr.pl utility.c' at first, but when you run
273the 'convertme.pl' script you should run it on _all_ files like so: 273the 'convertme.pl' script you should run it on _all_ files like so:
274'./convertme.pl *.[ch]'. 274'./convertme.pl *.[ch]'.
275 275
@@ -343,7 +343,7 @@ used in the code.
343 ret = my_func(bar, baz); 343 ret = my_func(bar, baz);
344 if (!ret) 344 if (!ret)
345 return -1; 345 return -1;
346 #ifdef BB_FEATURE_FUNKY 346 #ifdef CONFIG_FEATURE_FUNKY
347 maybe_do_funky_stuff(bar, baz); 347 maybe_do_funky_stuff(bar, baz);
348 #endif 348 #endif
349 349
@@ -351,7 +351,7 @@ used in the code.
351 351
352 (in .h header file) 352 (in .h header file)
353 353
354 #ifdef BB_FEATURE_FUNKY 354 #ifdef CONFIG_FEATURE_FUNKY
355 static inline void maybe_do_funky_stuff (int bar, int baz) 355 static inline void maybe_do_funky_stuff (int bar, int baz)
356 { 356 {
357 /* lotsa code in here */ 357 /* lotsa code in here */
@@ -487,7 +487,7 @@ very limited stack space (e.g., uCLinux).
487A macro is declared in busybox.h that implements compile-time selection 487A macro is declared in busybox.h that implements compile-time selection
488between xmalloc() and stack creation, so you can code the line in question as 488between xmalloc() and stack creation, so you can code the line in question as
489 489
490 RESERVE_BB_BUFFER(buffer, BUFSIZ); 490 RESERVE_CONFIG_BUFFER(buffer, BUFSIZ);
491 491
492and the right thing will happen, based on your configuration. 492and the right thing will happen, based on your configuration.
493 493