========== CSplit: Version 2.0 ==========
========== CSplit: Begin part 15/16 ==========
}
========== CSplit: End file FFBUFF.CPP ==========
========== CSplit: Begin file CMTTESTS.C ==========
/* +++Date last modified: 02-Aug-1996 */
/*
* Test file for Comment Utilities.
* This file should be compilable before AND after comment
* conversion or removal.
*
* Jari Laaksonen
* Arkkitehdinkatu 30 A 2
* FIN-33720 Tampere
* FINLAND
* Fidonet: 2:221/360.20
* Internet: jla@to.icl.fi
*/
#include
int main()
{
/*
comment */ int a; /* comment continues in same line
*/
/* C comment */ int b; // C++ comment
/*
C comment
*/ int c; // C++ comment
/**** comment ****/
//*** comment ****/
char ch = '\"'; /* double quote but not a start of a string */
char x1[] // here we...
= "";
char x2[] = ""; /* ...have some... */
char x3[] = "" /* ...empty... */ ;
char x4[] = ""; // ...strings.
printf ("this is a string"); /* C comment */
printf ("this is \" another string"); // C++ comment
printf ("this is \' another string"); // C++ comment
printf ("yet another \\ string"); // C++ comment
/* C comment in one line */
// C++ comment in one line
/* C comment
in several
lines
printf ("// not a comment");
*/
/* C comment
in several lines */
// C comment in C++ comment: /* comment */
/* C++ comment in C comment: // comment */
/*
C++ comment in C comment: // comment
*/
printf ("this /* is not // a comment * * ! ");
printf ("this /* is not a comment * * ! ");
printf ("this // is not a comment * * ! ");
printf ("this */ is not a comment * * ! ");
// C++ comment
// C++ comment /
// C++ comment in \
several \
lines
/\
/ C++ comment
a = 0; /\
* C comment */
/* C *\
* *
\* comment */
/* C comment \
C comment */
// char s[] = "string \
string";
// not a multiline C++ \comment
b = 0;
// not a multiline C++ \ comment
c = 0;
return 0;
}
// end file
========== CSplit: End file CMTTESTS.C ==========
========== CSplit: Begin file CMTUTILS.MAK ==========
# CMTUTILS.MAK
# Makefile for comment utilities.
#
# This is an example how you can make Family mode programs
# using modern language (C++) and old but good tools (BIND.EXE
# and IBM's OS/2 1.3 Toolkit or MS C 6.00).
#
# Family mode programs (sometimes called as 'bound' programs)
# are programs that run in both OS/2 and DOS, including
# Windows 95 and Windows NT DOS boxes.
#
# ver 1.0, 28 Mar 1997
#
# Public domain by:
# Jari Laaksonen
# Arkkitehdinkatu 30 A 2
# FIN-33720 Tampere
# FINLAND
#
# Fidonet : 2:221/360.20
# Internet: jla@to.icl.fi
INC = D:\WATCOM\h;G:\ToolKT13\C\INCLUDE;G:\SOURCES;
CFLAGS = -w4 -zq -bt=os2 -2 -e25 -i=$(INC)
LINK = wlink SYS os2 op st=0x8000 d all op m op q op symf op c op \
\
maxe=25
!ifdef DEBUG
CFLAGS = $(CFLAGS) -d2 -od -D_DEBUG
!else
CFLAGS = $(CFLAGS) -otexan
!endif
all: cmtconvr.exe cmtcount.exe cmtremov.exe cmtxtrac.exe c2html.exe
cmtconvr.exe: cmtparsr.obj cmtconvr.obj
========== CSplit: End part 15/16 crc: 43f9 ==========
// Albert email: jla@to.icl.fi
--- GoldED/2 2.50+
---------------
* Origin: Albert's Point/2 in Finland, Europe (2:221/360.20)
|