mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
server: Annotate allocation functions with __WINE_(ALLOC_SIZE|DEALLOC|MALLOC).
This commit is contained in:
parent
14967933ec
commit
f3e1d897ca
Notes:
Alexandre Julliard
2023-03-01 22:55:51 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/2046
3 changed files with 5 additions and 5 deletions
|
@ -102,7 +102,7 @@ extern obj_handle_t lock_fd( struct fd *fd, file_pos_t offset, file_pos_t count,
|
||||||
extern void unlock_fd( struct fd *fd, file_pos_t offset, file_pos_t count );
|
extern void unlock_fd( struct fd *fd, file_pos_t offset, file_pos_t count );
|
||||||
extern void allow_fd_caching( struct fd *fd );
|
extern void allow_fd_caching( struct fd *fd );
|
||||||
extern void set_fd_signaled( struct fd *fd, int signaled );
|
extern void set_fd_signaled( struct fd *fd, int signaled );
|
||||||
extern char *dup_fd_name( struct fd *root, const char *name );
|
extern char *dup_fd_name( struct fd *root, const char *name ) __WINE_DEALLOC(free) __WINE_MALLOC;
|
||||||
extern void get_nt_name( struct fd *fd, struct unicode_str *name );
|
extern void get_nt_name( struct fd *fd, struct unicode_str *name );
|
||||||
|
|
||||||
extern int default_fd_signaled( struct object *obj, struct wait_queue_entry *entry );
|
extern int default_fd_signaled( struct object *obj, struct wait_queue_entry *entry );
|
||||||
|
|
|
@ -139,12 +139,12 @@ struct wait_queue_entry
|
||||||
struct thread_wait *wait;
|
struct thread_wait *wait;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void *mem_alloc( size_t size ); /* malloc wrapper */
|
extern void *mem_alloc( size_t size ) __WINE_ALLOC_SIZE(1) __WINE_DEALLOC(free) __WINE_MALLOC;
|
||||||
extern void *memdup( const void *data, size_t len );
|
extern void *memdup( const void *data, size_t len ) __WINE_ALLOC_SIZE(2) __WINE_DEALLOC(free);
|
||||||
extern void *alloc_object( const struct object_ops *ops );
|
extern void *alloc_object( const struct object_ops *ops );
|
||||||
extern void namespace_add( struct namespace *namespace, struct object_name *ptr );
|
extern void namespace_add( struct namespace *namespace, struct object_name *ptr );
|
||||||
extern const WCHAR *get_object_name( struct object *obj, data_size_t *len );
|
extern const WCHAR *get_object_name( struct object *obj, data_size_t *len );
|
||||||
extern WCHAR *default_get_full_name( struct object *obj, data_size_t *ret_len );
|
extern WCHAR *default_get_full_name( struct object *obj, data_size_t *ret_len ) __WINE_DEALLOC(free) __WINE_MALLOC;
|
||||||
extern void dump_object_name( struct object *obj );
|
extern void dump_object_name( struct object *obj );
|
||||||
extern struct object *lookup_named_object( struct object *root, const struct unicode_str *name,
|
extern struct object *lookup_named_object( struct object *root, const struct unicode_str *name,
|
||||||
unsigned int attr, struct unicode_str *name_left );
|
unsigned int attr, struct unicode_str *name_left );
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
extern int memicmp_strW( const WCHAR *str1, const WCHAR *str2, data_size_t len );
|
extern int memicmp_strW( const WCHAR *str1, const WCHAR *str2, data_size_t len );
|
||||||
extern unsigned int hash_strW( const WCHAR *str, data_size_t len, unsigned int hash_size );
|
extern unsigned int hash_strW( const WCHAR *str, data_size_t len, unsigned int hash_size );
|
||||||
extern WCHAR *ascii_to_unicode_str( const char *str, struct unicode_str *ret );
|
extern WCHAR *ascii_to_unicode_str( const char *str, struct unicode_str *ret ) __WINE_DEALLOC(free) __WINE_MALLOC;
|
||||||
extern int parse_strW( WCHAR *buffer, data_size_t *len, const char *src, char endchar );
|
extern int parse_strW( WCHAR *buffer, data_size_t *len, const char *src, char endchar );
|
||||||
extern int dump_strW( const WCHAR *str, data_size_t len, FILE *f, const char escape[2] );
|
extern int dump_strW( const WCHAR *str, data_size_t len, FILE *f, const char escape[2] );
|
||||||
extern struct fd *load_intl_file(void);
|
extern struct fd *load_intl_file(void);
|
||||||
|
|
Loading…
Reference in a new issue