aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 11:22:27 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-02-04 23:14:46 +0700
commit7c2b6a9e293acfad2f806c0f28459ac14b4a1d5d (patch)
tree16e19be30f58e1402e5aef1aabb2adb1f0c40383
parent6d3d82bb13b8a7377e1bc8e1a65a80a2e013af4a (diff)
Fix typos.
-rw-r--r--src/library.js10
-rw-r--r--src/library_jansson.js2
-rw-r--r--src/parseTools.js2
-rw-r--r--src/runtime.js2
-rw-r--r--src/settings.js6
5 files changed, 11 insertions, 11 deletions
diff --git a/src/library.js b/src/library.js
index 9b97b795..623d1626 100644
--- a/src/library.js
+++ b/src/library.js
@@ -252,7 +252,7 @@ LibraryManager.library = {
var properties = {isFolder: true, isDevice: false, contents: {}};
return FS.createObject(parent, name, properties, canRead, canWrite);
},
- // Creates a a folder and all its missing parents.
+ // Creates a folder and all its missing parents.
createPath: function(parent, path, canRead, canWrite) {
var current = FS.findObject(parent);
if (current === null) throw new Error('Invalid parent.');
@@ -414,7 +414,7 @@ LibraryManager.library = {
processData(url);
}
},
- // Creates a link to a sepcific local path.
+ // Creates a link to a specific local path.
createLink: function(parent, name, target, canRead, canWrite) {
var properties = {isDevice: false, link: target};
return FS.createFile(parent, name, properties, canRead, canWrite);
@@ -1120,7 +1120,7 @@ LibraryManager.library = {
open: function(path, oflag, varargs) {
// int open(const char *path, int oflag, ...);
// http://pubs.opengroup.org/onlinepubs/009695399/functions/open.html
- // NOTE: This implementation tries to mimic glibc rather that strictly
+ // NOTE: This implementation tries to mimic glibc rather than strictly
// following the POSIX standard.
var mode = {{{ makeGetValue('varargs', 0, 'i32') }}};
@@ -1341,7 +1341,7 @@ LibraryManager.library = {
poll: function(fds, nfds, timeout) {
// int poll(struct pollfd fds[], nfds_t nfds, int timeout);
// http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html
- // NOTE: This is pretty much a no-op mimicing glibc.
+ // NOTE: This is pretty much a no-op mimicking glibc.
var offsets = ___pollfd_struct_layout;
var nonzero = 0;
for (var i = 0; i < nfds; i++) {
@@ -1505,7 +1505,7 @@ LibraryManager.library = {
// long fpathconf(int fildes, int name);
// http://pubs.opengroup.org/onlinepubs/000095399/functions/encrypt.html
// NOTE: The first parameter is ignored, so pathconf == fpathconf.
- // The constants here aren't real values. Just mimicing glibc.
+ // The constants here aren't real values. Just mimicking glibc.
switch (name) {
case {{{ cDefine('_PC_LINK_MAX') }}}:
return 32000;
diff --git a/src/library_jansson.js b/src/library_jansson.js
index 368584a7..93f239fc 100644
--- a/src/library_jansson.js
+++ b/src/library_jansson.js
@@ -74,7 +74,7 @@ var LibraryJansson = {
_free(node['stringValuePtr']);
},
- // Loads a string into the Javascript JSNON context
+ // Loads a string into the Javascript JSON context
// Only the root node is loaded. Child nodes are loaded on demand via `loadChildNodes` method.
load: function(string, flags, error) {
// This is potentially a security problem.
diff --git a/src/parseTools.js b/src/parseTools.js
index f5e2f33f..e226a4f8 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -111,7 +111,7 @@ function isStructPointerType(type) {
// |%5()| as a function call (like |i32 (i8*)| etc.). So
// we must check later on, in call(), where we have more
// context, to differentiate such cases.
- // A similar thing happns in isStructType()
+ // A similar thing happens in isStructType()
return !Runtime.isNumberType(type) && type[0] == '%';
}
diff --git a/src/runtime.js b/src/runtime.js
index 5fce4651..e5b86065 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -290,7 +290,7 @@ var Runtime = {
//
// When providing a typeName, you can generate information for nested
// structs, for example, struct = ['field1', { field2: ['sub1', 'sub2', 'sub3'] }, 'field3']
- // which repesents a structure whose 2nd field is another structure.
+ // which represents a structure whose 2nd field is another structure.
generateStructInfo: function(struct, typeName, offset) {
var type, alignment;
if (typeName) {
diff --git a/src/settings.js b/src/settings.js
index 26b649e0..e43a717c 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -69,7 +69,7 @@ var USE_FHEAP = 1; // Relevant in USE_TYPED_ARRAYS == 1. If this is disabled, on
// not generated at all. This is useful if your code is 100% ints without floats or doubles
var DOUBLE_MODE = 1; // How to load and store 64-bit doubles. Without typed arrays or in typed array mode 1,
// this doesn't matter - these values are just values like any other. In typed array mode 2,
- // a potentialy risk is that doubles may be only 32-bit aligned. Forcing 64-bit alignment
+ // a potential risk is that doubles may be only 32-bit aligned. Forcing 64-bit alignment
// in Clang itself should be able to solve that, or as a workaround in DOUBLE_MODE 1 we
// will carefully load in parts, in a way that requires only 32-bit alignment. In DOUBLE_MODE
// 0 we will simply store and load doubles as 32-bit floats, so when they are stored/loaded
@@ -282,7 +282,7 @@ var LINKABLE = 0; // If set to 1, this file can be linked with others, either as
// we will not internalize all symbols and cull the unused ones, in other
// words, we will not remove unused functions and globals, which might be
// used by another module we are linked with.
- // BUILD_AS_SHARED_LIB > 0 implies this, so it is only importand to set this to 1
+ // BUILD_AS_SHARED_LIB > 0 implies this, so it is only important to set this to 1
// when building the main file, and *if* that main file has symbols that
// the library it will open will then access through an extern.
// LINKABLE of 0 is very useful in that we can reduce the size of the
@@ -320,7 +320,7 @@ var HEADLESS = 0; // If 1, will include shim code that tries to 'fake' a browser
// keep your expectations low for this to work.
var BENCHMARK = 0; // If 1, will just time how long main() takes to execute, and not
- // print out anything at all whatsover. This is useful for benchmarking.
+ // print out anything at all whatsoever. This is useful for benchmarking.
var ASM_JS = 0; // If 1, generate code in asm.js format. XXX This is highly experimental,
// and will not work on most codebases yet. It is NOT recommended that you