Skip to content

Commit

Permalink
add copyright and license for original vu8 project
Browse files Browse the repository at this point in the history
remove useless license headers from the source code
  • Loading branch information
pmed committed Oct 18, 2021
1 parent d69048d commit 62d9fb8
Show file tree
Hide file tree
Showing 62 changed files with 23 additions and 484 deletions.
6 changes: 6 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Copyright (c) 2010-2011 TS-Associates

Distributed under the MIT License (See accompanying
file LICENSE.vu8.txt or copy at https://github.com/tsa/vu8/blob/master/LICENSE)


Copyright (c) 2013-2015 Pavel Medvedev (pmedvedev at gmail dot com)

Distributed under the Boost Software License, Version 1.0. (See accompanying
Expand Down
13 changes: 13 additions & 0 deletions LICENSE.vu8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) 2010-2011 TS-Associates

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 0 additions & 8 deletions examples/01 hello world/hello.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/module.hpp>

Expand Down
10 changes: 1 addition & 9 deletions examples/01 hello world/hello.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

console.log(addon.hello()); // 'world'
console.log(addon.hello()); // 'world'
8 changes: 0 additions & 8 deletions examples/02 arguments/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/module.hpp>

Expand Down
8 changes: 0 additions & 8 deletions examples/02 arguments/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

console.log( 'This should be eight:', addon.add(3,5) );
8 changes: 0 additions & 8 deletions examples/03 callbacks/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>

#include <v8pp/call_v8.hpp>
Expand Down
10 changes: 1 addition & 9 deletions examples/03 callbacks/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

addon(function(msg){
console.log(msg); // 'hello world'
});
});
8 changes: 0 additions & 8 deletions examples/04 object factory/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/object.hpp>
#include <v8pp/function.hpp>
Expand Down
10 changes: 1 addition & 9 deletions examples/04 object factory/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

var obj1 = addon('hello');
var obj2 = addon('world');
console.log(obj1.msg+' '+obj2.msg); // 'hello world'
console.log(obj1.msg+' '+obj2.msg); // 'hello world'
8 changes: 0 additions & 8 deletions examples/05 function factory/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/function.hpp>
#include <v8pp/object.hpp>
Expand Down
10 changes: 1 addition & 9 deletions examples/05 function factory/test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

var fn = addon();
console.log(fn()); // 'hello world'
console.log(fn()); // 'hello world'
8 changes: 0 additions & 8 deletions examples/06 wrapped objects/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include "myobject.h"

Expand Down
8 changes: 0 additions & 8 deletions examples/06 wrapped objects/myobject.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "myobject.h"
#include <node.h>
#include <v8pp/class.hpp>
Expand Down
8 changes: 0 additions & 8 deletions examples/06 wrapped objects/myobject.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MYOBJECT_H
#define MYOBJECT_H

Expand Down
8 changes: 0 additions & 8 deletions examples/06 wrapped objects/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

var obj = new addon.MyObject(10);
Expand Down
8 changes: 0 additions & 8 deletions examples/07 wrapped objects factory/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/class.hpp>
#include <v8pp/function.hpp>
Expand Down
8 changes: 0 additions & 8 deletions examples/07 wrapped objects factory/myobject.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "myobject.h"
#include <v8pp/class.hpp>
#include <v8pp/module.hpp>
Expand Down
8 changes: 0 additions & 8 deletions examples/07 wrapped objects factory/myobject.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MYOBJECT_H
#define MYOBJECT_H

Expand Down
8 changes: 0 additions & 8 deletions examples/07 wrapped objects factory/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var createObject = require('./build/Release/addon');

var obj = createObject(10);
Expand Down
8 changes: 0 additions & 8 deletions examples/08 passing wrapped objects/addon.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <node.h>
#include <v8pp/module.hpp>
#include <v8pp/class.hpp>
Expand Down
8 changes: 0 additions & 8 deletions examples/08 passing wrapped objects/myobject.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "myobject.h"
#include <v8pp/convert.hpp>

Expand Down
8 changes: 0 additions & 8 deletions examples/08 passing wrapped objects/myobject.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MYOBJECT_H
#define MYOBJECT_H

Expand Down
8 changes: 0 additions & 8 deletions examples/08 passing wrapped objects/test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var addon = require('./build/Release/addon');

var obj1 = addon.createObject(10);
Expand Down
8 changes: 0 additions & 8 deletions plugins/console.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <v8pp/module.hpp>
#include <v8pp/config.hpp>
Expand Down
8 changes: 0 additions & 8 deletions plugins/file.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <v8pp/module.hpp>
#include <v8pp/class.hpp>
#include <v8pp/config.hpp>
Expand Down
8 changes: 0 additions & 8 deletions test/console.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var console = require('console')

console.log('yo', 'baby', 4.2, null)
Expand Down
8 changes: 0 additions & 8 deletions test/file.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
var file = require('file'),
console = require('console')

Expand Down
8 changes: 0 additions & 8 deletions test/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <algorithm>
#include <memory>
Expand Down
8 changes: 0 additions & 8 deletions test/test.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iosfwd>

#include <string>
Expand Down
8 changes: 0 additions & 8 deletions test/test_call_from_v8.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "v8pp/call_from_v8.hpp"
#include "v8pp/context.hpp"
#include "v8pp/function.hpp"
Expand Down
8 changes: 0 additions & 8 deletions test/test_call_v8.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
//
// Copyright (c) 2013-2016 Pavel Medvedev. All rights reserved.
//
// This file is part of v8pp (https://github.com/pmed/v8pp) project.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "v8pp/call_v8.hpp"
#include "v8pp/context.hpp"

Expand Down
Loading

0 comments on commit 62d9fb8

Please sign in to comment.