mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for later versions of MSVC. VS6 claims that fortran is a reserved word
This commit is contained in:
parent
8fd7b0c1a7
commit
c36625b05d
6 changed files with 19 additions and 6 deletions
|
@ -570,11 +570,11 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
error (i.e. the object does not have a buffer interface or
|
||||
it is not working).
|
||||
|
||||
If fortran is 'F', then if the object is multi-dimensional,
|
||||
If fort is 'F', then if the object is multi-dimensional,
|
||||
then the data will be copied into the array in
|
||||
Fortran-style (first dimension varies the fastest). If
|
||||
fortran is 'C', then the data will be copied into the array
|
||||
in C-style (last dimension varies the fastest). If fortran
|
||||
fort is 'C', then the data will be copied into the array
|
||||
in C-style (last dimension varies the fastest). If fort
|
||||
is 'A', then it does not matter and the copy will be made
|
||||
in whatever way is more efficient.
|
||||
|
||||
|
@ -585,7 +585,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
/* Copy the data from the src buffer to the buffer of destination
|
||||
*/
|
||||
|
||||
PyAPI_FUNC(int) PyBuffer_IsContiguous(Py_buffer *view, char fortran);
|
||||
PyAPI_FUNC(int) PyBuffer_IsContiguous(Py_buffer *view, char fort);
|
||||
|
||||
|
||||
PyAPI_FUNC(void) PyBuffer_FillContiguousStrides(int ndims,
|
||||
|
@ -595,7 +595,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
char fort);
|
||||
|
||||
/* Fill the strides array with byte-strides of a contiguous
|
||||
(Fortran-style if fortran is 'F' or C-style otherwise)
|
||||
(Fortran-style if fort is 'F' or C-style otherwise)
|
||||
array of the given shape with the given number of bytes
|
||||
per element.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue