- Timestamp:
- Dec 2, 2007 1:02:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/function.c
r1171 r1307 2563 2563 /* the simple cases */ 2564 2564 if (var1 == var2) 2565 return variable_buffer_output (o, "", 1); /* eq */2565 return variable_buffer_output (o, "", 0); /* eq */ 2566 2566 if (!var1 || !var2) 2567 2567 return variable_buffer_output (o, argv[2], strlen(argv[2])); 2568 2568 if (var1->value == var2->value) 2569 return variable_buffer_output (o, "", 1); /* eq */2569 return variable_buffer_output (o, "", 0); /* eq */ 2570 2570 if (!var1->recursive && !var2->recursive) 2571 2571 { 2572 2572 if ( var1->value_length == var2->value_length 2573 2573 && !memcmp (var1->value, var2->value, var1->value_length)) 2574 return variable_buffer_output (o, "", 1); /* eq */2574 return variable_buffer_output (o, "", 0); /* eq */ 2575 2575 2576 2576 /* ignore trailing and leading blanks */ … … 2593 2593 l_simple_compare: 2594 2594 if (!memcmp (s1, s2, e1 - s1)) 2595 return variable_buffer_output (o, "", 1); /* eq */2595 return variable_buffer_output (o, "", 0); /* eq */ 2596 2596 return comp_vars_ne (o, s1, e1, s2, e2, argv[2], funcname); 2597 2597 } … … 2614 2614 /* both empty after stripping? */ 2615 2615 if (s1 == e1 && s2 == e2) 2616 return variable_buffer_output (o, "", 1); /* eq */2616 return variable_buffer_output (o, "", 0); /* eq */ 2617 2617 2618 2618 /* optimist. */ 2619 2619 if ( e1 - s1 == e2 - s2 2620 2620 && !memcmp(s1, s2, e1 - s1)) 2621 return variable_buffer_output (o, "", 1); /* eq */2621 return variable_buffer_output (o, "", 0); /* eq */ 2622 2622 2623 2623 /* compare up to the first '$' or the end. */ … … 2724 2724 error (NILF, _("$(%s): strptime(%s,%s,) -> %s\n"), funcname, 2725 2725 argv[1], input_format, p ? p : "<null>"); 2726 return variable_buffer_output (o, "", 1);2726 return variable_buffer_output (o, "", 0); 2727 2727 } 2728 2728 } … … 2908 2908 } 2909 2909 2910 return variable_buffer_output (o, "", 1);2910 return variable_buffer_output (o, "", 0); 2911 2911 } 2912 2912 #endif
Note:
See TracChangeset
for help on using the changeset viewer.