# HG changeset patch # User anatofuz # Date 1581770156 -32400 # Node ID cb6045bce1d5bb532b69e9164335e2033679072d # Parent 0e1c64818c0dccdf85f6a308911f9249c2d7c157 fix_build_about_inode diff -r 0e1c64818c0d -r cb6045bce1d5 src/impl/fs_impl.cbc --- a/src/impl/fs_impl.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/fs_impl.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -115,6 +115,7 @@ goto allocinode(fs, dev, sb, next(...)); } +typedef struct inode inode; __code iupdatefs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) { struct buf *bp; diff -r 0e1c64818c0d -r cb6045bce1d5 src/impl/fs_impl_private.cbc --- a/src/impl/fs_impl_private.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/fs_impl_private.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -26,6 +26,7 @@ typedef struct buf buf; typedef struct dinode dinode; +typedef struct inode inode; __code allocinode_loopcheck(struct fs_impl* fs_impl, uint inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(...)){ //:skip if( inum < sb->ninodes){ diff -r 0e1c64818c0d -r cb6045bce1d5 src/impl/vm_impl.cbc --- a/src/impl/vm_impl.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/vm_impl.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -158,6 +158,7 @@ goto init_inituvm_check_sz(vm, pgdir, init, sz, next(...)); } +typedef struct inode inode; __code loaduvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* addr, struct inode* ip, uint offset, uint sz, __code next(...)) { Gearef(cbc_context, vm_impl)->pgdir = pgdir; Gearef(cbc_context, vm_impl)->addr = addr; diff -r 0e1c64818c0d -r cb6045bce1d5 src/impl/vm_impl_private.cbc --- a/src/impl/vm_impl_private.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/vm_impl_private.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -76,6 +76,7 @@ goto loaduvm_check_PTE_SZ(vm_impl, next(ret, ...)); } +typedef struct inode inode; __code loaduvm_check_PTE_SZ(struct vm_impl* vm_impl, uint sz, uint i, uint n, struct inode* ip, uint pa, uint offset, __code next(int ret, ...)) { if (sz - i < PTE_SZ) { diff -r 0e1c64818c0d -r cb6045bce1d5 src/pipe.cbc --- a/src/pipe.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/pipe.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -11,7 +11,6 @@ #define __ncode __code -/* struct pipe { struct spinlock lock; char data[PIPESIZE]; @@ -20,7 +19,6 @@ int readopen; // read fd is still open int writeopen; // write fd is still open }; -*/ int pipealloc(struct file **f0, struct file **f1) {