Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions examples/http/minified_server.bf
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
+><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<]>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>+>>>>>>>>>>>[-<<<<<<<<<<+>>>>>>>>>>]<<<<<<<<<<>>+>>>++>->-><<<<<
<<<<<<<<<<%[-]>[-]>[-]>[-]<<<+++>+>>+<<<%>>>>>>>>>>>>>>>>>>[>]>>[-]<<<[[-]<]<<<[-]<[-]<[
-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<[-]>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>]<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[-]>[-]+++>[-]>[-]+>[-]++>[-]>
[-]+>[-]+>[-]>[-]+>[-]>[-]+++>[-]>[-]+>>>>>>>>>>>>>>>>>>>>[-]>>[-]++++++++++++++++>[-]>[
-]>[-]>[-]>[-]>[-]>[-]>[-]<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<+]
<<<<<<<<<<%[-]>[-]>[-]>[-]<<<+++>+>>+<<<%>>>[-]>[-]>[-]>[-]<<<+++>+>>+<<<%<<<>>>>>>>>>>>
>>>>>>>[>]>>[-]<<<[[-]<]<<<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[
-]<[-]<[-]<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<[-]>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>[-<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<[-]>[-]+++>[-]>[-]+>[-]++>[-]>[-]+>[-]+>[-]>[-]+>[-]>[-]+++>[-]>[-]+>>>>>>>>>>>>>>
>>>>>>[-]>>[-]++++++++++++++++>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<+]
29 changes: 29 additions & 0 deletions examples/http/server.bf
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,35 @@ close() =======================================================================
Call close()
%

close() =======================================================================

Move to cell 51
>>>

Close the opened file

The current cell is 49
The source file descriptor is in cell 53
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above says it moves to cell 51, but this comment here says it's 49?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is confusing.


Zero all cells 49 to 52
[-]>[-]>[-]>[-]<<<

+++ > close(): 3
+ > Arg count: 1

Arg 1: int fd
(0) > Arg type: 0
+ Arg len: 1
(Arg value is already filled in)
<<<

Call close()
%

Move back to cell 48
<<<


Clean up and prepare to loop back to listen() =================================

>>>>>>>>>>>>>>>>>>[>]>>[-]<<<[[-]<]
Expand Down