Skip to content

Commit a0e2bb1

Browse files
committed
change to The Emscripten Authors
1 parent 238c272 commit a0e2bb1

File tree

108 files changed

+584
-323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+584
-323
lines changed

src/Fetch.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2016 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
var Fetch = {
78
xhrs: [],

src/IDBStore.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2015 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
{
78
indexedDB: function() {

src/URIUtils.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2017 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
// Prefix of data URIs emitted by SINGLE_FILE and related options.
78
var dataURIPrefix = 'data:application/octet-stream;base64,';

src/arrayUtils.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2017 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
/** @type {function(string, boolean=, number=)} */
78
function intArrayFromString(stringy, dontAddNull, length) {

src/base64Decode.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
#if WASM2JS && 0 // TODO: Figure out a way to enable this kind of sharing.
28

39
// Binaryen defines the following function if Wasm2JS is being used:

src/compiler.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2010 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
//"use strict";
78

src/cpuprofiler.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2015 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
// cpuprofiler.js is an interactive CPU execution profiler which measures the time spent in executing code that utilizes requestAnimationFrame(), setTimeout() and/or setInterval() handlers to run.
78
// Visit https://github.com/emscripten-core/emscripten for the latest version.

src/deterministic.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2014 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
var MAGIC = 0;
78
Math.random = function() {

src/emrun_postjs.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2013 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
if (typeof window === "object" && (typeof ENVIRONMENT_IS_PTHREAD === 'undefined' || !ENVIRONMENT_IS_PTHREAD)) {
78
var emrun_register_handlers = function() {

src/emrun_prejs.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2013 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
// Route URL GET parameters to argc+argv
78
if (typeof window === "object") {

src/fetch-worker.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2016 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
#include "Fetch.js"
78

src/growableHeap.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
// Support for growable heap + pthreads, where the buffer may change, so JS views
28
// must be updated.
39
function GROWABLE_HEAP_I8() {

src/headless.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2012 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
//== HEADLESS ==//
78

src/headlessCanvas.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2013 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
function headlessCanvas() {
78
var that = this;

src/hello_world.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2013 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
// *** Environment setup code ***
78
var arguments_ = [];

src/jsifier.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2010 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
//"use strict";
78

src/library.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2010 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
//"use strict";
78

src/library_asmfs.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
var asmFS = {
28
$FS: {
39
populate: function(path, mode) {

src/library_async.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// Copyright 2014 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
57
//
68
// Async support
79
//

src/library_bootstrap_structInfo.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// Copyright 2015 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
5-
//
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
67
// no merging, this is the entire library. it is literally just enough to run
78
// the bootstrap program that prints out C constants for us, we obviously need
89
// to run without any such constants ourselves...

src/library_browser.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// Copyright 2011 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
5-
6-
//"use strict";
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
76

87
// Utilities for browser environments
98
var LibraryBrowser = {

src/library_cyberdwarf.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2016 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
var LibraryCyberdwarf = {
78
// These are empty, designed to be replaced when a debugger is invoked

src/library_debugger_toolkit.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2016 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
var CyberDWARFHeapPrinter = function(cdFileLocation) {
78
var BASIC_TYPE = 0,

src/library_egl.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
/*
2-
* Copyright 2012 The Emscripten Authors. All rights reserved.
3-
* Emscripten is available under two separate licenses, the MIT license and the
4-
* University of Illinois/NCSA Open Source License. Both these licenses can be
5-
* found in the LICENSE file.
6-
*
78
* The EGL implementation supports only one EGLNativeDisplayType, the
89
* EGL_DEFAULT_DISPLAY. This native display type returns the only supported
910
* EGLDisplay handle with the magic value 62000. There is only a single

src/library_emmalloc.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
mergeInto(LibraryManager.library, {
28
emmalloc_unclaimed_heap_memory__deps: ['emscripten_get_sbrk_ptr'],
39
emmalloc_unclaimed_heap_memory: function() {

src/library_exceptions.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
/*
2-
* Copyright 2010 The Emscripten Authors. All rights reserved.
3-
* Emscripten is available under two separate licenses, the MIT license and the
4-
* University of Illinois/NCSA Open Source License. Both these licenses can be
5-
* found in the LICENSE file.
6-
*
7-
* C++ exception handling support.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
85
*/
96

107
var LibraryExceptions = {

src/library_exceptions_stub.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
/*
2-
* Copyright 2019 The Emscripten Authors. All rights reserved.
3-
* Emscripten is available under two separate licenses, the MIT license and the
4-
* University of Illinois/NCSA Open Source License. Both these licenses can be
5-
* found in the LICENSE file.
6-
*
7-
* C++ exception handling support stubs. This is included when exception
8-
* throwing is disabled - so no exceptions should exist at all. If the code still
9-
* uses them, these stubs will throw at runtime.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
105
*/
116

127
var LibraryExceptions = {};

src/library_exports.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
17
mergeInto(LibraryManager.library, {
28
emscripten_get_exported_function: function(name) {
39
name = UTF8ToString(name);

src/library_fetch.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2016 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
#include Fetch.js
78

src/library_formatString.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// Copyright 2015 The Emscripten Authors. All rights reserved.
2-
// Emscripten is available under two separate licenses, the MIT license and the
3-
// University of Illinois/NCSA Open Source License. Both these licenses can be
4-
// found in the LICENSE file.
1+
/**
2+
* @license
3+
* Copyright 2020 The Emscripten Authors
4+
* SPDX-License-Identifier: MIT
5+
*/
56

67
mergeInto(LibraryManager.library, {
78
// Performs printf-style formatting.

0 commit comments

Comments
 (0)