Change source file header to plain GPLv2 headers

This commit is contained in:
Thomas Jensen 2019-02-15 21:24:31 +01:00
parent 5a6df32738
commit 7d98227583
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
17 changed files with 282 additions and 345 deletions

View File

@ -1,22 +1,19 @@
# #
# File: Makefile # boxes - Command line filter to draw/remove ASCII boxes around text
# Creation: August 14, 1999 (Saturday, 01:08h) # Copyright (C) 1999 Thomas Jensen and the boxes contributors
# Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
# Format: GNU make
# Purpose: Makefile for boxes, the box drawing program
# #
# License: o This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or modify it
# modify it under the terms of the GNU General Public License as # under the terms of the GNU General Public License, version 2, as published
# published by the Free Software Foundation; either version 2 of # by the Free Software Foundation.
# the License, or (at your option) any later version. #
# o This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful, but
# but WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# GNU General Public License for more details. # for more details.
# o You should have received a copy of the GNU General Public #
# License along with this program; if not, write to the Free # You should have received a copy of the GNU General Public License along
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # with this program; if not, write to the Free Software Foundation, Inc.,
# MA 02111-1307 USA # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#____________________________________________________________________________ #____________________________________________________________________________
#============================================================================ #============================================================================

View File

@ -1,25 +1,19 @@
# #
# File: Makefile.Win32 # boxes - Command line filter to draw/remove ASCII boxes around text
# Creation: March 18, 1999 (Thursday, 15:10h) # Copyright (C) 1999 Thomas Jensen and the boxes contributors
# Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
# Win32 Modifications by Ron Aaron <ron@mossbayeng.com>
# Format: GNU make
# Web Site: https://boxes.thomasjensen.com/
# Platforms: win32
# Purpose: Makefile for boxes, the box drawing program
# #
# License: o This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or modify it
# modify it under the terms of the GNU General Public License as # under the terms of the GNU General Public License, version 2, as published
# published by the Free Software Foundation; either version 2 of # by the Free Software Foundation.
# the License, or (at your option) any later version. #
# o This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful, but
# but WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# GNU General Public License for more details. # for more details.
# o You should have received a copy of the GNU General Public #
# License along with this program; if not, write to the Free # You should have received a copy of the GNU General Public License along
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # with this program; if not, write to the Free Software Foundation, Inc.,
# MA 02111-1307 USA # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#____________________________________________________________________________ #____________________________________________________________________________
#============================================================================ #============================================================================

View File

@ -1,43 +1,19 @@
/* /*
* File: boxes.c * boxes - Command line filter to draw/remove ASCII boxes around text
* Date created: March 18, 1999 (Thursday, 15:09h) * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Filter to draw boxes around input text (and remove it).
* *
* License: o This program is free software; you can redistribute it * This program is free software; you can redistribute it and/or modify it
* and/or modify it under the terms of the GNU General Public * under the terms of the GNU General Public License, version 2, as published
* License as published by the Free Software Foundation; either * by the Free Software Foundation.
* version 2 of the License, or (at your option) any later
* version.
* o 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.
* o 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
* *
* - This version is leaking small bits of memory. Since boxes * This program is distributed in the hope that it will be useful, but
* runs as a filter in its own process, the leaks are irrelevant. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* - The decision to number box shapes in clockwise order was a * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* major design mistake. Treatment of box parts of the same * for more details.
* alignment (N-S and E-W) is usually combined in one function, *
* which must now deal with the numbering being reversed all the * You should have received a copy of the GNU General Public License along
* time. This is nasty, but changing the shape order would * with this program; if not, write to the Free Software Foundation, Inc.,
* pretty much mean a total rewrite of the code, so we'll have * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* to live with it.
* - All shapes defined in a box design must be used in any box of
* that design at least once. In other words, there must not be
* a shape which is defined in the config file but cannot be
* found in an actual box of that design. This sort of limits
* how small your boxes can get. However, in practice it is not
* a problem, because boxes which must be small usually consist
* of small shapes which can be packed pretty tightly anyway.
* And again, changing this would pretty much mean a total
* rewrite.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
@ -71,6 +47,22 @@ extern int optind, opterr, optopt; /* for getopt() */
#define BOXES_CONFIG ".boxes" #define BOXES_CONFIG ".boxes"
#endif #endif
/*
* Some source comments (AD 1999):
*
* - The decision to number box shapes in clockwise order was a
* major design mistake. Treatment of box parts of the same
* alignment (N-S and E-W) is usually combined in one function,
* which must now deal with the numbering being reversed all the
* time.
* - All shapes defined in a box design must be used in any box of
* that design at least once. In other words, there must not be
* a shape which is defined in the config file but cannot be
* found in an actual box of that design. This sort of limits
* how small your boxes can get. However, in practice it is not
* a problem, because boxes which must be small usually consist
* of small shapes which can be packed pretty tightly anyway.
*/
static const char rcsid_boxes_c[] = static const char rcsid_boxes_c[] =
"$Id: boxes.c,v 1.39 2006/08/28 15:53:46 tsjensen Exp $"; "$Id: boxes.c,v 1.39 2006/08/28 15:53:46 tsjensen Exp $";

View File

@ -1,27 +1,25 @@
/* /*
* File: boxes.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Date created: March 18, 1999 (Thursday, 15:09h) * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Project-wide globals and data structures
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Project-wide globals and data structures
#ifndef BOXES_H #ifndef BOXES_H
#define BOXES_H #define BOXES_H

View File

@ -1,28 +1,25 @@
/* /*
* File: config.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: July 4, 1999 (Sunday, 21:04h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Please compiler and ease porting
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Please compiler and ease porting
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H

View File

@ -1,28 +1,25 @@
/* /*
* File: generate.c * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 20:10h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Box generation, i.e. the drawing of boxes
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Box generation, i.e. the drawing of boxes
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,28 +1,25 @@
/* /*
* File: generate.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 20:12h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Box generation, i.e. the drawing of boxes
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Box generation, i.e. the drawing of boxes
#ifndef GENERATE_H #ifndef GENERATE_H
#define GENERATE_H #define GENERATE_H

View File

@ -1,28 +1,25 @@
/* /*
* File: lexer.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: July 01, 1999 (Thursday, 13:43h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Export symbols used by the parser files only
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Export symbols used by the parser files only
#ifndef LEXER_H #ifndef LEXER_H
#define LEXER_H #define LEXER_H

View File

@ -1,31 +1,26 @@
%{ %{
/* /*
* File: lexer.l * boxes - Command line filter to draw/remove ASCII boxes around text
* Date created: March 15, 1999 (Monday, 17:16h) * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: lex (ANSI C)
* Web Site: https://boxes.thomasjensen.com/
* Purpose: flex lexical analyzer for boxes configuration files
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version.
* o 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.
* o 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
* *
* Remarks: - We don't use the yylineno %option. It is not only inefficient, * This program is distributed in the hope that it will be useful, but
* but also doesn't work. :-| *doh* * 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// flex lexical analyzer for boxes configuration files
#include "config.h" #include "config.h"
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,28 +1,26 @@
%{ %{
/* /*
* File: parser.y * boxes - Command line filter to draw/remove ASCII boxes around text
* Date created: March 16, 1999 (Tuesday, 17:17h) * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: GNU bison (ANSI C)
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Yacc parser for boxes configuration files
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Yacc parser for boxes configuration files
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,24 +1,19 @@
# #
# File: Makefile # boxes - Command line filter to draw/remove ASCII boxes around text
# Creation: August 13, 1999 (Friday, 22:13h) # Copyright (C) 1999 Thomas Jensen and the boxes contributors
# Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
# Format: GNU make
# Web Site: https://boxes.thomasjensen.com/
# Purpose: Makefile for boxes, the box drawing program
# generation of regexp handling library
# #
# License: o This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or modify it
# modify it under the terms of the GNU General Public License as # under the terms of the GNU General Public License, version 2, as published
# published by the Free Software Foundation; either version 2 of # by the Free Software Foundation.
# the License, or (at your option) any later version. #
# o This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful, but
# but WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# GNU General Public License for more details. # for more details.
# o You should have received a copy of the GNU General Public #
# License along with this program; if not, write to the Free # You should have received a copy of the GNU General Public License along
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # with this program; if not, write to the Free Software Foundation, Inc.,
# MA 02111-1307 USA # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#____________________________________________________________________________ #____________________________________________________________________________
#============================================================================ #============================================================================

View File

@ -1,28 +1,25 @@
/* /*
* File: remove.c * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 20:59h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Box removal, i.e. the deletion of boxes
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Box removal, i.e. the deletion of boxes
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,28 +1,25 @@
/* /*
* File: remove.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 21:00h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Box removal, i.e. the deletion of boxes
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Box removal, i.e. the deletion of boxes
#ifndef REMOVE_H #ifndef REMOVE_H
#define REMOVE_H #define REMOVE_H

View File

@ -1,28 +1,25 @@
/* /*
* File: shape.c * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 13:39h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Shape handling and information functions
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Shape handling and information functions
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,28 +1,25 @@
/* /*
* File: shape.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 23, 1999 (Wednesday, 13:45h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Shape handling and information functions
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Shape handling and information functions
#ifndef SHAPE_H #ifndef SHAPE_H
#define SHAPE_H #define SHAPE_H

View File

@ -1,29 +1,24 @@
/* /*
* File: tools.c * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 20, 1999 (Sunday, 16:51h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Provide tool functions for error reporting and some
* string handling
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Provide tool functions for error reporting and some string handling
#include "config.h" #include "config.h"
#include <errno.h> #include <errno.h>

View File

@ -1,29 +1,26 @@
/* /*
* File: tools.h * boxes - Command line filter to draw/remove ASCII boxes around text
* Project Main: boxes.c * Copyright (C) 1999 Thomas Jensen and the boxes contributors
* Date created: June 20, 1999 (Sunday, 16:57h)
* Author: Copyright (C) 1999 Thomas Jensen <boxes@thomasjensen.com>
* Language: ANSI C
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Tool functions for error reporting and some string
* handling and other needful things
* *
* License: o This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or modify it
* modify it under the terms of the GNU General Public License as * under the terms of the GNU General Public License, version 2, as published
* published by the Free Software Foundation; either version 2 of * by the Free Software Foundation.
* the License, or (at your option) any later version. *
* o This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, but
* but WITHOUT ANY WARRANTY; without even the implied warranty of * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* GNU General Public License for more details. * for more details.
* o You should have received a copy of the GNU General Public *
* License along with this program; if not, write to the Free * You should have received a copy of the GNU General Public License along
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * with this program; if not, write to the Free Software Foundation, Inc.,
* MA 02111-1307 USA * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/ */
// Tool functions for error reporting and some string handling and other
// needful things
#ifndef TOOLS_H #ifndef TOOLS_H
#define TOOLS_H #define TOOLS_H