Skip to content

Commit

Permalink
update file licenses (#42277)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Sep 19, 2021
1 parent 60f6495 commit 7c8cbf6
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/opaque_closure.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

"""
@opaque (args...) -> body
Expand Down
1 change: 1 addition & 0 deletions cli/jl_exports.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

// Bring in the curated lists of exported data and function symbols, then
// perform C preprocessor magic upon them to generate lists of declarations and
// functions to re-export our function symbols from libjulia-internal to libjulia.
Expand Down
1 change: 1 addition & 0 deletions cli/loader_exe.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

// This defines a bare-bones loader that opens `libjulia` and immediately invokes its `load_repl()` function.
#include "loader.h"

Expand Down
1 change: 1 addition & 0 deletions cli/loader_lib.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

// This file defines an RPATH-style relative path loader for all platforms
#include "loader.h"

Expand Down
2 changes: 2 additions & 0 deletions cli/loader_win_utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

// Workarounds for compiling via mingw without using libgcc_s
typedef struct {
HANDLE fd;
Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/common.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "../../src/support/platform.h"

// Preprocessor annoyances
Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/trampolines_aarch64.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "common.h"
#include "../../src/jl_exported_funcs.inc"

Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/trampolines_arm.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "common.h"
#include "../../src/jl_exported_funcs.inc"

Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/trampolines_i686.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "common.h"
#include "../../src/jl_exported_funcs.inc"

Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/trampolines_powerpc64le.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "common.h"
#include "../../src/jl_exported_funcs.inc"

Expand Down
2 changes: 2 additions & 0 deletions cli/trampolines/trampolines_x86_64.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "common.h"
#include "../../src/jl_exported_funcs.inc"

Expand Down
6 changes: 6 additions & 0 deletions contrib/add_license_to_files.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const print_result = true # prints files which where not processed.

const rootdirs = [
"../base",
"../cli",
"../contrib",
"../src",
"../stdlib",
Expand All @@ -31,6 +32,7 @@ const excludedirs = [

const skipfiles = [
"../contrib/add_license_to_files.jl",
"../contrib/asan/check.jl",
# files to check - already copyright
# see: https://github.com/JuliaLang/julia/pull/11073#issuecomment-98099389
"../base/special/trig.jl",
Expand All @@ -49,6 +51,7 @@ const skipfiles = [
"../src/support/END.h",
"../src/support/ENTRY.amd64.h",
"../src/support/ENTRY.i387.h",
"../src/support/_setjmp.win32.S",
"../src/support/MurmurHash3.c",
"../src/support/MurmurHash3.h",
"../src/support/asprintf.c",
Expand All @@ -66,6 +69,7 @@ const ext_prefix = Dict([
(".h", "// "),
(".c", "// "),
(".cpp", "// "),
(".S", "// "),
])

const new_license = "This file is a part of Julia. License is MIT: https://julialang.org/license"
Expand Down Expand Up @@ -104,6 +108,7 @@ function getfilespaths!(filepaths::Vector, rootdir::AbstractString)
abs_rootdir = abspath(rootdir)
for name in readdir(abs_rootdir)
path = joinpath(abs_rootdir, name)
islink(path) && continue
if isdir(path)
getfilespaths!(filepaths, path)
else
Expand All @@ -118,6 +123,7 @@ function add_license_line!(unprocessed::Vector, src::AbstractString, new_license

for name in readdir(src)
path = normpath(joinpath(src, name))
islink(path) && continue
if isdir(path)
if path in abs_excludedirs
getfilespaths!(unprocessed, path)
Expand Down
1 change: 1 addition & 0 deletions contrib/asan/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# This file is a part of Julia. License is MIT: https://julialang.org/license

#
# Usage:
# contrib/asan/build.sh <path> [<make_targets>...]
Expand Down
2 changes: 2 additions & 0 deletions src/opaque_closure.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This file is a part of Julia. License is MIT: https://julialang.org/license

#include "julia.h"
#include "julia_internal.h"

Expand Down
2 changes: 2 additions & 0 deletions stdlib/LinearAlgebra/src/lbt.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

## This file contains libblastrampoline-specific APIs

# Keep these in sync with `src/libblastrampoline_internal.h`
Expand Down
2 changes: 2 additions & 0 deletions stdlib/REPL/src/TerminalMenus/Pager.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

mutable struct Pager{C} <: _ConfiguredMenu{C}
lines::Vector{String}
pagesize::Int
Expand Down
2 changes: 2 additions & 0 deletions stdlib/Test/test/nothrow_testset.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

mutable struct NoThrowTestSet <: Test.AbstractTestSet
results::Vector
NoThrowTestSet(desc) = new([])
Expand Down

2 comments on commit 7c8cbf6

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

Please sign in to comment.