** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: cio.h,v 1.4 2000/04/28 18:18:59 kevin Exp $
+** $Id: cio.h,v 1.5 2000/05/07 12:46:19 kevin Exp $
** $Log: cio.h,v $
+** Revision 1.5 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.4 2000/04/28 18:18:59 kevin
** removed unused files
**
#ifndef __CIO_H
#define __CIO_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
struct crtv_st {
int init; /* True if initialized */
int bios_mode; /* Current BIOS crt mode */
#define CRT_ROWS 25
#define CRT_COLS 80
-/* crt modes */
-
-#define GM_TEXT40 1 /* color */
-#define GM_TEXT80 3 /* color */
-#define GM_320x200 4 /* color */
-#define GM_640x200 6
-#define GM_MONOTEXT 7
-#define GM_E320x200 13
-#define GM_E640x200 14
-#define GM_MONOGRF 15
-#define GM_ENHANCED 16
-
-#define GM_640x480x16 0x12
-#define GM_640x480x256 0x2E
-#define GM_1024x768x16 0x37
-#define GM_1024x768x256 0x38
-
-
-
-#define GM_TEXT -1
-#define GM_HIGHRES -2
-#define GM_MEDRES -3
-
-#define CRT_NONE -1
-#define CRT_MONO 0
-#define CRT_COLOR 1
-#define CRT_ENHANCED 2
-
/*----------------------------------------------------------------------*/
#define ATTR_NORMAL 7
#define SC_TAB 9
#define SC_BLANK ' '
-#define SC_TOP_LEFT 218
-#define SC_TOP_RIGHT 191
-#define SC_BOTT_LEFT 192
-#define SC_BOTT_RIGHT 217
-#define SC_HORIZ 196
-#define SC_VERTICAL 179
-
#define WAITKEY() {cio_kb_clr(); while (cio_kb_read() == 0);}
/* check_kb */
int cio_check_kb_escape(void);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ezplot.h,v 1.2 2000/04/28 14:14:16 kevin Exp $
+** $Id: ezplot.h,v 1.3 2000/05/07 12:46:19 kevin Exp $
** $Log: ezplot.h,v $
+** Revision 1.3 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.2 2000/04/28 14:14:16 kevin
** *** empty log message ***
**
#ifndef __H_EZPLOT
#define __H_EZPLOT
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
#include <stdio.h>
#include <stddef.h>
#include "kstddef.h"
/* makefmt.c */
void make_numfmt(char *fmtstr, int *fldwid, int *nfrac, double min, double max, int nint);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ir.h,v 1.11 2000/05/05 02:37:31 kevin Exp $
+** $Id: ir.h,v 1.12 2000/05/07 12:46:19 kevin Exp $
** $Log: ir.h,v $
+** Revision 1.12 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.11 2000/05/05 02:37:31 kevin
** renamed phmelm to pelm
**
#ifndef IR_H
#define IR_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#ifdef MPI_CT
#define MPI_MAX_PROCESS 128
struct mpi_ct_st
int detarray_write(RAYSUM *rs, const DETARRAY *darray, const int view_num);
int raysum_print(const RAYSUM *rs);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: kmath.h,v 1.7 2000/05/04 18:16:34 kevin Exp $
+** $Id: kmath.h,v 1.8 2000/05/07 12:46:19 kevin Exp $
** $Log: kmath.h,v $
+** Revision 1.8 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.7 2000/05/04 18:16:34 kevin
** renamed filter definitions
**
#include <stdio.h>
#include <math.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define PI 3.14159265358979323846
#define HALFPI 1.57079632679489661923 /* PI divided by 2 */
#define QUARTPI 0.78539816339744830962 /* PI divided by 4 */
void xlat2d(double x[], double y[], int pts, double xoffset, double yoffset);
void scale2d(double x[], double y[], int pts, double xfact, double yfact);
-
-
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: kstddef.h,v 1.6 2000/05/03 19:51:41 kevin Exp $
+** $Id: kstddef.h,v 1.7 2000/05/07 12:46:19 kevin Exp $
** $Log: kstddef.h,v $
+** Revision 1.7 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.6 2000/05/03 19:51:41 kevin
** function renaming for phantoms and phantom elements
**
#ifndef STDDEF_H
#define STDDEF_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *td_month_name(int n);
char *td_day_name(int n);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pol.h,v 1.2 2000/04/28 14:14:16 kevin Exp $
+** $Id: pol.h,v 1.3 2000/05/07 12:46:19 kevin Exp $
** $Log: pol.h,v $
+** Revision 1.3 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.2 2000/04/28 14:14:16 kevin
** *** empty log message ***
**
#ifndef __H_POL
#define __H_POL
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* codes for pol_usefile */
#define P_USE_STR 1 /* use string as input source */
int get_inputline(FILE *fp);
void set_inputline(char *line);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sdf.h,v 1.2 2000/04/28 14:14:16 kevin Exp $
+** $Id: sdf.h,v 1.3 2000/05/07 12:46:19 kevin Exp $
** $Log: sdf.h,v $
+** Revision 1.3 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.2 2000/04/28 14:14:16 kevin
** *** empty log message ***
**
#include "kmath.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
/*----------------*/
/* SYSTEM ALIASES */
char *sdf_2d_alloc_col(const int ncol, SDF_2D *imp);
void sdf_2d_error(const SDF_2D *imp, const char *str, ...);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sgp.h,v 1.4 2000/04/30 19:17:35 kevin Exp $
+** $Id: sgp.h,v 1.5 2000/05/07 12:46:19 kevin Exp $
** $Log: sgp.h,v $
+** Revision 1.5 2000/05/07 12:46:19 kevin
+** made c++ compatible
+**
** Revision 1.4 2000/04/30 19:17:35 kevin
** Set up include files for conditional INTERACTIVE_GRAPHICS
**
#include "kstddef.h"
#include "kmath.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
/* device names */
#define CRTDEV 1
void wrttext(char txtstr[], int x, int y, CHARSPEC *cspec, DEVICE *dev);
void crtcolor(int mode, int *f, int *b);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif