Skip to content

Commit ae83f76

Browse files
authored
Add 'no-warn' comments for deprecated functionality. (#88)
1 parent 81485d9 commit ae83f76

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/pipe.toit

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ get-standard-pipe_ fd/int -> Stream:
3838
if file.is-open-file_ fd:
3939
standard-pipes_[fd] = file.OpenFile_.internal_ fd
4040
else:
41-
standard-pipes_[fd] = OpenPipe.from-std_ (fd-to-pipe_ pipe-resource-group_ fd)
41+
standard-pipes_[fd] = OpenPipe.from-std_ (fd-to-pipe_ pipe-resource-group_ fd) // @no-warn
4242
return standard-pipes_[fd]
4343

4444
/**
@@ -54,7 +54,7 @@ get-numbered-pipe fd/int -> Stream:
5454
if file.is-open-file_ fd:
5555
return file.OpenFile_.internal_ fd
5656
else:
57-
return OpenPipe.from-std_ (fd-to-pipe_ pipe-resource-group_ fd)
57+
return OpenPipe.from-std_ (fd-to-pipe_ pipe-resource-group_ fd) // @no-warn
5858
5959
class OpenPipeReader_ extends io.CloseableReader:
6060
pipe_/OpenPipe_
@@ -378,15 +378,15 @@ fork_ use-path stdin stdout stderr command arguments -> List
378378
flat-environment[index++] = (value == null) ? null : value.stringify
379379
exception := catch:
380380
if stdin == PIPE-CREATED:
381-
pipe := OpenPipe true
381+
pipe := OpenPipe true // @no-warn
382382
result[0] = pipe
383383
stdin = pipe.fd_
384384
if stdout == PIPE-CREATED:
385-
pipe := OpenPipe false
385+
pipe := OpenPipe false // @no-warn
386386
result[1] = pipe
387387
stdout = pipe.fd_
388388
if stderr == PIPE-CREATED:
389-
pipe := OpenPipe false
389+
pipe := OpenPipe false // @no-warn
390390
result[2] = pipe
391391
stderr = pipe.fd_
392392
fd-3 := file-descriptor-3 ? file-descriptor-3.fd_ : -1
@@ -477,7 +477,7 @@ The $environment argument is used as in $fork.
477477
to --environment/Map?=null arguments -> Stream:
478478
if arguments is string:
479479
arguments = [arguments]
480-
pipe-ends := OpenPipe true --child-process-name=arguments[0]
480+
pipe-ends := OpenPipe true --child-process-name=arguments[0] // @no-warn
481481
stdin := pipe-ends.fd_
482482
pipes := fork_ --environment=environment true stdin PIPE-INHERITED PIPE-INHERITED arguments[0] arguments
483483
pipe-ends.pid = pipes[3]
@@ -515,7 +515,7 @@ The $environment argument is used as in $fork.
515515
from --environment/Map?=null arguments -> Stream:
516516
if arguments is string:
517517
arguments = [arguments]
518-
pipe-ends := OpenPipe false --child-process-name=arguments[0]
518+
pipe-ends := OpenPipe false --child-process-name=arguments[0] // @no-warn
519519
stdout := pipe-ends.fd_
520520
pipes := fork_ --environment=environment true PIPE-INHERITED stdout PIPE-INHERITED arguments[0] arguments
521521
pipe-ends.pid = pipes[3]
@@ -549,7 +549,7 @@ The $environment argument is used as in $fork.
549549
backticks --environment/Map?=null arguments -> string:
550550
if arguments is string:
551551
arguments = [arguments]
552-
pipe-ends := OpenPipe false
552+
pipe-ends := OpenPipe false // @no-warn
553553
stdout := pipe-ends.fd_
554554
pipes := fork_ --environment=environment true PIPE-INHERITED stdout PIPE-INHERITED arguments[0] arguments
555555
child-process := pipes[3]

src/stream.toit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ interface Stream implements old-reader.Reader:
7878
Constructs a pipe to send data to a child process.
7979
*/
8080
constructor --parent-to-child/True --child-process-name="child process":
81-
return OpenPipe true --child-process-name=child-process-name
81+
return OpenPipe true --child-process-name=child-process-name // @no-warn
8282
8383
/**
8484
Constructs a pipe to receive data from a child process.
8585
*/
8686
constructor --child-to-parent/True --child-process-name="child process":
87-
return OpenPipe false --child-process-name=child-process-name
87+
return OpenPipe false --child-process-name=child-process-name // @no-warn

0 commit comments

Comments
 (0)