Browse Source

* our_nwritten converted to a local var

git-svn-id: branches/wasm@47930 -
nickysn 4 năm trước cách đây
mục cha
commit
82e9cb0189
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      rtl/wasi/system.pp

+ 2 - 1
rtl/wasi/system.pp

@@ -31,7 +31,6 @@ type
 
 var
   our_iov: __wasi_ciovec_t;
-  our_nwritten: longint;
 
 function fd_write(fd: __wasi_fd_t;
                   iovs: P__wasi_ciovec_t;
@@ -51,6 +50,8 @@ begin
 end;
 
 procedure DebugWrite(const P: PChar);
+var
+  our_nwritten: longint;
 begin
   our_iov.buf := P;
   our_iov.buf_len := StrLen(P);