Replace CPP style comments with C style comments

This commit is contained in:
Thomas Jensen 2019-02-20 11:04:09 +01:00
parent cd134cbb2f
commit f9193eb4b3
15 changed files with 41 additions and 16 deletions

View File

@ -111,7 +111,7 @@ static void usage (FILE *st)
fprintf (st, " -l list available box designs w/ samples\n");
fprintf (st, " -m mend box, i.e. remove it and redraw it afterwards\n");
fprintf (st, " -p fmt padding [default: none]\n");
//fprintf (st, " -q modify command for needs of the web UI (undocumented)\n");
/* fprintf (st, " -q modify command for needs of the web UI (undocumented)\n"); */
fprintf (st, " -r remove box\n");
fprintf (st, " -s wxh box size (width w and/or height h)\n");
fprintf (st, " -t str tab stop distance and expansion [default: %de]\n", DEF_TABSTOP);

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Project-wide globals and data structures
/*
* Project-wide globals and data structures
*/
#ifndef BOXES_H
#define BOXES_H

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Please compiler and ease porting
/*
* Please compiler and ease porting
*/
#ifndef CONFIG_H
#define CONFIG_H

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Box generation, i.e. the drawing of boxes
/*
* Box generation, i.e. the drawing of boxes
*/
#include "config.h"
#include <stdlib.h>

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Box generation, i.e. the drawing of boxes
/*
* Box generation, i.e. the drawing of boxes
*/
#ifndef GENERATE_H
#define GENERATE_H

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Export symbols used by the parser files only
/*
* Export symbols used by the parser files only
*/
#ifndef LEXER_H
#define LEXER_H

View File

@ -19,7 +19,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// flex lexical analyzer for boxes configuration files
/*
* flex lexical analyzer for boxes configuration files
*/
#include "config.h"
#include <string.h>

View File

@ -19,7 +19,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Yacc parser for boxes configuration files
/*
* Yacc parser for boxes configuration files
*/
#include "config.h"
#include <stdio.h>

View File

@ -4,7 +4,6 @@
* Author: Henry Spencer.
* Extensions and modifications by Thomas Jensen
* Language: K&R C (traditional)
* Web Site: https://boxes.thomasjensen.com/
* Purpose: Perform substitutions after a regexp match
* License: - Not derived from licensed software.
* - Permission is granted to anyone to use this

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Box removal, i.e. the deletion of boxes
/*
* Box removal, i.e. the deletion of boxes
*/
#include "config.h"
#include <stdlib.h>

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Box removal, i.e. the deletion of boxes
/*
* Box removal, i.e. the deletion of boxes
*/
#ifndef REMOVE_H
#define REMOVE_H

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Shape handling and information functions
/*
* Shape handling and information functions
*/
#include "config.h"
#include <stdlib.h>

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Shape handling and information functions
/*
* Shape handling and information functions
*/
#ifndef SHAPE_H
#define SHAPE_H

View File

@ -18,7 +18,9 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Provide tool functions for error reporting and some string handling
/*
* Provide tool functions for error reporting and some string handling
*/
#include "config.h"
#include <errno.h>

View File

@ -18,8 +18,10 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
// Tool functions for error reporting and some string handling and other
// needful things
/*
* Tool functions for error reporting and some string handling and other
* needful things
*/
#ifndef TOOLS_H
#define TOOLS_H