Skip to content

Commit

Permalink
cleanup spacing in src (#324)
Browse files Browse the repository at this point in the history
* cleanup: add newline to src/exported_functions.json

* cleanup: remove extra line from end of src/exported_runtime_methods.json

* cleanup: remove trailing whitespace from src/api-data.coffee

* cleanup: remove trailing whitespace from src/api.coffee

* cleanup: remove trailing whitespace from src/shell-pre.js

* cleanup: remove extra line with whitespace from src/shell-post.js
  • Loading branch information
Chris Brody authored and lovasoa committed Jan 9, 2020
1 parent 4d18089 commit e810a2c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
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

0 comments on commit e810a2c

Please sign in to comment.