Permalink
Browse files

standardise file headers

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 0132a04 commit 94e4a2edeacb83651b131b19654c5112ac25a320 @hxw hxw committed Dec 22, 2009
Showing with 708 additions and 447 deletions.
  1. +13 −4 host-tools/cocoa-simulator/MainWindow.h
  2. +22 −13 host-tools/cocoa-simulator/MainWindow.m
  3. +13 −4 host-tools/cocoa-simulator/WikiDisplay.h
  4. +13 −4 host-tools/cocoa-simulator/WikiDisplay.m
  5. +13 −4 host-tools/cocoa-simulator/main.m
  6. +20 −19 host-tools/console-simulator/main.c
  7. +1 −1 host-tools/hash-gen/hash.c
  8. +1 −1 host-tools/hash-gen/hash.h
  9. +1 −1 host-tools/hash-gen/main.c
  10. +4 −2 host-tools/imagetool/imagetool.py
  11. +20 −20 host-tools/qt4-simulator/src/MainWindow.cpp
  12. +23 −22 host-tools/qt4-simulator/src/MainWindow.h
  13. +22 −21 host-tools/qt4-simulator/src/WikiDisplay.cpp
  14. +24 −23 host-tools/qt4-simulator/src/WikiDisplay.h
  15. +21 −21 host-tools/qt4-simulator/src/WikilibThread.cpp
  16. +23 −22 host-tools/qt4-simulator/src/WikilibThread.h
  17. +21 −21 host-tools/qt4-simulator/src/main.cpp
  18. +23 −23 host-tools/qt4-simulator/src/main.h
  19. +1 −1 host-tools/wiki-xml/main.c
  20. +4 −2 samo-lib/Mk/rules.mk
  21. +1 −1 samo-lib/drivers/Makefile
  22. +3 −0 samo-lib/drivers/include/analog.h
  23. +4 −1 samo-lib/drivers/include/button.h
  24. +3 −0 samo-lib/drivers/include/contrast.h
  25. +4 −1 samo-lib/drivers/include/ctp.h
  26. +5 −0 samo-lib/drivers/include/delay.h
  27. +4 −1 samo-lib/drivers/include/interrupt.h
  28. +6 −2 samo-lib/drivers/include/suspend.h
  29. +3 −0 samo-lib/drivers/include/temperature.h
  30. +3 −0 samo-lib/drivers/include/tick.h
  31. +4 −1 samo-lib/drivers/src/analog.c
  32. +4 −1 samo-lib/drivers/src/button.c
  33. +3 −0 samo-lib/drivers/src/contrast.c
  34. +4 −1 samo-lib/drivers/src/ctp.c
  35. +4 −0 samo-lib/drivers/src/delay_nop.c
  36. +4 −0 samo-lib/drivers/src/delay_us.c
  37. +6 −3 samo-lib/drivers/src/suspend.c
  38. +3 −0 samo-lib/drivers/src/temperature.c
  39. +3 −0 samo-lib/drivers/src/tick.c
  40. +3 −1 samo-lib/flash/Makefile
  41. +4 −2 samo-lib/forth/FileSystem.c
  42. +4 −2 samo-lib/forth/FileSystem.h
  43. +1 −1 samo-lib/forth/License.text
  44. +3 −1 samo-lib/forth/Makefile
  45. +4 −2 samo-lib/forth/PolledSerial.s
  46. +3 −1 samo-lib/forth/ansi-forth.fs
  47. +4 −2 samo-lib/forth/button.s
  48. +4 −2 samo-lib/forth/c33regs.inc
  49. +4 −2 samo-lib/forth/ctp.s
  50. +4 −2 samo-lib/forth/debug.h
  51. +4 −2 samo-lib/forth/debug.s
  52. +4 −2 samo-lib/forth/forth.h
  53. +3 −1 samo-lib/forth/header.s
  54. +4 −2 samo-lib/forth/iserial.s
  55. +3 −1 samo-lib/forth/meta.fs
  56. +4 −2 samo-lib/forth/regs.inc
  57. +4 −2 samo-lib/forth/serial.h
  58. +3 −1 samo-lib/forth/trailer.s
  59. +3 −1 samo-lib/forth/vector.s
  60. +4 −3 samo-lib/mahatma/Makefile
  61. +4 −3 samo-lib/mahatma/README
  62. +6 −2 samo-lib/mahatma/gpio.c
  63. +9 −6 samo-lib/mahatma/gpio.h
  64. +6 −3 samo-lib/mahatma/gui.c
  65. +8 −4 samo-lib/mahatma/gui.h
  66. +6 −2 samo-lib/mahatma/input.c
  67. +6 −2 samo-lib/mahatma/mahatma.c
  68. +7 −3 samo-lib/mahatma/msg-output.c
  69. +9 −5 samo-lib/mahatma/msg-output.h
  70. +7 −3 samo-lib/mahatma/serial.c
  71. +9 −6 samo-lib/mahatma/serial.h
  72. +7 −3 samo-lib/mahatma/touchscreen.c
  73. +10 −5 samo-lib/mahatma/touchscreen.h
  74. +6 −2 samo-lib/mahatma/traps.c
  75. +9 −5 samo-lib/mahatma/traps.h
  76. +1 −1 samo-lib/mbr/Makefile
  77. +2 −1 samo-lib/mbr/memory-test.c
  78. +1 −1 samo-lib/mini-libc/Makefile
  79. +5 −2 wiki-app/glyph.c
  80. +4 −1 wiki-app/guilib.c
  81. +3 −1 wiki-app/hexdump.c
  82. +14 −12 wiki-app/history.c
  83. +14 −12 wiki-app/history.h
  84. +13 −11 wiki-app/keyboard.c
  85. +18 −9 wiki-app/malloc-simple.c
  86. +18 −10 wiki-app/malloc-simple.h
  87. +17 −16 wiki-app/misc.c
  88. +2 −2 wiki-app/perf.c
  89. +2 −2 wiki-app/perf.h
  90. +2 −2 wiki-app/profile.c
  91. +2 −2 wiki-app/profile.h
  92. +18 −9 wiki-app/search.c
  93. +13 −12 wiki-app/search.h
  94. +19 −10 wiki-app/wikilib.c
  95. +3 −1 wiki-app/wl-keyboard.h
@@ -1,10 +1,19 @@
+// Copyright (c) 2009 Openmoko Inc.
//
-// MainWindow.h
-// CocoaSimulator
+// Authors Daniel Mack
//
-// Created by Daniel on 11.12.08.
-// Copyright 2008 caiaq. All rights reserved.
+// 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 3 of the License, or
+// (at your option) any later version.
//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import <Cocoa/Cocoa.h>
#import "WikiDisplay.h"
@@ -1,10 +1,19 @@
+// Copyright (c) 2009 Openmoko Inc.
//
-// MainWindow.m
-// CocoaSimulator
+// Authors Daniel Mack
//
-// Created by Daniel on 11.12.08.
-// Copyright 2008 caiaq. All rights reserved.
+// 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 3 of the License, or
+// (at your option) any later version.
//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import "MainWindow.h"
#include <wikilib.h>
@@ -28,20 +37,20 @@ int wl_input_wait(struct wl_input_event *ev)
NSSize view_size;
ev->type = -1;
-
+
do {
[condition lock];
[condition wait];
[condition unlock];
NSEvent *currentEvent = [NSApp currentEvent];
-
+
switch ([currentEvent type]) {
case NSKeyUp:
case NSKeyDown:
ev->type = WL_INPUT_EV_TYPE_KEYBOARD;
ev->key_event.keycode = [[currentEvent characters] characterAtIndex: 0];
-
+
if (ev->key_event.keycode == '?')
ev->key_event.keycode = [currentEvent keyCode];
@@ -99,7 +108,7 @@ - (void) refreshDisplay
NSUInteger rgba[4] = { val, val, val, 0 };
[imageRep setPixel: rgba atX: x y: y];
}
-
+
[imageView setNeedsDisplay];
}
@@ -112,7 +121,7 @@ - (void) wikiLibThread : (id) param
[pool release];
}
-- (void) awakeFromNib
+- (void) awakeFromNib
{
framebuffer = (char *) malloc(FRAMEBUFFER_SIZE);
@@ -122,7 +131,7 @@ - (void) awakeFromNib
return;
}
- imageRep = [[NSBitmapImageRep alloc]
+ imageRep = [[NSBitmapImageRep alloc]
initWithBitmapDataPlanes: NULL
pixelsWide: (NSInteger) [imageView frame].size.width
pixelsHigh: (NSInteger) [imageView frame].size.height
@@ -159,7 +168,7 @@ - (void)applicationDidBecomeActive: (NSNotification *) aNotification
- (IBAction) buttonPressed: (id) sender
{
unsigned int code;
-
+
switch ([sender tag]) {
case 0:
code = WL_INPUT_KEY_SEARCH;
@@ -173,7 +182,7 @@ - (IBAction) buttonPressed: (id) sender
default:
return;
}
-
+
NSEvent *curr = [NSApp currentEvent];
NSEvent *ev = [NSEvent keyEventWithType: NSKeyDown
location: [curr locationInWindow]
@@ -185,7 +194,7 @@ - (IBAction) buttonPressed: (id) sender
charactersIgnoringModifiers: nil
isARepeat: NO
keyCode: code ];
-
+
[NSApp postEvent: ev atStart: YES];
}
@@ -1,10 +1,19 @@
+// Copyright (c) 2009 Openmoko Inc.
//
-// WikiDisplay.h
-// CocoaSimulator
+// Authors Daniel Mack
//
-// Created by Daniel on 12.12.08.
-// Copyright 2008 caiaq. All rights reserved.
+// 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 3 of the License, or
+// (at your option) any later version.
//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import <Cocoa/Cocoa.h>
@@ -1,10 +1,19 @@
+// Copyright (c) 2009 Openmoko Inc.
//
-// WikiDisplay.m
-// CocoaSimulator
+// Authors Daniel Mack
//
-// Created by Daniel on 12.12.08.
-// Copyright 2008 caiaq. All rights reserved.
+// 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 3 of the License, or
+// (at your option) any later version.
//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import "WikiDisplay.h"
@@ -1,10 +1,19 @@
+// Copyright (c) 2009 Openmoko Inc.
//
-// main.m
-// CocoaSimulator
+// Authors Daniel Mack
//
-// Created by Daniel Mack on 11/2/08.
-// Copyright caiaq 2008. GPLv3.
+// 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 3 of the License, or
+// (at your option) any later version.
//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
#import <Cocoa/Cocoa.h>
@@ -1,22 +1,23 @@
/*
- Wikipedia reader tools
- ncurses based simulator
-
- Copyright (c) 2008 Daniel Mack <daniel@caiaq.de>
-
- 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 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
+ * ncurses based simulator
+ *
+ * Copyright (c) 2009 Openmoko Inc.
+ *
+ * Authors Daniel Mack <daniel@caiaq.de>
+ *
+ * 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -69,7 +70,7 @@ void msg(int level, const char *format, ...)
break;
}
- va_start(ap, format);
+ va_start(ap, format);
attron(attrs);
vwprintw(stdscr, format, ap);
attroff(attrs);
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2009 Openmoko, Inc.
+ * Copyright (c) 2009 Openmoko Inc.
*
* 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
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2009 Openmoko, Inc.
+ * Copyright (c) 2009 Openmoko Inc.
*
* 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
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2009 Openmoko, Inc.
+ * Copyright (c) 2009 Openmoko Inc.
*
* 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
@@ -2,7 +2,9 @@
"""
Generate an image from a png which can be used by guilib.
- Copyright (C) 2009 Daniel Mack <daniel@caiaq.de>
+ Copyright (c) 2009 Openmoko Inc.
+
+ Authors Daniel Mack <daniel@caiaq.de>
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
@@ -62,7 +64,7 @@ def usage():
if (color > 127):
outbyte |= 1 << (7 - bit);
-
+
if bit == 7:
out += "0x%02x, " % outbyte
outbyte = 0
@@ -1,23 +1,23 @@
-/***************************************************************************
- * Copyright (C) 2009 Openmoko Inc. *
- * *
- * Authors Daniel Mack <daniel@caiaq.de> *
- * *
- * 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. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
+/*
+ * Copyright (c) 2009 Openmoko Inc.
+ *
+ * Authors Daniel Mack <daniel@caiaq.de>
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
#include "MainWindow.h"
#include "WikiDisplay.h"
@@ -1,25 +1,26 @@
-/***************************************************************************
- * Copyright (C) 2009 Openmoko Inc. *
- * *
- * Authors Daniel Mack <daniel@caiaq.de> *
- * *
- * 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. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
- ***************************************************************************/
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
+/*
+ * Copyright (c) 2009 Openmoko Inc.
+ *
+ * Authors Daniel Mack <daniel@caiaq.de>
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the
+ * Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#if !defined(MAINWINDOW_H)
+#define MAINWINDOW_H 1
#include <QWidget>
#include <QPushButton>
Oops, something went wrong.

0 comments on commit 94e4a2e

Please sign in to comment.