* vfs.c: Make the last argument to MC_OP non-empty in the

definition of MC_HANDLEOP.  Needed for Mac OS X.
Reported by Wim Rijnders <wimrijnders@home.nl>
This commit is contained in:
Pavel Roskin 2002-11-11 02:03:35 +00:00
parent 9db4ae7e2f
commit e5140f37d4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-11-10 Pavel Roskin <proski@gnu.org>
* vfs.c: Make the last argument to MC_OP non-empty in the
definition of MC_HANDLEOP. Needed for Mac OS X.
Reported by Wim Rijnders <wimrijnders@home.nl>
2002-11-08 Pavel Roskin <proski@gnu.org> 2002-11-08 Pavel Roskin <proski@gnu.org>
* extfs/a: Set environment to force date and time format * extfs/a: Set environment to force date and time format

View File

@ -443,7 +443,7 @@ mc_open (const char *filename, int flags, ...)
#define MC_NAMEOP(name, inarg, callarg) \ #define MC_NAMEOP(name, inarg, callarg) \
MC_OP (name, inarg, callarg, path = vfs_canon (path); vfs = vfs_type (path);, g_free (path); ) MC_OP (name, inarg, callarg, path = vfs_canon (path); vfs = vfs_type (path);, g_free (path); )
#define MC_HANDLEOP(name, inarg, callarg) \ #define MC_HANDLEOP(name, inarg, callarg) \
MC_OP (name, inarg, callarg, if (handle == -1) return -1; vfs = vfs_op (handle);, ) MC_OP (name, inarg, callarg, if (handle == -1) return -1; vfs = vfs_op (handle);, ;)
MC_HANDLEOP(read, (int handle, char *buffer, int count), (vfs_info (handle), buffer, count) ) MC_HANDLEOP(read, (int handle, char *buffer, int count), (vfs_info (handle), buffer, count) )