Mercurial > hg > octave-avbm
changeset 8766:8cb2a144f321
genprops.awk (emit_source): don't use + to concatenate strings
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 16 Feb 2009 14:43:34 -0500 |
parents | cf2163418140 |
children | 026c6732ec7a |
files | src/ChangeLog src/genprops.awk |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-02-16 John W. Eaton <jwe@octave.org> + + * genprops.awk (emit_source): Don't use + to concatenate strings. + 2009-02-16 Jaroslav Hajek <highegg@gmail.com> * data.cc (NATIVE_REDUCTION): Use boolNDArray::any for native bool
--- a/src/genprops.awk +++ b/src/genprops.awk @@ -539,12 +539,12 @@ if (type[i] == "radio_property" || type[i] == "color_property") { k = index (dval, "{"); - dval = substr (dval, k+1); - l = index (dval, "}"); + dval = substr (dval, k+1); + l = index (dval, "}"); if (k > 0 && l > 0) - dval = "\"" + substr (dval, 1, l-1) + "\""; - else - dval = "octave_value ()"; + dval = "\"" substr (dval, 1, l-1) "\""; + else + dval = "octave_value ()"; } printf (" m[\"%s\"] = %s%s;\n", name[i], dval,