Mercurial > hg > batmud > maputils
changeset 1740:8cf2c4688a84
Comment cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 18 Oct 2017 14:21:48 +0300 |
parents | d5190e1a65dc |
children | b4f728ef950c |
files | colormap.c |
diffstat | 1 files changed, 12 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/colormap.c Wed Oct 18 14:18:29 2017 +0300 +++ b/colormap.c Wed Oct 18 14:21:48 2017 +0300 @@ -319,7 +319,7 @@ void putFileEndXHTML(FILE *outFile) { - /* XHTML document end tags */ + // XHTML document end tags fprintf(outFile, "</pre>\n" "</body>\n" @@ -366,7 +366,7 @@ char tmpStr[MAXSTR+1], tmpStr2[MAXSTR+1]; int i; - /* Location title mode */ + // Location title mode checkEndTag(outFile, fmt, prevColor); currColor = prevColor = -2; @@ -421,7 +421,6 @@ else fputs(tmpStr2, outFile); - if (fmt->putTagLocationEnd) fmt->putTagLocationEnd(outFile, tmpStr); } @@ -556,7 +555,7 @@ break; case 8: - /* Get format */ + // Get format for (i = 0, n = -1; (i < noutputFormats) && (n < 0); i++) if (strcmp(optArg, outputFormats[i].fmtName) == 0) n = i; @@ -631,11 +630,11 @@ FILE *inFile = NULL, *outFile = NULL; CMapOutFormat *fmt = NULL; - /* Initialize */ + // Initialize th_init("colormap", "ASCII map colorizer", "0.5", NULL, NULL); th_verbosityLevel = 0; - /* Parse arguments */ + // Parse arguments if (!th_args_process(argc, argv, optList, optListN, argHandleOpt, argHandleFile, OPTH_BAILOUT)) exit(1); @@ -646,7 +645,7 @@ exit(0); } - /* Do statistical analysis, if needed */ + // Do statistical analysis, if needed if (optPerformAnalysis) { int k, c, p, i, tMax, fMax, tn, fn; @@ -665,12 +664,11 @@ exit(1); } - /* Initialize counters */ + // Initialize counters memset(colChangesTo, 0, sizeof(colChangesTo)); memset(colChangesFrom, 0, sizeof(colChangesFrom)); - /* Read data, keeping statistics of colour change frequencies - */ + // Read data, keeping statistics of colour change frequencies c = p = -1; while ((k = fgetc(inFile)) != EOF) { @@ -690,8 +688,7 @@ fclose(inFile); - /* Find highest frequency - */ + // Find highest frequency THMSG(2, "Computing results.\n"); tMax = fMax = tn = fn = -1; @@ -721,7 +718,7 @@ optBackColor); } - /* Open input file */ + // Open input file if ((inFile = fopen(srcFilename, "rb")) == NULL) { THERR("Error opening input file '%s'!\n", @@ -729,7 +726,7 @@ goto out; } - /* Open output file */ + // Open output file if (destFilename == NULL) outFile = stdout; else @@ -740,7 +737,7 @@ goto out; } - /* Okay, let's process the shit */ + // Okay, let's process the shit fmt = &outputFormats[optOutputFormat]; THMSG(1, "Converting to '%s' ...\n", fmt->fmtName);