Files | |
file | fortran.c |
A FORTRAN-callable interface to libplot3. | |
Defines | |
#define | F(lc, uc) lc ## _ |
Functions | |
void | pl_strncpy (register char *out, register char *in, register int sz) |
void | F (ifopen, IFOPEN) |
void | F (i2pnt, I2PNT) |
void | F (i2line, I2LINE) |
void | F (ilinmd, ILINMD) |
void | F (i2move, I2MOVE) |
void | F (i2cont, I2CONT) |
void | F (i2labl, I2LABL) |
void | F (i2spac, I2SPAC) |
void | F (ierase, IERASE) |
void | F (i2circ, I2CIRC) |
void | F (i2arc, I2ARC) |
void | F (i2box, I2BOX) |
void | F (icolor, ICOLOR) |
void | F (iflush, IFLUSH) |
void | F (i3spac, I3SPAC) |
void | F (i3pnt, I3PNT) |
void | F (i3move, I3MOVE) |
void | F (i3cont, I3CONT) |
void | F (i3line, I3LINE) |
void | F (i3box, I3BOX) |
void | F (f2pnt, F2PNT) |
void | F (f2line, F2LINE) |
void | F (f2move, F2MOVE) |
void | F (f2cont, F2CONT) |
void | F (f2spac, F2SPAC) |
void | F (f2circ, F2CIRC) |
void | F (f2arc, F2ARC) |
void | F (f2box, F2BOX) |
void | F (a2spac, A3SPAC) |
void | F (f3spac, F3SPAC) |
void | F (a3pnt, A3PNT) |
void | F (f3pnt, F3PNT) |
void | F (a3move, A3MOVE) |
void | F (f3move, F3MOVE) |
void | F (a3cont, A3CONT) |
void | F (f3cont, F3CONT) |
void | F (a3line, A3LINE) |
void | F (f3line, F3LINE) |
void | F (a3box, A3BOX) |
void | F (f3box, F3BOX) |
#define F | ( | lc, | |||
uc | ) | lc ## _ |
Macro 'F' is used to take the 'C' function name, and convert it to the convention used for a particular system. Both lower-case and upper-case alternatives have to be provided because there is no way to get the C preprocessor to change the case of a token.
Lower case, with a trailing underscore.
void pl_strncpy | ( | register char * | out, | |
register char * | in, | |||
register int | sz | |||
) |
P L _ S T R N C P Y
Make null-terminated copy of a string in output buffer, being careful not to exceed indicated buffer size Accept "$" as alternate string-terminator for FORTRAN Holerith constants, because getting FORTRAN to null-terminate strings is to painful (and non-portable) to contemplate.
Definition at line 81 of file fortran.c.
References c.
Referenced by F().
void F | ( | ifopen | , | |
IFOPEN | ||||
) |
I F O P E N
Open a file (by name) for plotting.
Definition at line 113 of file fortran.c.
References pl_strncpy().
void F | ( | i2pnt | , | |
I2PNT | ||||
) |
Definition at line 127 of file fortran.c.
References pl_point(), x, and y.
void F | ( | i2line | , | |
I2LINE | ||||
) |
void F | ( | ilinmd | , | |
ILINMD | ||||
) |
Definition at line 139 of file fortran.c.
References pl_linmod(), and pl_strncpy().
void F | ( | i2move | , | |
I2MOVE | ||||
) |
void F | ( | i2cont | , | |
I2CONT | ||||
) |
void F | ( | i2labl | , | |
I2LABL | ||||
) |
Definition at line 159 of file fortran.c.
References pl_label(), and pl_strncpy().
void F | ( | i2spac | , | |
I2SPAC | ||||
) |
Definition at line 167 of file fortran.c.
References pl_space().
void F | ( | ierase | , | |
IERASE | ||||
) |
Definition at line 173 of file fortran.c.
References pl_erase().
void F | ( | i2circ | , | |
I2CIRC | ||||
) |
Definition at line 179 of file fortran.c.
References pl_circle(), x, and y.
void F | ( | i2arc | , | |
I2ARC | ||||
) |
void F | ( | i2box | , | |
I2BOX | ||||
) |
void F | ( | icolor | , | |
ICOLOR | ||||
) |
Warning: r, g, b are ints. The output is chars.
Definition at line 202 of file fortran.c.
References pl_color().
void F | ( | iflush | , | |
IFLUSH | ||||
) |
Definition at line 208 of file fortran.c.
References pl_flush().
void F | ( | i3spac | , | |
I3SPAC | ||||
) |
Definition at line 214 of file fortran.c.
References pl_3space().
void F | ( | i3pnt | , | |
I3PNT | ||||
) |
void F | ( | i3move | , | |
I3MOVE | ||||
) |
void F | ( | i3cont | , | |
I3CONT | ||||
) |
void F | ( | i3line | , | |
I3LINE | ||||
) |
Definition at line 239 of file fortran.c.
References pl_3line().
void F | ( | i3box | , | |
I3BOX | ||||
) |
void F | ( | f2pnt | , | |
F2PNT | ||||
) |
Definition at line 255 of file fortran.c.
References pd_point(), x, and y.
void F | ( | f2line | , | |
F2LINE | ||||
) |
void F | ( | f2move | , | |
F2MOVE | ||||
) |
void F | ( | f2cont | , | |
F2CONT | ||||
) |
void F | ( | f2spac | , | |
F2SPAC | ||||
) |
Definition at line 279 of file fortran.c.
References pd_space().
void F | ( | f2circ | , | |
F2CIRC | ||||
) |
Definition at line 285 of file fortran.c.
References pd_circle(), x, and y.
void F | ( | f2arc | , | |
F2ARC | ||||
) |
void F | ( | f2box | , | |
F2BOX | ||||
) |
void F | ( | a2spac | , | |
A3SPAC | ||||
) |
Definition at line 308 of file fortran.c.
References min, and pd_3space().
void F | ( | f3spac | , | |
F3SPAC | ||||
) |
Definition at line 314 of file fortran.c.
References pd_3space().
void F | ( | a3pnt | , | |
A3PNT | ||||
) |
Definition at line 320 of file fortran.c.
References pd_3point().
void F | ( | f3pnt | , | |
F3PNT | ||||
) |
void F | ( | a3move | , | |
A3MOVE | ||||
) |
Definition at line 332 of file fortran.c.
References pd_3move().
void F | ( | f3move | , | |
F3MOVE | ||||
) |
void F | ( | a3cont | , | |
A3CONT | ||||
) |
Definition at line 344 of file fortran.c.
References pd_3cont().
void F | ( | f3cont | , | |
F3CONT | ||||
) |
void F | ( | a3line | , | |
A3LINE | ||||
) |
Definition at line 356 of file fortran.c.
References pd_3line().
void F | ( | f3line | , | |
F3LINE | ||||
) |
Definition at line 362 of file fortran.c.
References pd_3line().
void F | ( | a3box | , | |
A3BOX | ||||
) |