From fc84f84b5b72f554bc0e8ba84e71f0dfe1cba795 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 5 Dec 2019 13:43:47 +0100 Subject: [PATCH] Remove Emacs C modeline in comment line 1 Those files are C++, and the wrong modeline is not needed at all. Remove also some empty descriptions and old history in the comments. Signed-off-by: Stefan Weil --- include/tesseract/helpers.h | 5 ++--- src/ccstruct/blobs.cpp | 5 ++--- src/ccstruct/blobs.h | 5 ++--- src/ccstruct/matrix.cpp | 5 ++--- src/ccstruct/matrix.h | 7 ++----- src/ccstruct/seam.cpp | 5 ++--- src/ccstruct/seam.h | 5 ++--- src/ccstruct/split.cpp | 3 +-- src/ccstruct/split.h | 4 +--- src/classify/protos.cpp | 3 +-- src/classify/protos.h | 3 +-- src/cutil/oldlist.cpp | 3 +-- src/cutil/oldlist.h | 7 +++---- src/dict/context.cpp | 5 ++--- src/dict/dawg.h | 5 ++--- src/dict/hyphen.cpp | 5 ++--- src/dict/permdawg.cpp | 5 ++--- src/dict/trie.cpp | 5 ++--- src/dict/trie.h | 5 ++--- src/wordrec/chop.cpp | 3 +-- src/wordrec/chop.h | 5 ++--- src/wordrec/chopper.cpp | 5 ++--- src/wordrec/findseam.cpp | 5 ++--- src/wordrec/findseam.h | 8 +++----- src/wordrec/gradechop.cpp | 5 ++--- src/wordrec/measure.h | 6 ++---- src/wordrec/outlines.cpp | 8 ++------ src/wordrec/outlines.h | 5 ++--- src/wordrec/pieces.cpp | 5 ++--- src/wordrec/plotedges.cpp | 5 ++--- src/wordrec/plotedges.h | 5 ++--- src/wordrec/render.cpp | 5 ++--- src/wordrec/render.h | 5 ++--- src/wordrec/wordclass.cpp | 5 ++--- 34 files changed, 64 insertions(+), 106 deletions(-) diff --git a/include/tesseract/helpers.h b/include/tesseract/helpers.h index 9ccde82d..ddd0e788 100644 --- a/include/tesseract/helpers.h +++ b/include/tesseract/helpers.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: helpers.h * Description: General utility functions @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - ********************************************************************************/ + *****************************************************************************/ #ifndef TESSERACT_CCUTIL_HELPERS_H_ #define TESSERACT_CCUTIL_HELPERS_H_ diff --git a/src/ccstruct/blobs.cpp b/src/ccstruct/blobs.cpp index d3000920..418fe163 100644 --- a/src/ccstruct/blobs.cpp +++ b/src/ccstruct/blobs.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: blobs.cpp (Formerly blobs.c) * Description: Blob definition @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s diff --git a/src/ccstruct/blobs.h b/src/ccstruct/blobs.h index bd8737b9..9f4722b9 100644 --- a/src/ccstruct/blobs.h +++ b/src/ccstruct/blobs.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: blobs.h * Description: Blob definition @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef BLOBS_H #define BLOBS_H diff --git a/src/ccstruct/matrix.cpp b/src/ccstruct/matrix.cpp index e31d36e3..685ea5b6 100644 --- a/src/ccstruct/matrix.cpp +++ b/src/ccstruct/matrix.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: matrix.cpp (Formerly matrix.c) * Description: Ratings matrix code. (Used by associator) @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/ccstruct/matrix.h b/src/ccstruct/matrix.h index df48c830..a2d5feac 100644 --- a/src/ccstruct/matrix.h +++ b/src/ccstruct/matrix.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ****************************************************************************** +/****************************************************************************** * File: matrix.h * Description: Generic 2-d array/matrix and banded triangular matrix class. * Author: Ray Smith @@ -8,8 +7,6 @@ * Description: Ratings matrix class (specialization of banded matrix). * Segmentation search matrix of lists of BLOB_CHOICE. * Author: Mark Seaman, OCR Technology - * Created: Wed May 16 13:22:06 1990 - * Modified: Tue Mar 19 16:00:20 1991 (Mark Seaman) marks@hpgrlt * * (c) Copyright 1990, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -22,7 +19,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef TESSERACT_CCSTRUCT_MATRIX_H_ #define TESSERACT_CCSTRUCT_MATRIX_H_ diff --git a/src/ccstruct/seam.cpp b/src/ccstruct/seam.cpp index 4b25c44b..2cbda71e 100644 --- a/src/ccstruct/seam.cpp +++ b/src/ccstruct/seam.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: seam.cpp (Formerly seam.c) * Author: Mark Seaman, OCR Technology @@ -15,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/ccstruct/seam.h b/src/ccstruct/seam.h index 33f1d2e4..2a9042f2 100644 --- a/src/ccstruct/seam.h +++ b/src/ccstruct/seam.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: seam.h * Author: Mark Seaman, SW Productivity @@ -15,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef SEAM_H #define SEAM_H diff --git a/src/ccstruct/split.cpp b/src/ccstruct/split.cpp index 5477ed27..b2cb0d30 100644 --- a/src/ccstruct/split.cpp +++ b/src/ccstruct/split.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: split.cpp (Formerly split.c) * Author: Mark Seaman, OCR Technology diff --git a/src/ccstruct/split.h b/src/ccstruct/split.h index ef5848eb..0eaebad7 100644 --- a/src/ccstruct/split.h +++ b/src/ccstruct/split.h @@ -1,8 +1,6 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: split.h - * Description: * Author: Mark Seaman, SW Productivity * Status: Reusable Software Component * diff --git a/src/classify/protos.cpp b/src/classify/protos.cpp index bde4faf6..4529a302 100644 --- a/src/classify/protos.cpp +++ b/src/classify/protos.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ****************************************************************************** +/****************************************************************************** * * File: protos.cpp (Formerly protos.c) * Author: Mark Seaman, OCR Technology diff --git a/src/classify/protos.h b/src/classify/protos.h index c429b765..5ff7f56c 100644 --- a/src/classify/protos.h +++ b/src/classify/protos.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ****************************************************************************** +/****************************************************************************** * * File: protos.h * Author: Mark Seaman, SW Productivity diff --git a/src/cutil/oldlist.cpp b/src/cutil/oldlist.cpp index 24f4a4e3..8a41ea87 100644 --- a/src/cutil/oldlist.cpp +++ b/src/cutil/oldlist.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- -############################################################################### +/****************************************************************************** # # File: oldlist.cpp # Description: List processing procedures. diff --git a/src/cutil/oldlist.h b/src/cutil/oldlist.h index fc0a9cf8..54a5f93b 100644 --- a/src/cutil/oldlist.h +++ b/src/cutil/oldlist.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: oldlist.h (Formerly list.h) * Description: List processing procedures declarations. @@ -16,13 +15,13 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - ******************************************************************************** + ****************************************************************************** * * This file contains the interface for a set of general purpose list * manipulation routines. For the implementation of these routines see * the file "list.c". * - ******************************************************************************** + ****************************************************************************** * * INDEX * ======= diff --git a/src/dict/context.cpp b/src/dict/context.cpp index 46810c3f..93cff5ff 100644 --- a/src/dict/context.cpp +++ b/src/dict/context.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: context.cpp (Formerly context.c) * Description: Context checking functions @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #include "dict.h" #include "unicharset.h" diff --git a/src/dict/dawg.h b/src/dict/dawg.h index 66b524d4..cf693019 100644 --- a/src/dict/dawg.h +++ b/src/dict/dawg.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: dawg.h * Description: Definition of a class that represents Directed Acyclic Word @@ -17,7 +16,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef DICT_DAWG_H_ #define DICT_DAWG_H_ diff --git a/src/dict/hyphen.cpp b/src/dict/hyphen.cpp index 9f0feec2..7a0a622c 100644 --- a/src/dict/hyphen.cpp +++ b/src/dict/hyphen.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * File: hyphen.cpp (Formerly hyphen.c) * Description: Functions for maintaining information about hyphenated words. * Author: Mark Seaman, OCR Technology @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #include "dict.h" diff --git a/src/dict/permdawg.cpp b/src/dict/permdawg.cpp index be554462..17fc1f15 100644 --- a/src/dict/permdawg.cpp +++ b/src/dict/permdawg.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: permdawg.cpp (Formerly permdawg.c) * Description: Scale word choices by a dictionary @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/dict/trie.cpp b/src/dict/trie.cpp index 34412b32..59cfe606 100644 --- a/src/dict/trie.cpp +++ b/src/dict/trie.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: trie.cpp (Formerly trie.c) * Description: Functions to build a trie data structure. @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/dict/trie.h b/src/dict/trie.h index 63a41db1..e55e04bc 100644 --- a/src/dict/trie.h +++ b/src/dict/trie.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: trie.h * Description: Functions to build a trie data structure. @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef TRIE_H #define TRIE_H diff --git a/src/wordrec/chop.cpp b/src/wordrec/chop.cpp index 7589f9a6..4530f324 100644 --- a/src/wordrec/chop.cpp +++ b/src/wordrec/chop.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ****************************************************************************** +/****************************************************************************** * * File: chop.cpp (Formerly chop.c) * Author: Mark Seaman, OCR Technology diff --git a/src/wordrec/chop.h b/src/wordrec/chop.h index 7658547d..88c9c15b 100644 --- a/src/wordrec/chop.h +++ b/src/wordrec/chop.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: chop.h * Author: Mark Seaman, SW Productivity @@ -15,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *******************************************************************************/ + *****************************************************************************/ #ifndef CHOP_H #define CHOP_H diff --git a/src/wordrec/chopper.cpp b/src/wordrec/chopper.cpp index 8bb44839..104f0b22 100644 --- a/src/wordrec/chopper.cpp +++ b/src/wordrec/chopper.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: chopper.cpp (Formerly chopper.c) * Author: Mark Seaman, OCR Technology @@ -15,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - **************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s diff --git a/src/wordrec/findseam.cpp b/src/wordrec/findseam.cpp index b6e3330b..1a641db9 100644 --- a/src/wordrec/findseam.cpp +++ b/src/wordrec/findseam.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: findseam.cpp (Formerly findseam.c) * Author: Mark Seaman, OCR Technology @@ -15,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/wordrec/findseam.h b/src/wordrec/findseam.h index ad5c42aa..798e773c 100644 --- a/src/wordrec/findseam.h +++ b/src/wordrec/findseam.h @@ -1,9 +1,7 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: findseam.h - * Description: - * Author: Mark Seaman, SW Productivity + * Author: Mark Seaman, SW Productivity * * (c) Copyright 1987, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,7 +14,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef FINDSEAM_H #define FINDSEAM_H diff --git a/src/wordrec/gradechop.cpp b/src/wordrec/gradechop.cpp index 7b178441..63631455 100644 --- a/src/wordrec/gradechop.cpp +++ b/src/wordrec/gradechop.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: gradechop.cpp (Formerly gradechop.c) * Description: @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/wordrec/measure.h b/src/wordrec/measure.h index 4fd7a47b..682d8796 100644 --- a/src/wordrec/measure.h +++ b/src/wordrec/measure.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: measure.h * Description: Statistics for a group of single measurements @@ -16,8 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - ******************************************************************************** - */ + *****************************************************************************/ #ifndef MEASURE_H #define MEASURE_H diff --git a/src/wordrec/outlines.cpp b/src/wordrec/outlines.cpp index ea274476..cb4668c2 100644 --- a/src/wordrec/outlines.cpp +++ b/src/wordrec/outlines.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: outlines.cpp (Formerly outlines.c) * Description: Combinatorial Splitter @@ -16,10 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - ******************************************************************************** - * Revision 1.2 89/09/15 09:24:41 09:24:41 marks (Mark Seaman) - * First released version of Combinatorial splitter code - **/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/wordrec/outlines.h b/src/wordrec/outlines.h index 95c903a8..99a1eb9d 100644 --- a/src/wordrec/outlines.h +++ b/src/wordrec/outlines.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: outlines.h * Description: Combinatorial Splitter @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef OUTLINES_H #define OUTLINES_H diff --git a/src/wordrec/pieces.cpp b/src/wordrec/pieces.cpp index 397bfa4c..2a45ed47 100644 --- a/src/wordrec/pieces.cpp +++ b/src/wordrec/pieces.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: pieces.cpp (Formerly pieces.c) * Description: @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I n c l u d e s ----------------------------------------------------------------------*/ diff --git a/src/wordrec/plotedges.cpp b/src/wordrec/plotedges.cpp index dbcdee2e..2ae83033 100644 --- a/src/wordrec/plotedges.cpp +++ b/src/wordrec/plotedges.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: plotedges.cpp (Formerly plotedges.c) * Description: Graphics routines for "Edges" and "Outlines" windows @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #include "plotedges.h" #include "render.h" diff --git a/src/wordrec/plotedges.h b/src/wordrec/plotedges.h index aafd9c4c..41a34787 100644 --- a/src/wordrec/plotedges.h +++ b/src/wordrec/plotedges.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: plotedges.h * Description: Convert the various data type into line lists @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef PLOTEDGES_H #define PLOTEDGES_H diff --git a/src/wordrec/render.cpp b/src/wordrec/render.cpp index 02d2229e..b1e645d2 100644 --- a/src/wordrec/render.cpp +++ b/src/wordrec/render.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: render.cpp (Formerly render.c) * Description: Convert the various data type into line lists @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #include "render.h" #include "blobs.h" diff --git a/src/wordrec/render.h b/src/wordrec/render.h index 71f6c6e2..d967891f 100644 --- a/src/wordrec/render.h +++ b/src/wordrec/render.h @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: render.h * Description: Convert the various data type into line lists @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ #ifndef RENDER_H #define RENDER_H diff --git a/src/wordrec/wordclass.cpp b/src/wordrec/wordclass.cpp index 136cad63..5f1bd54e 100644 --- a/src/wordrec/wordclass.cpp +++ b/src/wordrec/wordclass.cpp @@ -1,5 +1,4 @@ -/* -*-C-*- - ******************************************************************************** +/****************************************************************************** * * File: wordclass.cpp (Formerly wordclass.c) * Description: Word classifier @@ -16,7 +15,7 @@ ** See the License for the specific language governing permissions and ** limitations under the License. * - *********************************************************************************/ + *****************************************************************************/ /*---------------------------------------------------------------------- I N C L U D E S ----------------------------------------------------------------------*/