Skip to content

Commit

Permalink
Add copyright headers to locally authored files (emscripten-core#7116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Sep 14, 2018
1 parent b56b8eb commit 5187ea2
Show file tree
Hide file tree
Showing 989 changed files with 6,117 additions and 5 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ filename =
*/tools/find_bigvars.py
*/tools/merge_pair.py
*/tools/system_libs.py
*/tools/add_license.py
*/tests/runner.py
*/tests/test_browser.py
*/tests/test_other.py
4 changes: 4 additions & 0 deletions em++.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python
# 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.

# This script should work in python 2 *or* 3. It loads the main code using
# python_selector, which may pick a different version.
Expand Down
4 changes: 4 additions & 0 deletions emar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

'''
emar - ar helper script
Expand Down
4 changes: 4 additions & 0 deletions embuilder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

'''
Tool to manage building of various useful things, such as libc, libc++, native optimizer, as well as fetch and build ports like zlib and sdl2
Expand Down
6 changes: 5 additions & 1 deletion emcc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python2
# -*- Mode: python -*-
# 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.

"""emcc - compiler helper script
=============================
Expand Down
4 changes: 4 additions & 0 deletions emcmake.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

import os, subprocess, sys
from tools import shared
Expand Down
4 changes: 4 additions & 0 deletions emconfigure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

'''
This is a helper script. It runs ./configure (or cmake,
Expand Down
4 changes: 4 additions & 0 deletions emlink.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

'''
Fast static linker for emscripten outputs. Specifically this links asm.js modules.
Expand Down
4 changes: 4 additions & 0 deletions emmake.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python2
# 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.

'''
This is a helper script. It runs make for you, setting
Expand Down
4 changes: 4 additions & 0 deletions emrun.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python
# 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.

# emrun: Implements machinery that allows running a .html page as if it was a standard executable file.
# Usage: emrun <options> filename.html <args to program>
Expand Down
5 changes: 5 additions & 0 deletions emscripten.py
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.

"""A small wrapper script around the core JS compiler. This calls that
compiler with the settings given to it. It can also read data from C/C++
header files (so that the JS compiler can see the constants in those
Expand Down
5 changes: 5 additions & 0 deletions site/source/_themes/emscripten_sphinx_rtd_theme/__init__.py
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.

"""Sphinx ReadTheDocs theme.
From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
Expand Down
5 changes: 5 additions & 0 deletions site/source/api_items.py
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.

# Auto-generated file (see get-api_items.py)
#

Expand Down
5 changes: 5 additions & 0 deletions site/source/conf.py
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.

# -*- coding: utf-8 -*-
#
# Emscripten documentation build configuration file, created by
Expand Down
5 changes: 5 additions & 0 deletions site/source/get_api_items.py
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.

#
# This script gets all the API items defined in the emscripten documentation. These can then be used for automated adding of cross links in other scripts. It writes api_items.py which has function that is imported into get-wiki.py
#
Expand Down
5 changes: 5 additions & 0 deletions site/source/get_wiki.py
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.

#
# This script gets the Emscripten wiki, converts files from markdown to restructure text using pandoc (and also prepends the text with a title/heading based on the filename)
# It also fixes up inline code items to become links to api-reference
Expand Down
7 changes: 7 additions & 0 deletions system/lib/al.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

// AL proc address retrieval

#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions system/lib/debugging.cpp
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.

// Some stuff to patch up an emscripten-sdk build so it can be built natively (see nativize_llvm)

Expand Down
5 changes: 5 additions & 0 deletions system/lib/embind/bind.cpp
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.

#include <emscripten/bind.h>
#ifdef USE_CXA_DEMANGLE
#include <../lib/libcxxabi/include/cxxabi.h>
Expand Down
5 changes: 5 additions & 0 deletions system/lib/emmalloc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/*
* 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.
*
* Simple minimalistic but efficient malloc/free.
*
* Assumptions:
Expand Down
5 changes: 5 additions & 0 deletions system/lib/fetch/asmfs.cpp
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 <assert.h>
#include <dirent.h>
#include <errno.h>
Expand Down
5 changes: 5 additions & 0 deletions system/lib/fetch/emscripten_fetch.cpp
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 <memory.h>
#include <stdlib.h>
#include <string.h>
Expand Down
7 changes: 7 additions & 0 deletions system/lib/gl.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

// GL proc address retrieval

#include <string.h>
Expand Down
7 changes: 7 additions & 0 deletions system/lib/html5/key_codes.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#include <emscripten/key_codes.h>

const char *emscripten_dom_vk_to_string(int dom_vk_code)
Expand Down
6 changes: 6 additions & 0 deletions system/lib/libc/extras.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* 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.
*/

// Extra libc helper functions

Expand Down
7 changes: 7 additions & 0 deletions system/lib/libc/musl/ldso/dlstart.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#include <stddef.h>
#include "dynlink.h"

Expand Down
7 changes: 7 additions & 0 deletions system/lib/libc/musl/ldso/dynlink.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
Expand Down
7 changes: 7 additions & 0 deletions system/lib/pthread/library_pthread.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#define _GNU_SOURCE
#include <pthread.h>
#include <emscripten/threading.h>
Expand Down
7 changes: 7 additions & 0 deletions system/lib/pthread/library_pthread_asmjs.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

// This file contains support machinery to implement multithreading support for asm.js specifically.
// Split out to a separate file so that its contents can be easily left out when only doing Wasm
// multithreading.
Expand Down
9 changes: 7 additions & 2 deletions system/lib/split_malloc.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
malloc/free for SPLIT_MEMORY
*/
* 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.
*
* malloc/free for SPLIT_MEMORY
*/

#include <stdlib.h>
#include <string.h>
Expand Down
5 changes: 5 additions & 0 deletions system/lib/test.cpp
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.

#include <stdio.h>
#include <time.h>

Expand Down
5 changes: 5 additions & 0 deletions tests/799.cpp
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.

#include <netdb.h>
#include <stdint.h>
#include <string.h>
Expand Down
7 changes: 7 additions & 0 deletions tests/Module-exports/test.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#include <stdio.h>

/**
Expand Down
7 changes: 7 additions & 0 deletions tests/access_file_after_heap_resize.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#include <stdio.h>
#include <stdlib.h>

Expand Down
5 changes: 5 additions & 0 deletions tests/asm_swap.cpp
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.

#include <emscripten.h>

extern "C" {
Expand Down
5 changes: 5 additions & 0 deletions tests/asm_swap2.cpp
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.

#include <emscripten.h>

extern "C" {
Expand Down
5 changes: 5 additions & 0 deletions tests/asmfs/fopen_write.cpp
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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions tests/asmfs/hello_file.cpp
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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions tests/asmfs/read_file_twice.cpp
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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions tests/asmfs/relative_paths.cpp
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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
7 changes: 7 additions & 0 deletions tests/asmjs-unknown-emscripten.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* 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.
*/

#ifndef __EMSCRIPTEN__
#error __EMSCRIPTEN__ is not defined
#endif
Expand Down
Loading

0 comments on commit 5187ea2

Please sign in to comment.