# HG changeset patch # User anatofuz # Date 1581243768 -32400 # Node ID 37a3a8661f8af5c4817955c6359e7c80847e3693 # Parent e64c8734a80289c0cdf33255e961383526649ecc tweak... diff -r e64c8734a802 -r 37a3a8661f8a src/gearsTools/update_implheader.pl --- a/src/gearsTools/update_implheader.pl Sun Feb 09 19:18:42 2020 +0900 +++ b/src/gearsTools/update_implheader.pl Sun Feb 09 19:22:48 2020 +0900 @@ -96,7 +96,7 @@ } close $fh; open $fh, '>', $header_file; - print $fh "typedef struct $impl impl $interface {\n"; + print $fh "typedef struct $impl impl $interface {\n"; map { print $fh " $_\n"} @$write_codes; print $fh " __code next(...);\n"; print $fh "} $impl;\n"; diff -r e64c8734a802 -r 37a3a8661f8a src/impl/fs_impl.h --- a/src/impl/fs_impl.h Sun Feb 09 19:18:42 2020 +0900 +++ b/src/impl/fs_impl.h Sun Feb 09 19:22:48 2020 +0900 @@ -1,4 +1,4 @@ -typedef struct fs_impl impl fs { +typedef struct fs_impl impl fs { __code allocinode(Type* fs_impl, uint dev, struct superblock* sb, __code next(...)); __code allocinode_loop(Type* fs_impl, uint inum, uint dev, short type, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(...)); __code allocinode_loopcheck(Type* fs_impl, uint inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(...)); @@ -16,8 +16,8 @@ __code writei_loopcheck(Type* fs_impl, uint tot, uint m, char* src, uint off, uint n, __code next(...)); __code writei_loop(Type* fs_impl, struct inode* ip, struct buf* bp, uint tot, uint m, char* src, uint off, uint n, __code next(...)); __code writei_noloop(Type* fs_impl, struct inode* ip, uint n, uint off, __code next(int ret, ...)); - __code dirlookup_loopcheck(Type* fs_impl, struct inode* dp, char* name, uint off, uint* poff, struct dirent* de, __code next(...)); - __code dirlookup_loop(Type* fs_impl, struct inode* dp, char* name, uint off, uint inum, uint* poff, struct dirent* de, __code next(int ret, ...)); + __code dirlookup_loopcheck(Type* fs_impl, struct inode* dp, char* name, uint off, uint* poff, dirent* de, __code next(...)); + __code dirlookup_loop(Type* fs_impl, struct inode* dp, char* name, uint off, uint inum, uint* poff, dirent* de, __code next(int ret, ...)); __code dirlookup_noloop(Type* fs_impl, __code next(int ret, ...)); __code dirlink_namecheck(Type* fs_impl, struct inode* ip, __code next(int ret, ...)); __code dirlink_loopcheck(Type* fs_impl, struct dirent* de, struct inode* dp, uint off, __code next(...));