Skip to content

Commit 1a012a2

Browse files
authored
Merge pull request #4 from SpringQL/chore/copyright
chore: copyright line to sources
2 parents eb653d9 + e6a8545 commit 1a012a2

9 files changed

Lines changed: 17 additions & 1 deletion

File tree

Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mlc --ignore-path target
6464
[tasks.copyright]
6565
script = ['''
6666
#!/usr/bin/env bash -eux
67-
for rs in $(git ls-files |grep -e '\.rs$') ; do grep '// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.' $rs ; done
67+
for rs in $(git ls-files |grep -e '\.\(rs\|c\|h\)$') ; do grep '// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.' $rs ; done
6868
''']
6969

7070
[tasks.publish]

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
extern crate cbindgen;
24

35
use std::env;

c_example/example.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
#include <springql.h>
24
#include <assert.h>
35
#include <string.h>

cbindgen.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
language = "C"
2+
3+
header = "// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0."

springql.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
#include <stdarg.h>
24
#include <stdbool.h>
35
#include <stdint.h>

src/cstr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
use std::{
24
os::raw::{c_char, c_int},
35
ptr, slice,

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
//! C-API
24
35
use std::{

src/spring_errno.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
use springql_core::error::SpringError;
24

35
use crate::spring_last_err::LastError;

src/spring_last_err.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2021 TOYOTA MOTOR CORPORATION. Licensed under MIT OR Apache-2.0.
2+
13
use std::{
24
any::Any,
35
cell::RefCell,

0 commit comments

Comments
 (0)