Replace C++ style comment with C style comment

This commit is contained in:
sjborley 2005-05-22 20:39:07 +00:00
parent c61b756ea2
commit 358b5f829a
8 changed files with 30 additions and 18 deletions

View File

@ -2,6 +2,7 @@
*
* This file is part of Numparam, see: readme.txt
* Free software under the terms of the GNU Lesser General Public License
* $Id$
*/
/**** test executable for the numparam library ****/
@ -141,7 +142,7 @@ Begin
Done
EndProc
#if 0 // sjb - this is in mystring.c
#if 0 /* sjb - this is in mystring.c */
Proc rs(Pchar s) /* 78 coumn limit */
Begin
short i;

View File

@ -1,6 +1,7 @@
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
$Id$
**********/
/*
@ -428,7 +429,7 @@ parse(void)
fprintf(cp_err, "Error: in parse.c(parse) stack understep.\n");
return (NULL);
}
//for (i=0; i<=sp; i++) print_elem(stack+i); printf("next: "); print_elem(next); printf("\n");
/*for (i=0; i<=sp; i++) print_elem(stack+i); printf("next: "); print_elem(next); printf("\n");*/
rel = prectable[top->e_token][next->e_token];
switch (rel) {

View File

@ -59,14 +59,14 @@ char *enddata;
void
init_rlimits(void)
{
# ifdef HAVE__MEMAVL // hvogt
# ifdef HAVE__MEMAVL /* hvogt */
mem_avail = _memavl( );
# else
startdata = (char *) baseaddr( );
enddata = sbrk(0);
# endif
// startdata = (char *) baseaddr( );
// enddata = sbrk(0);
/* startdata = (char *) baseaddr( );
enddata = sbrk(0); */
}
@ -208,10 +208,10 @@ printres(char *name)
# else
# ifdef HAVE_FTIME
struct timeb timenow;
// int sec, msec; sjb
/* int sec, msec; sjb */
ftime(&timenow);
timediff(&timenow, &timebegin, &total, &totalu);
// totalu /= 1000; hvogt
/* totalu /= 1000; hvogt */
cpu_elapsed = "elapsed";
# else
# define NO_RUDATA

View File

@ -2,6 +2,7 @@
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
Modified: 2000 AlansFixes
$Id$
**********/
/*
@ -224,7 +225,7 @@ dosim(char *what, wordlist *wl)
if (!*wl->wl_word)
rawfileFp = stdout;
#ifdef __MINGW32__
// ask if binary or ASCII, open file with w or wb hvogt 15.3.2000
/* ask if binary or ASCII, open file with w or wb hvogt 15.3.2000 */
else if (ascii) {
if(!(rawfileFp = fopen(wl->wl_word, "w"))) {
perror(wl->wl_word);
@ -241,7 +242,7 @@ dosim(char *what, wordlist *wl)
}
fprintf(cp_out,"binary raw file\n");
}
//-------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
#else
else if (!(rawfileFp = fopen(wl->wl_word, "w"))) {
setvbuf(rawfileFp, rawfileBuf, _IOFBF, RAWBUF_SIZE);

View File

@ -1,3 +1,8 @@
/*
variable.h
$Id$
*/
#ifndef _VARIABLE_H
#define _VARIABLE_H
@ -44,7 +49,7 @@ extern bool cp_noclobber;
extern bool cp_ignoreeof;
extern bool cp_echo;
// extern struct variable *variables;
/* extern struct variable *variables; */
wordlist * cp_varwl(struct variable *var);
void cp_vset(char *varname, char type, char *value);
struct variable * cp_setparse(wordlist *wl);
@ -55,4 +60,4 @@ wordlist * vareval(char *string);
void cp_vprint(void);
#endif
#endif /* _VARIABLE_H */

View File

@ -1,5 +1,6 @@
/* Paolo Nenzi 2002 - This program tests some machine
* dependent variables.
* $Id$
*/
/* Nota:
@ -55,7 +56,7 @@ int main (void)
xhold = xh;
}
xh = 0.5 * (xl + xu);
// if (xhold == xh) break;
/* if (xhold == xh) break; */
}
printf("xu-xl: %e \t cond: %e \t xh: %e\n", (xu-xl), (2.0 * acc * (xu + xl)), xh);

View File

@ -1,5 +1,6 @@
/* Paolo Nenzi 2002 - This program tests function
* implementations.
* $Id$
*/
@ -87,11 +88,12 @@ int main (void)
double x = -100.0;
double y1= 0.0, y2 = 0.0;
// _FPU_GETCW(prec);
// prec &= ~_FPU_EXTENDED;
// prec |= _FPU_DOUBLE;
// _FPU_SETCW(prec);
#if 0
_FPU_GETCW(prec);
prec &= ~_FPU_EXTENDED;
prec |= _FPU_DOUBLE;
_FPU_SETCW(prec);
#endif
for (;(x <= 100.0);)
{

View File

@ -1,5 +1,6 @@
/**********
Copyright 1991 Regents of the University of California. All rights reserved.
$Id$
**********/
/*
@ -100,7 +101,7 @@ erfc(double x)
#ifndef HAVE_ISNAN
// isnan (originally) for SOI devices in MINGW32 hvogt (dev.c)
/* isnan (originally) for SOI devices in MINGW32 hvogt (dev.c) */
union ieee754_double
{