@@ -50,7 +50,7 @@ collect_error(connectionObject *conn, char **error)
5050 *
5151 * Valid mode are [r|w|rw|n][t|b]
5252 */
53- static int
53+ RAISES_NEG static int
5454_lobject_parse_mode (const char * mode )
5555{
5656 int rv = 0 ;
@@ -147,7 +147,7 @@ _lobject_unparse_mode(int mode)
147147
148148/* lobject_open - create a new/open an existing lo */
149149
150- int
150+ RAISES_NEG int
151151lobject_open (lobjectObject * self , connectionObject * conn ,
152152 Oid oid , const char * smode , Oid new_oid , const char * new_file )
153153{
@@ -237,7 +237,7 @@ lobject_open(lobjectObject *self, connectionObject *conn,
237237
238238/* lobject_close - close an existing lo */
239239
240- static int
240+ RAISES_NEG static int
241241lobject_close_locked (lobjectObject * self , char * * error )
242242{
243243 int retvalue ;
@@ -270,7 +270,7 @@ lobject_close_locked(lobjectObject *self, char **error)
270270 return retvalue ;
271271}
272272
273- int
273+ RAISES_NEG int
274274lobject_close (lobjectObject * self )
275275{
276276 PGresult * pgres = NULL ;
@@ -292,7 +292,7 @@ lobject_close(lobjectObject *self)
292292
293293/* lobject_unlink - remove an lo from database */
294294
295- int
295+ RAISES_NEG int
296296lobject_unlink (lobjectObject * self )
297297{
298298 PGresult * pgres = NULL ;
@@ -326,7 +326,7 @@ lobject_unlink(lobjectObject *self)
326326
327327/* lobject_write - write bytes to a lo */
328328
329- Py_ssize_t
329+ RAISES_NEG Py_ssize_t
330330lobject_write (lobjectObject * self , const char * buf , size_t len )
331331{
332332 Py_ssize_t written ;
@@ -353,7 +353,7 @@ lobject_write(lobjectObject *self, const char *buf, size_t len)
353353
354354/* lobject_read - read bytes from a lo */
355355
356- Py_ssize_t
356+ RAISES_NEG Py_ssize_t
357357lobject_read (lobjectObject * self , char * buf , size_t len )
358358{
359359 Py_ssize_t n_read ;
@@ -377,7 +377,7 @@ lobject_read(lobjectObject *self, char *buf, size_t len)
377377
378378/* lobject_seek - move the current position in the lo */
379379
380- int
380+ RAISES_NEG int
381381lobject_seek (lobjectObject * self , int pos , int whence )
382382{
383383 PGresult * pgres = NULL ;
@@ -405,7 +405,7 @@ lobject_seek(lobjectObject *self, int pos, int whence)
405405
406406/* lobject_tell - tell the current position in the lo */
407407
408- int
408+ RAISES_NEG int
409409lobject_tell (lobjectObject * self )
410410{
411411 PGresult * pgres = NULL ;
@@ -432,7 +432,7 @@ lobject_tell(lobjectObject *self)
432432
433433/* lobject_export - export to a local file */
434434
435- int
435+ RAISES_NEG int
436436lobject_export (lobjectObject * self , const char * filename )
437437{
438438 PGresult * pgres = NULL ;
@@ -461,7 +461,7 @@ lobject_export(lobjectObject *self, const char *filename)
461461
462462#if PG_VERSION_HEX >= 0x080300
463463
464- int
464+ RAISES_NEG int
465465lobject_truncate (lobjectObject * self , size_t len )
466466{
467467 int retvalue ;
0 commit comments