-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace file content representation with rope crdt (#26)
- Loading branch information
Showing
50 changed files
with
1,919 additions
and
1,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import std/[json, options] | ||
import scripting_api, misc/myjsonutils | ||
|
||
## This file is auto generated, don't modify. | ||
|
||
|
||
proc collab_connectCollaborator_void_int_wasm(arg: cstring): cstring {.importc.} | ||
proc connectCollaborator*(port: int = 6969) = | ||
var argsJson = newJArray() | ||
argsJson.add block: | ||
when int is JsonNode: | ||
port | ||
else: | ||
port.toJson() | ||
let argsJsonString = $argsJson | ||
let res {.used.} = collab_connectCollaborator_void_int_wasm( | ||
argsJsonString.cstring) | ||
|
||
|
||
proc collab_hostCollaborator_void_int_wasm(arg: cstring): cstring {.importc.} | ||
proc hostCollaborator*(port: int = 6969) = | ||
var argsJson = newJArray() | ||
argsJson.add block: | ||
when int is JsonNode: | ||
port | ||
else: | ||
port.toJson() | ||
let argsJsonString = $argsJson | ||
let res {.used.} = collab_hostCollaborator_void_int_wasm( | ||
argsJsonString.cstring) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.