annotate src/msvc-of-miscellaneous-1.patch @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents b799b3f81a1e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3344
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1 diff -ur miscellaneous-1.0.11-orig/src/partarray.cc miscellaneous-1.0.11/src/partarray.cc
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
2 --- miscellaneous-1.0.11-orig/src/partarray.cc 2011-02-25 08:33:33 +0000
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
3 +++ miscellaneous-1.0.11/src/partarray.cc 2011-08-28 21:37:56 +0100
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
4 @@ -18,6 +18,7 @@
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
5 */
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
6
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
7 #include <octave/oct.h>
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 +#include <octave/oct-locbuf.h>
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 #include <octave/ov-struct.h>
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
11 template<class NDA>
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
12 @@ -43,7 +44,8 @@
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
13 Array<int> nidx (dim_vector (maxdims, 1));
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
14 // Octave-3.2.4 reports "missing symbol" with Array<Array< > >,
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
15 // though 3.3.54+ does not
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
16 - Array<octave_idx_type> bidc [maxdims], eidc [maxdims];
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
17 + OCTAVE_LOCAL_BUFFER (Array<octave_idx_type>, bidc, maxdims);
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
18 + OCTAVE_LOCAL_BUFFER (Array<octave_idx_type>, eidc, maxdims);
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19 //
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
20 Array<octave_idx_type> step (dim_vector (maxdims, 1));
b799b3f81a1e [MSVC] Patch miscellaneous pkg to remove unsupported C99 syntax.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 step(0) = 1;