# HG changeset patch # User Mikael Berthe # Date 1121185182 -3600 # Node ID 566818afee1ca6365f6813e149daa06450549109 # Parent b2d11b11675feacc0a26ddd87dc5aa652c4cbfb6 Add headers to C files diff -r b2d11b11675f -r 566818afee1c mcabber/src/main.c --- a/mcabber/src/main.c Tue Jul 12 17:10:41 2005 +0100 +++ b/mcabber/src/main.c Tue Jul 12 17:19:42 2005 +0100 @@ -1,3 +1,25 @@ +/* + * main.c + * + * Copyright (C) 2005 Mikael Berthe + * Parts of this file come from Cabber + * + * 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 + */ + #define _GNU_SOURCE #include #include @@ -224,9 +246,10 @@ while (ret != 255) { key = scr_Getch(); - // The refresh is really an ugly hack, but we need to call doupdate() - // from time to time to catch the RESIZE events, because getch keep - // returning ERR until a real key is pressed :-( + /* The refresh is really an ugly hack, but we need to call doupdate() + from time to time to catch the RESIZE events, because getch keep + returning ERR until a real key is pressed :-( + */ if (key != ERR) { ret = process_key(key); refresh = 0; diff -r b2d11b11675f -r 566818afee1c mcabber/src/screen.c --- a/mcabber/src/screen.c Tue Jul 12 17:10:41 2005 +0100 +++ b/mcabber/src/screen.c Tue Jul 12 17:19:42 2005 +0100 @@ -1,3 +1,25 @@ +/* + * screen.c -- UI stuff + * + * Copyright (C) 2005 Mikael Berthe + * Parts of this file come from the Cabber project + * + * 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 #include #include