standard tags for git projects
committer: Markus Bröker <mbroeker@largo.homelinux.org>
--- a/alpha_beta.c
+++ b/alpha_beta.c
@@ -1,10 +1,8 @@
-/*
- * $Id: alpha_beta.c,v 1.5 2008-05-08 21:04:08 mbroeker Exp $
- * $Source: /development/c/demos/alpha_beta.c,v $
+/**
+ * test/demos/alpha_beta.c
+ * Copyright (C) 2008 Markus Broeker
*/
-/* TIC TAC TOE With Alpha Beta Search */
-
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
--- a/asm/decimal.c
+++ b/asm/decimal.c
@@ -1,7 +1,6 @@
/**
- * $Id: decimal.c,v 1.1.1.1 2008-04-28 17:32:52 mbroeker Exp $
- * $Source: /development/c/asm/decimal.c,v $
- *
+ * test/demos/asm/decimal.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/asm/get_sp.asm
+++ b/asm/get_sp.asm
@@ -1,7 +1,6 @@
;;
-;; $ID$
-;; $Source: /development/c/asm/get_sp.asm,v $
-;;
+;; test/demos/asm/get_sp.asm
+;; Copyright (C) 2008 Markus Broeker
;;
%include "asm/tools.inc"
--- a/asm/include/asm/tools.inc
+++ b/asm/include/asm/tools.inc
@@ -1,6 +1,6 @@
;;
-;; $Id: tools.inc,v 1.1.1.1 2008-04-28 17:32:52 mbroeker Exp $
-;; $Source: /development/c/asm/include/asm/tools.inc,v $
+;; test/demos/asm/include/asm/tools.inc
+;; Copyright (C) 2008 Markus Broeker
;;
extern printf
--- a/asm/main.c
+++ b/asm/main.c
@@ -1,7 +1,6 @@
/**
- * $Id: main.c,v 1.1.1.1 2008-04-28 17:32:52 mbroeker Exp $
- * $Source: /development/c/asm/main.c,v $
- *
+ * test/demos/asm/main.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/atoi_print.c
+++ b/atoi_print.c
@@ -1,7 +1,6 @@
/**
- * $Id: atoi_print.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/atoi_print.c,v $
- *
+ * test/demos/atoi_print.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/bad_alloc.cc
+++ b/bad_alloc.cc
@@ -1,3 +1,8 @@
+/**
+ * test/demos/bad_alloc.cc
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#include <iostream>
#include <vector>
#include <exception>
--- a/blackhole.c
+++ b/blackhole.c
@@ -1,10 +1,10 @@
-/*
- * $Id: blackhole.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/blackhole.c,v $
+/**
+ * test/demos/blackhole.c
+ * Copyright (C) 2008 Markus Broeker
+ *
+ * compile with -O0 or without optimizations or it won't crash
*/
-/* compile with -O0 or without optimizations or it won't crash */
-
#include <stdio.h>
#include <stdlib.h>
--- a/concatenation.c
+++ b/concatenation.c
@@ -1,6 +1,6 @@
-/*
- * $Id: concatenation.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/concatenation.c,v $
+/**
+ * test/demos/concatenation.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/counter.c
+++ b/counter.c
@@ -1,6 +1,6 @@
-/*
- * $Id: counter.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/counter.c,v $
+/**
+ * test/demos/counter.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/crypt.c
+++ b/crypt.c
@@ -1,7 +1,6 @@
/**
- * $Id: crypt.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/crypt.c,v $
- *
+ * test/demos/crypt.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/data_types.c
+++ b/data_types.c
@@ -1,7 +1,6 @@
/**
- * $Id: data_types.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/data_types.c,v $
- *
+ * test/demos/data_types.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/database.c
+++ b/database.c
@@ -1,7 +1,6 @@
/**
- * $Id: main.c,v 1.1.1.1 2008-04-28 17:32:52 mbroeker Exp $
- * $Source: /development/c/database/main.c,v $
- *
+ * test/demos/database.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/ddos/client.c
+++ b/ddos/client.c
@@ -1,7 +1,6 @@
/**
- * $Id: client.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/ddos/client.c,v $
- *
+ * test/demos/ddos/client.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/ddos/server.c
+++ b/ddos/server.c
@@ -1,7 +1,6 @@
/**
- * $Id: server.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/ddos/server.c,v $
- *
+ * test/demos/ddos/server.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/ddos/set_limit.c
+++ b/ddos/set_limit.c
@@ -1,6 +1,6 @@
/**
- * $Id: set_limit.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/ddos/set_limit.c,v $
+ * test/demos/ddos/set_limit.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <sys/resource.h>
--- a/dnsresolve.c
+++ b/dnsresolve.c
@@ -1,7 +1,6 @@
/**
- * $Id: dnsresolve.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/dnsresolve.c,v $
- *
+ * test/demos/dnsresolve.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/endian.c
+++ b/endian.c
@@ -1,6 +1,6 @@
-/*
- * $Id: endian.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/endian.c,v $
+/**
+ * test/demos/endian.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/fak.c
+++ b/fak.c
@@ -1,6 +1,6 @@
-/*
- * $Id: fak.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/fak.c,v $
+/**
+ * test/demos/fak.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/file_demo.c
+++ b/file_demo.c
@@ -1,7 +1,6 @@
/**
- * $Id: file_demo.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/file_demo.c,v $
- *
+ * test/demos/file_demo.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/floating.c
+++ b/floating.c
@@ -1,7 +1,6 @@
/**
- * $Id: floating.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/floating.c,v $
- *
+ * test/demos/floating.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/folge.c
+++ b/folge.c
@@ -1,6 +1,6 @@
-/*
- * $Id: folge.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/folge.c,v $
+/**
+ * test/demos/folge.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/gauss.c
+++ b/gauss.c
@@ -1,7 +1,6 @@
/**
- * $Id: gauss.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/gauss/gauss.c,v $
- *
+ * test/demos/gauss.c
+ * Copyright (C) 2008 Markus Broeker
*/
#define VERSION 0.8
--- a/hex2chars.c
+++ b/hex2chars.c
@@ -1,7 +1,6 @@
/**
- * $Id: hex2chars.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/hex2chars.c,v $
- *
+ * test/demos/hex2chars.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/libtest/func1.c
+++ b/libtest/func1.c
@@ -1,3 +1,8 @@
+/**
+ * test/demos/libtest/func1.c
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#include <stdio.h>
void func1()
--- a/libtest/func2.c
+++ b/libtest/func2.c
@@ -1,3 +1,8 @@
+/**
+ * test/demos/libtest/func2.c
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#include <stdio.h>
void func2()
--- a/libtest/main.c
+++ b/libtest/main.c
@@ -1,3 +1,8 @@
+/**
+ * test/demos/libtest/main.c
+ * Copyright (C) 2008 Markus Broeker
+ */
+
void func1();
void func2();
--- a/life.c
+++ b/life.c
@@ -1,7 +1,6 @@
/**
- * $Id$
- * $Source$
- *
+ * test/demos/life.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lotto.c
+++ b/lotto.c
@@ -1,8 +1,5 @@
/**
- * $Id: main.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Author: mbroeker $
- *
- * lotto.c
+ * test/demos/lotto.c
* computes the best n lottery-values from m loops out of [1..end]
*
* ------------------------------------------------------------------------------
@@ -10,7 +7,6 @@
* | ==18509== malloc/free: in use at exit: 0 bytes in 0 blocks. |
* | ==18509== malloc/free: 10,003 allocs, 10,003 frees, 280,600 bytes allocated. |
* ------------------------------------------------------------------------------
- *
*/
#include <stdio.h>
--- a/lsflib/include/bits.h
+++ b/lsflib/include/bits.h
@@ -1,3 +1,8 @@
+/**
+ * test/demos/lsflib/include/bits.h
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#ifndef __BITS_H__
#define __BITS_H__
--- a/lsflib/include/cpuid.h
+++ b/lsflib/include/cpuid.h
@@ -1,3 +1,8 @@
+/**
+ * test/demos/lsflib/include/cpuid.h
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#ifndef __CPUID_H__
#define __CPUID_H__
--- a/lsflib/include/list.h
+++ b/lsflib/include/list.h
@@ -1,3 +1,8 @@
+/**
+ * test/demos/lsflib/include/list.h
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#ifndef __LIST_H__
#define __LIST_H__
--- a/lsflib/include/lsf.h
+++ b/lsflib/include/lsf.h
@@ -1,3 +1,8 @@
+/**
+ * test/demos/lsflib/include/lsf.h
+ * Copyright (C) 2008 Markus Broeker
+ */
+
#ifndef __LSF_H__
#define __LSF_H__
--- a/lsflib/src/bindump.c
+++ b/lsflib/src/bindump.c
@@ -1,7 +1,6 @@
-/*
- * $Id: bindump.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/bindump.c $
- *
+/**
+ * test/demos/lsflib/src/bindump.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/get_line.c
+++ b/lsflib/src/get_line.c
@@ -1,7 +1,6 @@
-/*
- * $Id: get_line.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/get_line.c $
- *
+/**
+ * test/demos/lsflib/src/get_line.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/getdir.c
+++ b/lsflib/src/getdir.c
@@ -1,7 +1,6 @@
-/*
- * $Id: getdir.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/getdir.c $
- *
+/**
+ * test/demos/lsflib/src/getdir.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/hexdump.c
+++ b/lsflib/src/hexdump.c
@@ -1,7 +1,6 @@
-/*
- * $Id: hexdump.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/hexdump.c $
- *
+/**
+ * test/demos/lsflib/src/hexdump.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/list.c
+++ b/lsflib/src/list.c
@@ -1,7 +1,6 @@
-/*
- * $Id: list.c 107 2008-04-17 01:01:43Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/list.c $
- *
+/**
+ * test/demos/lsflib/src/list.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/md5recursive.c
+++ b/lsflib/src/md5recursive.c
@@ -1,7 +1,6 @@
-/*
- * $Id: md5recursive.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/md5recursive.c $
- *
+/**
+ * test/demos/lsflib/src/md5recursive.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/md5sum.c
+++ b/lsflib/src/md5sum.c
@@ -1,7 +1,6 @@
-/*
- * $Id: md5sum.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/md5sum.c $
- *
+/**
+ * test/demos/lsflib/src/md5sum.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/not.c
+++ b/lsflib/src/not.c
@@ -1,7 +1,6 @@
-/*
- * $Id: not.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/not.c $
- *
+/**
+ * test/demos/lsflib/src/not.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/tokenchar.c
+++ b/lsflib/src/tokenchar.c
@@ -1,7 +1,6 @@
-/*
- * $Id: tokenchar.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/tokenchar.c $
- *
+/**
+ * test/demos/lsflib/src/tokenchar.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/tokenizer.c
+++ b/lsflib/src/tokenizer.c
@@ -1,7 +1,6 @@
-/*
- * $Id: tokenizer.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/tokenizer.c $
- *
+/**
+ * test/demos/lsflib/src/tokenizer.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/lsflib/src/xor.c
+++ b/lsflib/src/xor.c
@@ -1,7 +1,6 @@
-/*
- * $Id: xor.c 94 2008-04-05 01:27:30Z mbroeker $
- * $URL: http://localhost/svn/c/lsflib/trunk/src/xor.c $
- *
+/**
+ * test/demos/lsflib/src/xor.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <string.h>
--- a/max.c
+++ b/max.c
@@ -1,8 +1,8 @@
/**
- * $Id: max.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/max.c,v $
- *
+ * test/demos/max.c
+ * Copyright (C) 2008 Markus Broeker
*/
+
#include <stdio.h>
#include <stdlib.h>
--- a/md5.c
+++ b/md5.c
@@ -1,6 +1,6 @@
-/*
- * $Id: md5.c,v 1.2 2008-04-29 07:26:06 mbroeker Exp $
- * $Source: /development/c/demos/md5.c,v $
+/**
+ * test/demos/md5.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/mem2swap.c
+++ b/mem2swap.c
@@ -1,6 +1,6 @@
/**
- * $Id: mem2swap.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Author: mbroeker $
+ * test/demos/mem2swap.c
+ * Copyright (C) 2008 Markus Broeker
*
* mem2swpapc usage: mem2spap [<MB>]
*/
--- a/ncurses.c
+++ b/ncurses.c
@@ -1,14 +1,10 @@
/**
- * $Id: ncurses.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/ncurses.c,v $
+ * test/demos/ncurses.c
+ * Copyright (C) 2008 Markus Broeker
*
- */
-
-/*
* Unicode != UTF-8
* unicode with ncursesw ( wide char)
* gcc $< -lncursesw -o $@
- *
*/
#include <stdio.h>
--- a/nomalloc.c
+++ b/nomalloc.c
@@ -1,7 +1,6 @@
/**
- * $Id: nomalloc.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/nomalloc.c,v $
- *
+ * test/demos/nomalloc.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/numerierung.c
+++ b/numerierung.c
@@ -1,7 +1,6 @@
/**
- * $Id: numerierung.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/numerierung.c,v $
- *
+ * test/demos/numerierung.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/parser/lexer.ll
+++ b/parser/lexer.ll
@@ -1,6 +1,6 @@
-/*
- * $Id$
- * $URL$
+/**
+ * test/demos/parser/lexer.ll
+ * Copyright (C) 2008 Markus Broeker
*/
%{
--- a/parser/main.c
+++ b/parser/main.c
@@ -1,7 +1,6 @@
/**
- * $Id: main.c 52 2008-01-10 00:19:40Z mbroeker $
- * $URL: http://localhost/svn/c/parser/trunk/main.c $
- *
+ * test/demos/parser/main.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/parser/parser.yy
+++ b/parser/parser.yy
@@ -1,6 +1,6 @@
-/*
- * $Id$
- * $URL$
+/**
+ * test/demos/parser/parser.yy
+ * Copyright (C) 2008 Markus Broeker
*/
%{
--- a/pmc/cube.cc
+++ b/pmc/cube.cc
@@ -1,8 +1,6 @@
-/***
- *
- * $Id: cube.cc,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/cube.cc,v $
- *
+/**
+ * test/demos/pmc/cube.cc
+ * Copyright (C) 2008 Markus Broeker
*/
#include <cube.h>
--- a/pmc/include/cube.h
+++ b/pmc/include/cube.h
@@ -1,7 +1,6 @@
-/***
- *
- * $Id: cube.h,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/include/cube.h,v $
+/**
+ * test/demos/pmc/include/cube.h
+ * Copyright (C) 2008 Markus Broeker
*/
#ifndef _CUBE_H
--- a/pmc/include/object.h
+++ b/pmc/include/object.h
@@ -1,7 +1,6 @@
-/***
- *
- * $Id: object.h,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/include/object.h,v $
+/**
+ * test/demos/pmc/include/object.h
+ * Copyright (C) 2008 Markus Broeker
*/
#ifndef OBJECT_H
--- a/pmc/include/pmc.h
+++ b/pmc/include/pmc.h
@@ -1,7 +1,6 @@
-/***
- *
- * $Id: pmc.h,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/include/pmc.h,v $
+/**
+ * test/demos/pmc/include/pmc.h
+ * Copyright (C) 2008 Markus Broeker
*/
#ifndef PMC_H
--- a/pmc/main.cc
+++ b/pmc/main.cc
@@ -1,8 +1,6 @@
-/***
- *
- * $Id: main.cc,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/main.cc,v $
- *
+/**
+ * test/demos/pmc/main.cc
+ * Copyright (C) 2008 Markus Broeker
*/
#include <cube.h>
--- a/pmc/pmc.cc
+++ b/pmc/pmc.cc
@@ -1,8 +1,6 @@
-/***
- *
- * $Id: pmc.cc,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/pmc.cc,v $
- *
+/**
+ * test/demos/pmc/pmc.cc
+ * Copyright (C) 2008 Markus Broeker
*/
#include <iostream>
--- a/pmc/sdl.cc
+++ b/pmc/sdl.cc
@@ -1,8 +1,6 @@
-/***
- *
- * $Id: sdl.cc,v 1.1.1.1 2008-04-28 17:33:22 mbroeker Exp $
- * $Source: /development/cpp/pmc/sdl.cc,v $
- *
+/**
+ * test/demos/pmc/sdl.cc
+ * Copyright (C) 2008 Markus Broeker
*/
#include <SDL/SDL.h>
--- a/prog_limit.c
+++ b/prog_limit.c
@@ -1,7 +1,6 @@
/**
- * $Id: prog_limit.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/mem2swap/prog_limit.c,v $
- *
+ * test/demos/prog_limit.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/recording.c
+++ b/recording.c
@@ -1,6 +1,6 @@
-/*
- * $Id: recording.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/recording.c,v $
+/**
+ * test/demos/recording.c
+ * Copyright (C) 2008 Markus Broeker
*
* Program to illustrate /dev/dsp device
* Records several seconds of sound, then echoes it back.
--- a/set_limit.c
+++ b/set_limit.c
@@ -1,7 +1,6 @@
/**
- * $Id: set_limit.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/mem2swap/set_limit.c,v $
- *
+ * test/demos/set_limit.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <sys/time.h>
--- a/signals.c
+++ b/signals.c
@@ -1,7 +1,6 @@
/**
- * $Id: signals.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/signals.c,v $
- *
+ * test/demos/signals.c
+ * Copyright (C) 2008 Markus Broeker
*/
#ifndef _XOPEN_SOURCE
@@ -22,13 +21,10 @@
{
printf ("I received the SIGQUIT Signal\n");
/*
- * This kills the process and subprocesses
+ * 0 kills every process in the current process group
+ * -1 kills all reachable user processes (dangerous, logout)
*/
- kill (-1, SIGKILL);
- /*
- * ^^ can not be reached
- */
- exit (0);
+ kill (0, SIGKILL);
}
int main (int argc, char **argv)
--- a/sudoku.c
+++ b/sudoku.c
@@ -1,11 +1,10 @@
-/*
- * $Id: sudoku.c,v 1.3 2008-04-29 15:18:53 mbroeker Exp $
- * $Source: /development/c/demos/sudoku.c,v $
+/**
+ * test/demos/sudoku.c
+ * Copyright (C) 2008 Markus Broeker
*
+ * Sudoku - The Game
*/
-/* Sudoku - The Game */
-
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
--- a/testcase.c
+++ b/testcase.c
@@ -1,7 +1,6 @@
/**
- * $Id: testcase.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/testcase.c,v $
- *
+ * test/demos/testcase.c
+ * Copyright (C) 2008 Markus Broeker
*/
#define _XOPEN_SOURCE 500
--- a/threads.c
+++ b/threads.c
@@ -1,6 +1,6 @@
/**
- * $Id: threads.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/threads.c,v $
+ * test/demos/threads.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
@@ -44,4 +44,3 @@
return EXIT_SUCCESS;
}
-
--- a/tokenpasting.c
+++ b/tokenpasting.c
@@ -1,8 +1,6 @@
/**
- * $Id: tokenpasting.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/tokenpasting.c,v $
- *
- * Description: Demonstration of the secret token concatenation mechanism
+ * test/demos/tokenpasting.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/tree.c
+++ b/tree.c
@@ -1,7 +1,6 @@
/**
- * $Id: tree.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/tree.c,v $
- *
+ * test/demos/tree.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/urandom.c
+++ b/urandom.c
@@ -1,7 +1,6 @@
/**
- * $Id: urandom.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/urandom.c,v $
- *
+ * test/demos/tree.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/utf8.c
+++ b/utf8.c
@@ -1,7 +1,6 @@
/**
- * $Id: utf8.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/utf8.c,v $
- *
+ * test/demos/utf8.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/varargs.c
+++ b/varargs.c
@@ -1,7 +1,6 @@
-/*
- * $Id: varargs.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/varargs.c,v $
- *
+/**
+ * test/demos/varargs.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>
--- a/xdemo.c
+++ b/xdemo.c
@@ -1,7 +1,6 @@
/**
- * $Id: xdemo.c,v 1.1.1.1 2008-04-28 17:32:53 mbroeker Exp $
- * $Source: /development/c/demos/xdemo.c,v $
- *
+ * test/demos/xdemo.c
+ * Copyright (C) 2008 Markus Broeker
*/
#include <stdio.h>