Browse Source

Merge branch '20130601_copyrights' into bfgminer

Luke Dashjr 12 years ago
parent
commit
1ca5763d24
34 changed files with 310 additions and 0 deletions
  1. 9 0
      ccan/compiler/_info
  2. 9 0
      ccan/compiler/compiler.h
  3. 9 0
      ccan/compiler/test/compile_fail-printf.c
  4. 9 0
      ccan/compiler/test/run-is_compile_constant.c
  5. 9 0
      ccan/opt/_info
  6. 10 0
      ccan/opt/helpers.c
  7. 11 0
      ccan/opt/opt.c
  8. 10 0
      ccan/opt/opt.h
  9. 9 0
      ccan/opt/parse.c
  10. 9 0
      ccan/opt/private.h
  11. 9 0
      ccan/opt/test/compile_ok-const-arg.c
  12. 9 0
      ccan/opt/test/run-checkopt.c
  13. 9 0
      ccan/opt/test/run-correct-reporting.c
  14. 9 0
      ccan/opt/test/run-helpers.c
  15. 9 0
      ccan/opt/test/run-iter.c
  16. 9 0
      ccan/opt/test/run-no-options.c
  17. 9 0
      ccan/opt/test/run-usage.c
  18. 9 0
      ccan/opt/test/run.c
  19. 9 0
      ccan/opt/test/utils.c
  20. 9 0
      ccan/opt/usage.c
  21. 9 0
      ccan/typesafe_cb/_info
  22. 9 0
      ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c
  23. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c
  24. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb.c
  25. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c
  26. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c
  27. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c
  28. 9 0
      ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c
  29. 9 0
      ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c
  30. 9 0
      ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c
  31. 9 0
      ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c
  32. 9 0
      ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c
  33. 9 0
      ccan/typesafe_cb/test/run.c
  34. 9 0
      ccan/typesafe_cb/typesafe_cb.h

+ 9 - 0
ccan/compiler/_info

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option) any
+ * later version.  See LICENSE for more details.
+ */
+
 #include <string.h>
 #include <stdio.h>
 #include "config.h"

+ 9 - 0
ccan/compiler/compiler.h

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option) any
+ * later version.  See LICENSE for more details.
+ */
+
 #ifndef CCAN_COMPILER_H
 #define CCAN_COMPILER_H
 #include "config.h"

+ 9 - 0
ccan/compiler/test/compile_fail-printf.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option) any
+ * later version.  See LICENSE for more details.
+ */
+
 #include <ccan/compiler/compiler.h>
 
 static void PRINTF_FMT(2,3) my_printf(int x, const char *fmt, ...)

+ 9 - 0
ccan/compiler/test/run-is_compile_constant.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option) any
+ * later version.  See LICENSE for more details.
+ */
+
 #include <ccan/compiler/compiler.h>
 #include <ccan/tap/tap.h>
 

+ 9 - 0
ccan/opt/_info

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <stdio.h>
 #include <string.h>
 #include "config.h"

+ 10 - 0
ccan/opt/helpers.c

@@ -1,3 +1,13 @@
+/*
+ * Copyright 2011 Rusty Russell
+ * Copyright 2011 Con Kolivas
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/opt/opt.h>
 #include <string.h>
 #include <stdlib.h>

+ 11 - 0
ccan/opt/opt.c

@@ -1,3 +1,14 @@
+/*
+ * Copyright 2011 Rusty Russell
+ * Copyright 2011 Ycros
+ * Copyright 2011 Con Kolivas
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/opt/opt.h>
 #include <string.h>
 #include <errno.h>

+ 10 - 0
ccan/opt/opt.h

@@ -1,3 +1,13 @@
+/*
+ * Copyright 2011 Rusty Russell
+ * Copyright 2011 Con Kolivas
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #ifndef CCAN_OPT_H
 #define CCAN_OPT_H
 #include <ccan/compiler/compiler.h>

+ 9 - 0
ccan/opt/parse.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 /* Actual code to parse commandline. */
 #include <ccan/opt/opt.h>
 #include <string.h>

+ 9 - 0
ccan/opt/private.h

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #ifndef CCAN_OPT_PRIVATE_H
 #define CCAN_OPT_PRIVATE_H
 

+ 9 - 0
ccan/opt/test/compile_ok-const-arg.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/opt/opt.h>
 #include <ccan/opt/opt.c>
 #include <ccan/opt/helpers.c>

+ 9 - 0
ccan/opt/test/run-checkopt.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include "config.h"
 #include <stdio.h>
 #include <ccan/tap/tap.h>

+ 9 - 0
ccan/opt/test/run-correct-reporting.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 /* Make sure when multiple equivalent options, correct one is used for errors */
 
 #include <ccan/tap/tap.h>

+ 9 - 0
ccan/opt/test/run-helpers.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include "config.h"
 #include <stdio.h>
 #include <ccan/tap/tap.h>

+ 9 - 0
ccan/opt/test/run-iter.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <setjmp.h>

+ 9 - 0
ccan/opt/test/run-no-options.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 /* Make sure we still work with no options registered */
 #include <ccan/tap/tap.h>
 #include <stdlib.h>

+ 9 - 0
ccan/opt/test/run-usage.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <setjmp.h>

+ 9 - 0
ccan/opt/test/run.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/tap/tap.h>
 #include <stdlib.h>
 #include <ccan/opt/opt.c>

+ 9 - 0
ccan/opt/test/utils.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include "config.h"
 #include <ccan/tap/tap.h>
 #include <stdarg.h>

+ 9 - 0
ccan/opt/usage.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.  See LICENSE for more details.
+ */
+
 #include <ccan/opt/opt.h>
 #include <string.h>
 #include <stdlib.h>

+ 9 - 0
ccan/typesafe_cb/_info

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <stdio.h>
 #include <string.h>
 #include "config.h"

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdbool.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 
 void _set_some_value(void *val);

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <stdlib.h>
 

+ 9 - 0
ccan/typesafe_cb/test/run.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #include <ccan/typesafe_cb/typesafe_cb.h>
 #include <string.h>
 #include <stdint.h>

+ 9 - 0
ccan/typesafe_cb/typesafe_cb.h

@@ -1,3 +1,12 @@
+/*
+ * Copyright 2011 Rusty Russell
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.  See LICENSE for more details.
+ */
+
 #ifndef CCAN_TYPESAFE_CB_H
 #define CCAN_TYPESAFE_CB_H
 #include "config.h"