From: Pierre Habouzit Date: Fri, 10 Nov 2006 20:49:00 +0000 (+0100) Subject: copyright statements X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=8ae25c5388a9b4c1f201ef3463967635d387ea92;p=apps%2Fmadtty.git copyright statements --- diff --git a/Makefile.in b/Makefile.in index 5c47a58..318c1f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,4 @@ -# Makefile for librote -# -# Copyright (c) 2004 Bruno T. C. de Oliveira +# Makefile for libmadtty # # LICENSE INFORMATION: # This program is free software; you can redistribute it and/or @@ -16,7 +14,9 @@ # 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) 2002 Bruno T. C. de Oliveira +# +# Copyright © 2002-2004 Bruno T. C. de Oliveira +# Copyright © 2006 Pierre Habouzit SOURCES=$(wildcard *.c) HEADERS=$(wildcard *.h) @@ -41,7 +41,7 @@ all: libmadtty.so.$(MADTTY_VERSION) install: all mkdir -p $(DESTDIR)$(includedir)/madtty rm -f $(DESTDIR)$(includedir)/madtty/*.h - cp rote.h $(DESTDIR)$(includedir)/madtty + cp madtty.h $(DESTDIR)$(includedir)/madtty mkdir -p $(DESTDIR)$(libdir) cp libmadtty.so.$(MADTTY_VERSION) $(DESTDIR)$(libdir) cd $(DESTDIR)$(libdir) && ln -sf libmadtty.so.$(MADTTY_VERSION) libmadtty.so diff --git a/demo/boxshell.c b/demo/boxshell.c index 4ce2257..e0040a5 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -7,9 +7,10 @@ #include #include -#include #include +#include + static unsigned char getout = 0; void sigchld(int signo) { getout = 1; } int my_custom_handler(RoteTerm *rt, const char *es); diff --git a/inject.c b/inject.c index 031b809..d4b05da 100644 --- a/inject.c +++ b/inject.c @@ -1,29 +1,30 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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 + You should have received a copy of the GNU Lesser 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) 2004 Bruno T. C. de Oliveira -*/ + Copyright © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ +#include +#include -#include "rote.h" +#include "madtty.h" #include "roteprivate.h" #include "inject_csi.h" -#include -#include static void cursor_line_down(RoteTerm *rt) { int i; diff --git a/inject_csi.c b/inject_csi.c index 3942304..4c3a52e 100644 --- a/inject_csi.c +++ b/inject_csi.c @@ -1,30 +1,31 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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 + You should have received a copy of the GNU Lesser 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) 2004 Bruno T. C. de Oliveira -*/ + Copyright © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ - -#include "inject_csi.h" -#include "roteprivate.h" #include #include #include +#include "inject_csi.h" +#include "roteprivate.h" + #define MAX_CSI_ES_PARAMS 32 /* interprets a 'set attribute' (SGR) CSI escape sequence */ diff --git a/inject_csi.h b/inject_csi.h index b350a12..3759934 100644 --- a/inject_csi.h +++ b/inject_csi.h @@ -1,28 +1,28 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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) 2004 Bruno T. C. de Oliveira -*/ + You should have received a copy of the GNU Lesser 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 © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ #ifndef btco_ROTE_inject_csi_h #define btco_ROTE_inject_csi_h -#include "rote.h" +#include "madtty.h" /* Interprets a CSI escape sequence stored in rt->pd->esbuf, * changing rt to reflect the effect of the sequence. This function diff --git a/rote.h b/madtty.h similarity index 93% rename from rote.h rename to madtty.h index 7654784..cd51378 100644 --- a/rote.h +++ b/madtty.h @@ -1,33 +1,26 @@ -/* ROTE - Our Own Terminal Emulation library - * Copyright (c) 2004 Bruno T. C. de Oliveira - * All rights reserved - * - * 2004-08-25 - */ - /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. - -Please refer to the COPYING file for more information. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -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. + Please refer to the COPYING file for more information. -You should have received a copy of the GNU Lesser 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 + 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. -Copyright (c) 2004 Bruno T. C. de Oliveira -*/ + You should have received a copy of the GNU Lesser 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 © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ -#ifndef btco_ROTE_rote_h -#define btco_ROTE_rote_h +#ifndef MADTTY_MADTTY_H +#define MADTTY_MADTTY_H #ifdef USE_NCURSES #include @@ -307,5 +300,4 @@ void rote_vt_install_handler(RoteTerm *rt, rote_es_handler_t handler); * that it will even if more characters * are added to it. */ -#endif - +#endif /* MADTTY_MADTTY_H */ diff --git a/rote.c b/rote.c index 442e1d0..83dd331 100644 --- a/rote.c +++ b/rote.c @@ -1,26 +1,24 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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 + You should have received a copy of the GNU Lesser 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) 2004 Bruno T. C. de Oliveira -*/ + Copyright © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ - -#include "rote.h" -#include "roteprivate.h" #include #ifdef USE_PTY #include @@ -28,6 +26,9 @@ Copyright (c) 2004 Bruno T. C. de Oliveira #include #include +#include "madtty.h" +#include "roteprivate.h" + #define ROTE_VT_UPDATE_ITERATIONS 5 RoteTerm *rote_vt_create(int rows, int cols) { diff --git a/rote_keymap.c b/rote_keymap.c index d67bdd8..253a110 100644 --- a/rote_keymap.c +++ b/rote_keymap.c @@ -1,30 +1,30 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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 + You should have received a copy of the GNU Lesser 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) 2004 Bruno T. C. de Oliveira -*/ - - -#include "rote.h" + Copyright © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ #include #include #include +#include "madtty.h" + static const char *keytable[KEY_MAX+1]; static int initialized = 0; diff --git a/roteprivate.h b/roteprivate.h index 627c91f..90a490d 100644 --- a/roteprivate.h +++ b/roteprivate.h @@ -1,23 +1,23 @@ /* -LICENSE INFORMATION: -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License (LGPL) as published by the Free Software Foundation. + LICENSE INFORMATION: + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License (LGPL) as published by the Free Software Foundation. -Please refer to the COPYING file for more information. + Please refer to the COPYING file for more information. -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. + 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 Lesser 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) 2004 Bruno T. C. de Oliveira -*/ + You should have received a copy of the GNU Lesser 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 © 2004 Bruno T. C. de Oliveira + Copyright © 2006 Pierre Habouzit + */ #ifndef btco_ROTE_vtstate_h #define btco_ROTE_vtstate_h