Changed multi-line C comments into another style.

The left side doesn't look unbalanced.
This commit is contained in:
Greg King
2014-06-30 05:10:35 -04:00
parent 132d57f1ad
commit 0390c34e88
502 changed files with 8869 additions and 8884 deletions

View File

@@ -1,8 +1,8 @@
/*
* testprogram printing the default device
*
* 26-Nov-2009, Christian Groessler
*/
** testprogram printing the default device
**
** 26-Nov-2009, Christian Groessler
*/
#include <stdio.h>
#include <conio.h>

View File

@@ -1,8 +1,8 @@
/*
* show some memory stuff
*
* 04-Aug-2004, Christian Groessler
*/
** show some memory stuff
**
** 04-Aug-2004, Christian Groessler
*/
#include <stdio.h>
#include <stdlib.h>

View File

@@ -1,8 +1,8 @@
/*
* testprogram for get_ostype() and get_tv() functions
*
* 09-Jul-2004, chris@groessler.org
*/
** testprogram for get_ostype() and get_tv() functions
**
** 09-Jul-2004, chris@groessler.org
*/
#include <stdio.h>
#include <atari.h>

View File

@@ -1,10 +1,10 @@
/*
* testprogram for _sys() function on Atari
*
* 17-Sep-2013, chris@groessler.org
*
* uses PUTCHR IOCB function to display a string
*/
** testprogram for _sys() function on Atari
**
** 17-Sep-2013, chris@groessler.org
**
** uses PUTCHR IOCB function to display a string
*/
#include <atari.h>
#include <6502.h>

View File

@@ -1,8 +1,8 @@
/*
* simple clock test
*
* 06-Nov-2001, Christian Groessler
*/
** simple clock test
**
** 06-Nov-2001, Christian Groessler
*/
#include <stdio.h>
#include <conio.h>

View File

@@ -1,24 +1,24 @@
/*
* test program for the cprintf() function
* (for the \r and \n special operators)
* CPG
*
* The output generated by this program should look
* like this:
*
* ---- top of screen --------
* 12345
* 67890
*
*
* 67890
*
* hit return to exit....
** test program for the cprintf() function
** (for the \r and \n special operators)
** CPG
**
** The output generated by this program should look
** like this:
**
** ---- top of screen --------
** 12345
** 67890
**
**
** 67890
**
** hit return to exit....
.
.
.
* ---- bottom of screen -----
*/
** ---- bottom of screen -----
*/
#include <stdio.h>
#include <conio.h>

View File

@@ -1,9 +1,9 @@
/*
* test for conio cursor() function
* CPG 2002
*
* the cursor should be in the same state as mentioned in the printfs
*/
** test for conio cursor() function
** CPG 2002
**
** the cursor should be in the same state as mentioned in the printfs
*/
#include <conio.h>

View File

@@ -1,9 +1,9 @@
/*
* test program for the debugger
*
* press 'd' to enter the debugger
*
*/
** test program for the debugger
**
** press 'd' to enter the debugger
**
*/
#include <stdio.h>
#include <conio.h>

View File

@@ -143,8 +143,8 @@ int main (void)
cputs ("\r\nTesting em_copyfrom/em_copyto");
/* We're filling now 384 bytes per run to test the copy routines with
* other sizes.
*/
** other sizes.
*/
PageCount = (PageCount * 2) / 3;
/* Setup the copy structure */

View File

@@ -1,19 +1,19 @@
/*
* simple file i/o test
*
* 12-Jun-2000, Christian Groessler
*
* please compile with
* cl65 -tsystem ft.c getsp.s -o ft.com
*
* The program asks for a filename (if it hasn't
* got one from argv). I then opens the file,
* reads the the first 16 bytes and displays them
* (as hex values).
* The values of sp (cc65 runtime stack pointer)
* are displayed at some places. The displayed
* value should always be the same.
*/
** simple file I/O test
**
** 12-Jun-2000, Christian Groessler
**
** please compile with
** cl65 -tsystem ft.c getsp.s -o ft.com
**
** The program asks for a filename (if it hasn't
** got one from argv). I then opens the file,
** reads the the first 16 bytes and displays them
** (as hex values).
** The values of sp (cc65 runtime stack pointer)
** are displayed at some places. The displayed
** value should always be the same.
*/
#include <stdio.h>
#include <string.h>

View File

@@ -1,17 +1,17 @@
/*
* This is part of a changed public domain getopt implementation that
* had the following text on top:
*
* I got this off net.sources from Henry Spencer.
* It is a public domain getopt(3) like in System V.
* I have made the following modifications:
*
* A test main program was added, ifdeffed by GETOPT.
* This main program is a public domain implementation
* of the getopt(1) program like in System V. The getopt
* program can be used to standardize shell option handling.
* e.g. cc -DGETOPT getopt.c -o getopt
*/
** This is part of a changed public domain getopt implementation that
** had the following text on top:
**
** I got this off net.sources from Henry Spencer.
** It is a public domain getopt(3) like in System V.
** I have made the following modifications:
**
** A test main program was added, ifdeffed by GETOPT.
** This main program is a public domain implementation
** of the getopt(1) program like in System V. The getopt
** program can be used to standardize shell option handling.
** e.g. cc -DGETOPT getopt.c -o getopt
*/
#include <stdio.h>
#include <stdlib.h>

View File

@@ -20,8 +20,8 @@ static char* Alloc (void)
unsigned char* P = malloc (Size);
/* Set the string to a defined value. We use the size, since this will
* also allow us to retrieve it later.
*/
** also allow us to retrieve it later.
*/
if (P) {
memset (P, Size, Size);
} else {

View File

@@ -6,8 +6,8 @@
/* Number of elements in the progress bar. Use a power of 2, to avoid the
* multiplication (which is about to be tested).
*/
** multiplication (which is about to be tested).
*/
#define BAR_ELEMENTS 32U
#if defined(__CBM__)

View File

@@ -78,8 +78,9 @@ static const struct {
{"qwerty 095 2", "qwerty %i%i", 2, INT, {0} , INT, {95}},
{"qwerty 0e5 2", "qwerty %i%i", 1, INT, {0} , INT, {0}},
/* (String pointers are cast as (int),
* in order to avoid cc65 warnings.) */
/* [String pointers are cast as (int),
** in order to avoid cc65 warnings.]
*/
/* Test that character specifiers can handle end-of-file. */
{"qwerty" , "qwerty %s%s" , EOF, CHAR, {(int)""}, CHAR, {(int)""}},

View File

@@ -1,6 +1,6 @@
/*
* seek test program
*/
** seek test program
*/
#include <stdio.h>
#include <string.h>

View File

@@ -18,8 +18,8 @@
/* Struct used to test the 'n' conversion specifier. It is machine dependent /
* not portable.
*/
** not portable.
*/
typedef union WriteCount WriteCount;
union WriteCount {
signed char C;
@@ -41,9 +41,9 @@ static unsigned Failures = 0;
static void OneTest (int Line, const char* RString, int RCount, const char* Format, ...)
/* Test one conversion. Line is the line number (to make the life of the
* tester easier), RString the expected result and RCount the expected return
* count. The other parameters are used for formatting.
*/
** tester easier), RString the expected result and RCount the expected return
** count. The other parameters are used for formatting.
*/
{
int Count;
char Buf[128];
@@ -70,9 +70,9 @@ static void OneTest (int Line, const char* RString, int RCount, const char* Form
static void WriteTest (int Line, const char* Format, WriteCount* W, long Count)
/* Test one write conversion. Line is the line number (to make the life of the
* tester easier), Format is the format specification. W is a WriteCount
* variable and Count is the expected result.
*/
** tester easier), Format is the format specification. W is a WriteCount
** variable and Count is the expected result.
*/
{
/* Clear the counter in full length */
W->L = 0x5A5A5A5AL;
@@ -227,9 +227,9 @@ int main (void)
OneTest (__LINE__, "EF98", 4, "%+X", -4200U);
/* ' ': If the first character of a signed conversion is not a sign, or if
* a signed conversion results in no characters, a space is prefixed
* to the result.
*/
** a signed conversion results in no characters, a space is prefixed
** to the result.
*/
OneTest (__LINE__, "u", 1, "% c", 'u');
OneTest (__LINE__, " 4200", 5, "% d", 4200);
OneTest (__LINE__, "-4200", 5, "% d", -4200);
@@ -310,10 +310,10 @@ int main (void)
OneTest (__LINE__, "EF98 ", 15, "%-15X", -4200U);
/* A negative field width specified via an argument is treated as if the
* '-' flag and a positive field width were given.
*
* Beware: These tests will crash the old printf routine!
*/
** '-' flag and a positive field width were given.
**
** Beware: These tests will crash the old printf routine!
*/
#ifndef NOCRASH
OneTest (__LINE__, "u ", 15, "%*c", -15, 'u');
OneTest (__LINE__, "4200 ", 15, "%*d", -15, 4200);
@@ -442,8 +442,8 @@ int main (void)
OneTest (__LINE__, " 000000EF98", 15, "%15.10X", -4200U);
/* For d, i, o, u, x and X conversions, if a precision is specified, the
* '0' flag is ignored.
*/
** '0' flag is ignored.
*/
OneTest (__LINE__, " 0000004200", 15, "%015.10d", 4200);
OneTest (__LINE__, " -0000004200", 15, "%015.10d", -4200);
OneTest (__LINE__, " 0000004200", 15, "%015.10i", 4200);

View File

@@ -1,32 +1,32 @@
/* strqtok-test.c
*
* 2014-04-21, Paul Foerster
* 2014-05-20, Greg King
*
* This program tests that strqtok() correctly will parse strings
* with quotation marks in them. It should show this list of tokens
* from the test strings:
*
* >This<
* > is only <
* >a<
* >short<
* >quoting<
* >test , honoring blanks, commas<
* >and<
* >(4)<
* >empty<
* ><
* ><
* ><
* ><
* >strings, EOT <
*
* It shouldn't show
*
* >Bogus token<
*
*/
**
** 2014-04-21, Paul Foerster
** 2014-05-20, Greg King
**
** This program tests that strqtok() correctly will parse strings
** with quotation marks in them. It should show this list of tokens
** from the test strings:
**
** >This<
** > is only <
** >a<
** >short<
** >quoting<
** >test , honoring blanks, commas<
** >and<
** >(4)<
** >empty<
** ><
** ><
** ><
** ><
** >strings, EOT <
**
** It shouldn't show
**
** >Bogus token<
**
*/
#include <string.h>
#include <stdio.h>
@@ -34,10 +34,10 @@
void main (void)
{
/* b[] and s[] are declared as automatic, not static, variables
* because strqtok() will change them.
* They must be defined together; and, b[] must be defined first
* (because they're copied onto the top-down stack).
*/
** because strqtok() will change them.
** They must be defined together; and, b[] must be defined first
** (because they're copied onto the top-down stack).
*/
char b[] = "Bogus token ";
char s[] = " This , \" is only \"a short "
"quoting\"test , honoring blanks"

View File

@@ -22,8 +22,8 @@ static unsigned int Failures = 0;
static void IncStr (char* Buf)
/* Increment a number represented as a string by one. The string MUST not
* start with a '9', we cannot handle overflow in this case.
*/
** start with a '9', we cannot handle overflow in this case.
*/
{
int Len = strlen (Buf);

View File

@@ -22,8 +22,8 @@ static unsigned int Failures = 0;
static void IncStr (char* Buf)
/* Increment a number represented as a string by one. The string MUST not
* start with a '9', we cannot handle overflow in this case.
*/
** start with a '9', we cannot handle overflow in this case.
*/
{
int Len = strlen (Buf);

View File

@@ -1,7 +1,7 @@
/*
* Simple ("tiny") shell to test filename and directory functions.
* Copyright (c) 2013, Christian Groessler, chris@groessler.org
*/
** Simple ("tiny") shell to test filename and directory functions.
** Copyright (c) 2013, Christian Groessler, chris@groessler.org
*/
#define VERSION_ASC "0.90"