Skip to content

cleanup spacing in src #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/api-data.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ SQLite.TEXT=3
SQLite.BLOB=4
SQLite.NULL=5

# Encodings, used for registering functions.
# Encodings, used for registering functions.
SQLite.UTF8=1
4 changes: 2 additions & 2 deletions src/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Database
try
# Store the SQL string in memory. The string will be consumed, one statement
# at a time, by sqlite3_prepare_v2_sqlptr.
# Note that if we want to allocate as much memory as could _possibly_ be used, we can
# Note that if we want to allocate as much memory as could _possibly_ be used, we can
# we allocate bytes equal to 4* the number of chars in the sql string.
# It would be faster, but this is probably a premature optimization
nextSqlPtr = allocateUTF8OnStack(sql)
Expand Down Expand Up @@ -484,7 +484,7 @@ class Database
sqlite3_result_error(cx,error,-1)
return

# Return the result of the user defined function to SQLite
# Return the result of the user defined function to SQLite
switch typeof(result)
when 'boolean' then sqlite3_result_int(cx,if result then 1 else 0)
when 'number' then sqlite3_result_double(cx, result)
Expand Down
2 changes: 1 addition & 1 deletion src/exported_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"_sqlite3_result_int64",
"_sqlite3_result_error",
"_RegisterExtensionFunctions"
]
]
1 change: 0 additions & 1 deletion src/exported_runtime_methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
"stackSave",
"stackRestore"
]

1 change: 0 additions & 1 deletion src/shell-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ else if (typeof define === 'function' && define['amd']) {
else if (typeof exports === 'object'){
exports["Module"] = initSqlJs;
}

2 changes: 1 addition & 1 deletion src/shell-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ var initSqlJs = function (moduleConfig) {
// of the options, and has the side effect of reducing emcc's efforts to modify the module if its output were to change in the future.
// That's a nice side effect since we're handling the modularization efforts ourselves
module = undefined;

// The emcc-generated code and shell-post.js code goes below,
// meaning that all of it runs inside of this promise. If anything throws an exception, our promise will abort