projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r180: *** empty log message ***
[ctsim.git]
/
include
/
ctsupport.h
diff --git
a/include/ctsupport.h
b/include/ctsupport.h
index f1800919f5e05df620af48d1a20352d2fc98ce5d..5558150baaa25674f6d85079964cb1b770f7e008 100644
(file)
--- a/
include/ctsupport.h
+++ b/
include/ctsupport.h
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsupport.h,v 1.
4 2000/06/22 10:17:2
8 kevin Exp $
+** $Id: ctsupport.h,v 1.
6 2000/07/29 19:50:0
8 kevin Exp $
**
**
** This program is free software; you can redistribute it and/or modify
**
**
** This program is free software; you can redistribute it and/or modify
@@
-149,9
+149,13
@@
typedef unsigned char kuint8;
#endif
#endif
-/* filefuncs.cpp */
-bool fileExists (const char* fname);
-const char* fileBasename (const char* filename);
+inline const char*
+fileBasename (const char* const filename)
+{
+ const char* p = strrchr (filename, '/');
+ return (p ? p + 1 : filename);
+}
+
/* strfuncs.cpp */
char* str_skip_head(const char* str, const char* const charlist);
/* strfuncs.cpp */
char* str_skip_head(const char* str, const char* const charlist);
@@
-267,25
+271,6
@@
double normalizeAngle (double theta);
double integrateSimpson (const double xmin, const double xmax, const double *y, const int np);
double integrateSimpson (const double xmin, const double xmax, const double *y, const int np);
-// Console I/O Section
-
-#define C_BLACK 0 /* color codes */
-#define C_BLUE 1
-#define C_GREEN 2
-#define C_CYAN 3
-#define C_RED 4
-#define C_MAGENTA 5
-#define C_BROWN 6
-#define C_WHITE 7
-#define C_GREY 8
-#define C_LTBLUE 9
-#define C_LTGREEN 10
-#define C_LTCYAN 11
-#define C_LTRED 12
-#define C_LTMAGENTA 13
-#define C_YELLOW 14
-#define C_LTWHITE 15
-
/*----------------------------------------------------------------------*/
/* screen character codes */
/*----------------------------------------------------------------------*/
/* screen character codes */