diff --git a/Makefile b/Makefile index 988d104..0c164f5 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,19 @@ # -# File: Makefile -# Creation: August 14, 1999 (Saturday, 01:08h) -# Author: Copyright (C) 1999 Thomas Jensen -# Format: GNU make -# Purpose: Makefile for boxes, the box drawing program -# -# License: o 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. -# 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 +# boxes - Command line filter to draw/remove ASCII boxes around text +# Copyright (C) 1999 Thomas Jensen and the boxes contributors +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License, version 2, 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. +# +# 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. #____________________________________________________________________________ #============================================================================ diff --git a/src/Makefile b/src/Makefile index 1411eab..65fdcc7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,25 +1,19 @@ # -# File: Makefile.Win32 -# Creation: March 18, 1999 (Thursday, 15:10h) -# Author: Copyright (C) 1999 Thomas Jensen -# Win32 Modifications by Ron Aaron -# Format: GNU make -# Web Site: https://boxes.thomasjensen.com/ -# Platforms: win32 -# Purpose: Makefile for boxes, the box drawing program +# boxes - Command line filter to draw/remove ASCII boxes around text +# Copyright (C) 1999 Thomas Jensen and the boxes contributors # -# License: o 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. -# 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 program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License, version 2, 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. +# +# 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. #____________________________________________________________________________ #============================================================================ diff --git a/src/boxes.c b/src/boxes.c index 71e6b82..920f25d 100644 --- a/src/boxes.c +++ b/src/boxes.c @@ -1,43 +1,19 @@ /* - * File: boxes.c - * Date created: March 18, 1999 (Thursday, 15:09h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Filter to draw boxes around input text (and remove it). + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 - * runs as a filter in its own process, the leaks are irrelevant. - * - 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. This is nasty, but changing the shape order would - * pretty much mean a total rewrite of the code, so we'll have - * 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. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ @@ -71,6 +47,22 @@ extern int optind, opterr, optopt; /* for getopt() */ #define BOXES_CONFIG ".boxes" #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[] = "$Id: boxes.c,v 1.39 2006/08/28 15:53:46 tsjensen Exp $"; diff --git a/src/boxes.h.in b/src/boxes.h.in index b7617f6..b35fd96 100644 --- a/src/boxes.h.in +++ b/src/boxes.h.in @@ -1,27 +1,25 @@ /* - * File: boxes.h - * Date created: March 18, 1999 (Thursday, 15:09h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Project-wide globals and data structures + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Project-wide globals and data structures + #ifndef BOXES_H #define BOXES_H diff --git a/src/config.h b/src/config.h index 15e5c5d..d57de4c 100644 --- a/src/config.h +++ b/src/config.h @@ -1,28 +1,25 @@ /* - * File: config.h - * Project Main: boxes.c - * Date created: July 4, 1999 (Sunday, 21:04h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Please compiler and ease porting + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Please compiler and ease porting + #ifndef CONFIG_H #define CONFIG_H diff --git a/src/generate.c b/src/generate.c index 6e2fbfb..6d5c97d 100644 --- a/src/generate.c +++ b/src/generate.c @@ -1,28 +1,25 @@ /* - * File: generate.c - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 20:10h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Box generation, i.e. the drawing of boxes + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Box generation, i.e. the drawing of boxes + #include "config.h" #include #include diff --git a/src/generate.h b/src/generate.h index 85dffb3..d812364 100644 --- a/src/generate.h +++ b/src/generate.h @@ -1,28 +1,25 @@ /* - * File: generate.h - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 20:12h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Box generation, i.e. the drawing of boxes + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Box generation, i.e. the drawing of boxes + #ifndef GENERATE_H #define GENERATE_H diff --git a/src/lexer.h b/src/lexer.h index fe3828f..5a338bc 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -1,28 +1,25 @@ /* - * File: lexer.h - * Project Main: boxes.c - * Date created: July 01, 1999 (Thursday, 13:43h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Export symbols used by the parser files only + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Export symbols used by the parser files only + #ifndef LEXER_H #define LEXER_H diff --git a/src/lexer.l b/src/lexer.l index 676a8fa..cd31ad8 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -1,31 +1,26 @@ %{ /* - * File: lexer.l - * Date created: March 15, 1999 (Monday, 17:16h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: lex (ANSI C) - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: flex lexical analyzer for boxes configuration files + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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, - * but also doesn't work. :-| *doh* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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 #include diff --git a/src/parser.y b/src/parser.y index d466cef..5d74712 100644 --- a/src/parser.y +++ b/src/parser.y @@ -1,28 +1,26 @@ %{ /* - * File: parser.y - * Date created: March 16, 1999 (Tuesday, 17:17h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: GNU bison (ANSI C) - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Yacc parser for boxes configuration files + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Yacc parser for boxes configuration files + #include "config.h" #include #include diff --git a/src/regexp/Makefile b/src/regexp/Makefile index 7819f01..2c242cc 100644 --- a/src/regexp/Makefile +++ b/src/regexp/Makefile @@ -1,24 +1,19 @@ # -# File: Makefile -# Creation: August 13, 1999 (Friday, 22:13h) -# Author: Copyright (C) 1999 Thomas Jensen -# 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 -# 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. -# 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 +# boxes - Command line filter to draw/remove ASCII boxes around text +# Copyright (C) 1999 Thomas Jensen and the boxes contributors +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License, version 2, 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. +# +# 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. #____________________________________________________________________________ #============================================================================ diff --git a/src/remove.c b/src/remove.c index aad40e2..29d87cd 100644 --- a/src/remove.c +++ b/src/remove.c @@ -1,28 +1,25 @@ /* - * File: remove.c - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 20:59h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Box removal, i.e. the deletion of boxes + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Box removal, i.e. the deletion of boxes + #include "config.h" #include #include diff --git a/src/remove.h b/src/remove.h index 05703d2..aee9b37 100644 --- a/src/remove.h +++ b/src/remove.h @@ -1,28 +1,25 @@ /* - * File: remove.h - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 21:00h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Box removal, i.e. the deletion of boxes + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Box removal, i.e. the deletion of boxes + #ifndef REMOVE_H #define REMOVE_H diff --git a/src/shape.c b/src/shape.c index f446e66..e90aad7 100644 --- a/src/shape.c +++ b/src/shape.c @@ -1,28 +1,25 @@ /* - * File: shape.c - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 13:39h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Shape handling and information functions + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Shape handling and information functions + #include "config.h" #include #include diff --git a/src/shape.h b/src/shape.h index 07f8736..2a859da 100644 --- a/src/shape.h +++ b/src/shape.h @@ -1,28 +1,25 @@ /* - * File: shape.h - * Project Main: boxes.c - * Date created: June 23, 1999 (Wednesday, 13:45h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Shape handling and information functions + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Shape handling and information functions + #ifndef SHAPE_H #define SHAPE_H diff --git a/src/tools.c b/src/tools.c index 06cc1e0..56804ea 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1,29 +1,24 @@ /* - * File: tools.c - * Project Main: boxes.c - * Date created: June 20, 1999 (Sunday, 16:51h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Provide tool functions for error reporting and some - * string handling + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Provide tool functions for error reporting and some string handling #include "config.h" #include diff --git a/src/tools.h b/src/tools.h index c515a33..554a5f0 100644 --- a/src/tools.h +++ b/src/tools.h @@ -1,29 +1,26 @@ /* - * File: tools.h - * Project Main: boxes.c - * Date created: June 20, 1999 (Sunday, 16:57h) - * Author: Copyright (C) 1999 Thomas Jensen - * Language: ANSI C - * Web Site: https://boxes.thomasjensen.com/ - * Purpose: Tool functions for error reporting and some string - * handling and other needful things + * boxes - Command line filter to draw/remove ASCII boxes around text + * Copyright (C) 1999 Thomas Jensen and the boxes contributors * - * License: o 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. - * 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 program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2, 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. + * + * 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +// Tool functions for error reporting and some string handling and other +// needful things + #ifndef TOOLS_H #define TOOLS_H