Mercurial > mxe-octave
annotate src/msvc-of-miscellaneous-1.patch @ 3649:154b7f3af5eb
bump version to 0.0.28
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 Jul 2014 09:59:47 -0400 |
parents | b799b3f81a1e |
children |
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; |