patch-2.4.0-test1 linux/scripts/mkdep.c
Next file: linux/CREDITS
Previous file: linux/scripts/kernel-doc
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed May 24 08:29:47 2000
- Orig file:
v2.3.99-pre9/linux/scripts/mkdep.c
- Orig date:
Tue May 23 15:31:37 2000
diff -u --recursive --new-file v2.3.99-pre9/linux/scripts/mkdep.c linux/scripts/mkdep.c
@@ -285,8 +285,8 @@
*/
#define MAX2(a,b) ((a)>(b)?(a):(b))
#define MIN2(a,b) ((a)<(b)?(a):(b))
-#define MAX6(a,b,c,d,e,f) (MAX2(a,MAX2(b,MAX2(c,MAX2(d,MAX2(e,f))))))
-#define MIN6(a,b,c,d,e,f) (MIN2(a,MIN2(b,MIN2(c,MIN2(d,MIN2(e,f))))))
+#define MAX5(a,b,c,d,e) (MAX2(a,MAX2(b,MAX2(c,MAX2(d,e)))))
+#define MIN5(a,b,c,d,e) (MIN2(a,MIN2(b,MIN2(c,MIN2(d,e)))))
@@ -304,7 +304,7 @@
* About 98% of the CPU time is spent here, and most of that is in
* the 'start' paragraph. Because the current characters are
* in a register, the start loop usually eats 4 or 8 characters
- * per memory read. The MAX6 and MIN6 tests dispose of most
+ * per memory read. The MAX5 and MIN5 tests dispose of most
* input characters with 1 or 2 comparisons.
*/
void state_machine(const char * map, const char * end)
@@ -317,8 +317,8 @@
start:
GETNEXT
__start:
- if (current > MAX6('/','\'','"','#','C','_')) goto start;
- if (current < MIN6('/','\'','"','#','C','_')) goto start;
+ if (current > MAX5('/','\'','"','#','C')) goto start;
+ if (current < MIN5('/','\'','"','#','C')) goto start;
CASE('/', slash);
CASE('\'', squote);
CASE('"', dquote);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)