Skip to content

Commit

Permalink
Add license header to .js files (#7163)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Sep 21, 2018
1 parent c2c6c8f commit 20602ef
Show file tree
Hide file tree
Showing 82 changed files with 446 additions and 54 deletions.
5 changes: 5 additions & 0 deletions src/Fetch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2016 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var Fetch = {
attr_t_offset_requestMethod: 0,
attr_t_offset_userData: 32,
Expand Down
5 changes: 5 additions & 0 deletions src/IDBStore.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

{
indexedDB: function() {
if (typeof indexedDB !== 'undefined') return indexedDB;
Expand Down
5 changes: 5 additions & 0 deletions src/URIUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2017 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

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

Expand Down
5 changes: 5 additions & 0 deletions src/arrayUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2017 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

/** @type {function(string, boolean=, number=)} */
function intArrayFromString(stringy, dontAddNull, length) {
var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
Expand Down
5 changes: 5 additions & 0 deletions src/closure-externs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/**
* Copyright 2014 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*
* This file contains definitions for things that we'd really rather the closure compiler *didn't* minify.
* See http://code.google.com/p/closure-compiler/wiki/FAQ#How_do_I_write_an_externs_file
* See also the discussion here: https://github.com/kripken/emscripten/issues/1979
Expand Down
5 changes: 5 additions & 0 deletions src/compiler.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2010 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//"use strict";

// LLVM => JavaScript compiler, main entry point
Expand Down
5 changes: 5 additions & 0 deletions src/cpuprofiler.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

// 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.
// Visit https://github.com/kripken/emscripten for the latest version.

Expand Down
4 changes: 4 additions & 0 deletions src/deterministic.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2014 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var MAGIC = 0;
Math.random = function() {
Expand Down
5 changes: 5 additions & 0 deletions src/embind/embind.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2012 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

/*global LibraryManager, mergeInto*/

/*global Module, asm*/
Expand Down
5 changes: 5 additions & 0 deletions src/embind/emval.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2012 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

/*global Module:true, Runtime*/
/*global HEAP32*/
/*global new_*/
Expand Down
5 changes: 5 additions & 0 deletions src/emrun_postjs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

if (typeof window === "object" && (typeof ENVIRONMENT_IS_PTHREAD === 'undefined' || !ENVIRONMENT_IS_PTHREAD)) {
function emrun_register_handlers() {
// When C code exit()s, we may still have remaining stdout and stderr messages in flight. In that case, we can't close
Expand Down
5 changes: 5 additions & 0 deletions src/emrun_prejs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

// Route URL GET parameters to argc+argv
if (typeof window === "object") {
Module['arguments'] = window.location.search.substr(1).trim().split('&');
Expand Down
5 changes: 5 additions & 0 deletions src/fetch-worker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2016 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

#include "Fetch.js"

if (typeof Atomics === 'undefined') {
Expand Down
4 changes: 4 additions & 0 deletions src/headless.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2012 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//== HEADLESS ==//

Expand Down
5 changes: 5 additions & 0 deletions src/headlessCanvas.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

function headlessCanvas() {
var that = this;
var ret = {
Expand Down
5 changes: 5 additions & 0 deletions src/hello_world.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

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

Expand Down
5 changes: 5 additions & 0 deletions src/jsifier.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2010 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//"use strict";

// Convert analyzed data to javascript. Everything has already been calculated
Expand Down
5 changes: 5 additions & 0 deletions src/library.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2010 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//"use strict";

// An implementation of basic necessary libraries for the web. This integrates
Expand Down
5 changes: 5 additions & 0 deletions src/library_async.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2014 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
//
// Async support
//
// Two experiments in async support: ASYNCIFY, and EMTERPRETIFY_ASYNC
Expand Down
11 changes: 9 additions & 2 deletions src/library_bootstrap_structInfo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// no merging, this is the entire library. it is literally just enough to run the bootstrap program that prints out C constants for us,
// we obviously need to run without any such constants ourselves...
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
//
// no merging, this is the entire library. it is literally just enough to run
// the bootstrap program that prints out C constants for us, we obviously need
// to run without any such constants ourselves...

assert(!LibraryManager.library);
LibraryManager.library = {
sysconf: function(name) {
Expand Down
5 changes: 5 additions & 0 deletions src/library_browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2011 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//"use strict";

// Utilities for browser environments
Expand Down
5 changes: 5 additions & 0 deletions src/library_cyberdwarf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2016 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var LibraryCyberdwarf = {
// These are empty, designed to be replaced when a debugger is invoked
metadata_llvm_dbg_value_constant: function(a,b,c,d) {
Expand Down
5 changes: 5 additions & 0 deletions src/library_debugger_toolkit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2016 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var CyberDWARFHeapPrinter = function(cdFileLocation) {
var BASIC_TYPE = 0,
DERIVED_TYPE = 1,
Expand Down
22 changes: 15 additions & 7 deletions src/library_egl.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
/*
The EGL implementation supports only one EGLNativeDisplayType, the EGL_DEFAULT_DISPLAY.
This native display type returns the only supported EGLDisplay handle with the magic value 62000.
There is only a single EGLConfig configuration supported, that has the magic value 62002.
The implementation only allows a single EGLContext to be created, that has the magic value of 62004. (multiple creations silently return this same context)
The implementation only creates a single EGLSurface, a handle with the magic value of 62006. (multiple creations silently return the same surface)
*/

* Copyright 2012 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*
* The EGL implementation supports only one EGLNativeDisplayType, the
* EGL_DEFAULT_DISPLAY. This native display type returns the only supported
* EGLDisplay handle with the magic value 62000. There is only a single
* EGLConfig configuration supported, that has the magic value 62002. The
* implementation only allows a single EGLContext to be created, that has the
* magic value of 62004. (multiple creations silently return this same context)
* The implementation only creates a single EGLSurface, a handle with the magic
* value of 62006. (multiple creations silently return the same surface)
*/

var LibraryEGL = {
$EGL__deps: ['$Browser'],
$EGL: {
Expand Down
5 changes: 5 additions & 0 deletions src/library_fetch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2016 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

#include Fetch.js

var LibraryFetch = {
Expand Down
5 changes: 5 additions & 0 deletions src/library_formatString.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
// Performs printf-style formatting.
// format: A pointer to the format string.
Expand Down
5 changes: 5 additions & 0 deletions src/library_fs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
$FS__deps: ['$ERRNO_CODES', '$ERRNO_MESSAGES', '__setErrNo', '$PATH', '$TTY', '$MEMFS',
#if __EMSCRIPTEN_HAS_idbfs_js__
Expand Down
5 changes: 5 additions & 0 deletions src/library_gl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/*
* Copyright 2010 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*
* GL support. See http://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/OpenGL-support.html
* for current status.
*/
Expand Down
9 changes: 7 additions & 2 deletions src/library_glew.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/*******************************************************************************
/*
* Copyright 2014 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*
* EMSCRIPTEN GLEW 1.10.0 emulation
*
* What it does:
Expand All @@ -11,7 +16,7 @@
*
* Authors:
* - Jari Vetoniemi <[email protected]>
******************************************************************************/
*/

var LibraryGLEW = {
$GLEW__deps: ['glGetString'],
Expand Down
10 changes: 7 additions & 3 deletions src/library_glfw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/*******************************************************************************
/*
* Copyright 2013 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*
* EMSCRIPTEN GLFW 2.x-3.x emulation.
* It tries to emulate the behavior described in
* http://www.glfw.org/docs/latest/
Expand Down Expand Up @@ -27,8 +32,7 @@
* - Jari Vetoniemi <[email protected]>
* - Éloi Rivard <[email protected]>
* - Thomas Borsos <[email protected]>
*
******************************************************************************/
*/

var LibraryGLFW = {
$GLFW__deps: ['emscripten_get_now', '$GL', '$Browser'],
Expand Down
4 changes: 4 additions & 0 deletions src/library_glut.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2012 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var LibraryGLUT = {
$GLUT__deps: ['$Browser'],
Expand Down
5 changes: 5 additions & 0 deletions src/library_html5.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2014 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var LibraryJSEvents = {
$JSEvents__postset: 'JSEvents.staticInit();',
$JSEvents: {
Expand Down
5 changes: 5 additions & 0 deletions src/library_idbfs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
$IDBFS__deps: ['$FS', '$MEMFS', '$PATH'],
$IDBFS: {
Expand Down
5 changes: 5 additions & 0 deletions src/library_idbstore.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

var LibraryIDBStore = {
// A simple IDB-backed storage mechanism. Suitable for saving and loading large files asynchronously. This does
// *NOT* use the emscripten filesystem, intentionally, to avoid overhead. It lets you application define whatever
Expand Down
5 changes: 5 additions & 0 deletions src/library_lz4.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2015 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

#if LZ4
mergeInto(LibraryManager.library, {
$LZ4__deps: ['$FS'],
Expand Down
5 changes: 5 additions & 0 deletions src/library_memfs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
$MEMFS__deps: ['$FS'],
$MEMFS: {
Expand Down
5 changes: 5 additions & 0 deletions src/library_nodefs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
$NODEFS__deps: ['$FS', '$PATH'],
$NODEFS__postset: 'if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); }',
Expand Down
5 changes: 5 additions & 0 deletions src/library_noderawfs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2018 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

mergeInto(LibraryManager.library, {
$NODERAWFS__deps: ['$ERRNO_CODES', '$FS', '$NODEFS'],
$NODERAWFS__postset: 'if (ENVIRONMENT_IS_NODE) {' +
Expand Down
5 changes: 5 additions & 0 deletions src/library_openal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.

//'use strict';

var LibraryOpenAL = {
Expand Down
Loading

0 comments on commit 20602ef

Please sign in to comment.