# HG changeset patch # User jwe # Date 975538733 0 # Node ID 078fde449ebcaf0772e573e057b914d36b9e256a # Parent b65077dfa1b15ad3d03c451abb494b71812d3cfe [project @ 2000-11-29 22:58:52 by jwe] diff --git a/liboctave/Array-idx.h b/liboctave/Array-idx.h --- a/liboctave/Array-idx.h +++ b/liboctave/Array-idx.h @@ -196,7 +196,7 @@ { int max_idx = lhs_idx.max () + 1; if (max_idx > lhs_len) - lhs.resize (max_idx, 0.0); + lhs.resize (max_idx, static_cast (0)); } if (rhs_len == n) diff --git a/liboctave/Array2-idx.h b/liboctave/Array2-idx.h --- a/liboctave/Array2-idx.h +++ b/liboctave/Array2-idx.h @@ -493,7 +493,7 @@ int new_nr = max_row_idx > lhs_nr ? max_row_idx : lhs_nr; \ int new_nc = max_col_idx > lhs_nc ? max_col_idx : lhs_nc; \ \ - lhs.resize (new_nr, new_nc, 0.0); \ + lhs.resize (new_nr, new_nc, static_cast (0)); \ } \ } \ while (0) diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2000-11-29 John W. Eaton + + * Array-idx.h (assign): When resizing, cast fill value to LT. + * Array2-idx.h (MAYBE_RESIZE_LHS): Likewise. + 2000-11-28 John W. Eaton * MArray-defs.h: Protect against multiple inclusion. diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-11-29 John W. Eaton + * mkdefs: Read and print one line at a time, so we can force + patterns to match only at the beginning of a line. + * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since they are not needed to paste strings together and picky compilers choke on them. diff --git a/src/mkdefs b/src/mkdefs --- a/src/mkdefs +++ b/src/mkdefs @@ -2,11 +2,13 @@ sed -n -e '/^ *BEGIN_INSTALL_BUILTIN/{ : loop - N + s/BEGIN_INSTALL_BUILTIN// + s/^#[ \t][ \t]*[0-9][0-9]*.*$// /END_INSTALL_BUILTIN/b done + p + n b loop : done - s/BEGIN_INSTALL_BUILTIN// s/END_INSTALL_BUILTIN// p -}' \ No newline at end of file +}'