@@ -186,42 +186,52 @@ NULL pointer for use in a ``return`` statement.
186186 then it constructs a tuple object whose first item is the *ierr* value and whose
187187 second item is the corresponding error message (gotten from
188188 :c:func: `FormatMessage `), and then calls ``PyErr_SetObject(PyExc_WindowsError,
189- object)``. This function always returns *NULL*. Availability: Windows.
189+ object)``. This function always returns *NULL*.
190+
191+ .. availability:: Windows.
190192
191193
192194.. c:function:: PyObject* PyErr_SetExcFromWindowsErr(PyObject *type, int ierr)
193195
194196 Similar to :c:func: `PyErr_SetFromWindowsErr `, with an additional parameter
195- specifying the exception type to be raised. Availability: Windows.
197+ specifying the exception type to be raised.
198+
199+ .. availability :: Windows.
196200
197201
198202.. c :function :: PyObject* PyErr_SetFromWindowsErrWithFilename (int ierr, const char *filename)
199203
200204 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilenameObject `, but the
201205 filename is given as a C string. *filename * is decoded from the filesystem
202- encoding (:func: `os.fsdecode `). Availability: Windows.
206+ encoding (:func: `os.fsdecode `).
207+
208+ .. availability:: Windows.
203209
204210
205211.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObject(PyObject *type, int ierr, PyObject *filename)
206212
207213 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilenameObject `, with an
208214 additional parameter specifying the exception type to be raised.
209- Availability: Windows.
215+
216+ .. availability :: Windows.
210217
211218
212219.. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObjects (PyObject *type, int ierr, PyObject *filename, PyObject *filename2)
213220
214221 Similar to :c:func: `PyErr_SetExcFromWindowsErrWithFilenameObject `,
215222 but accepts a second filename object.
216- Availability: Windows.
223+
224+ .. availability :: Windows.
217225
218226 .. versionadded :: 3.4
219227
220228
221229.. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilename (PyObject *type, int ierr, const char *filename)
222230
223231 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilename `, with an additional
224- parameter specifying the exception type to be raised. Availability: Windows.
232+ parameter specifying the exception type to be raised.
233+
234+ .. availability :: Windows.
225235
226236
227237.. c :function :: PyObject* PyErr_SetImportError (PyObject *msg, PyObject *name, PyObject *path)
0 commit comments