Mercurial > ~mikael > mcabber > hg
diff mcabber/src/main.c @ 307:566818afee1c
Add headers to C files
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 12 Jul 2005 17:19:42 +0100 |
parents | b2d11b11675f |
children | f0b7ff2df7e8 1ceb68eb2fc1 |
line wrap: on
line diff
--- 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 <bmikael@lists.lilotux.net> + * Parts of this file come from Cabber <cabber@ajmacias.com> + * + * 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 <stdio.h> #include <stdlib.h> @@ -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;