* src/frontend/agraf.c src/frontend/agraf.h

src/frontend/grid.c src/frontend/grid.h src/frontend/clip.c
	src/frontend/clip.h: Moved these files...

	* src/frontend/plotting/agraf.c src/frontend/plotting/agraf.h
	src/frontend/plotting/clip.c src/frontend/plotting/clip.h
	src/frontend/plotting/grid.c src/frontend/plotting/grid.h:
	... here

	* src/frontend/Makefile.am src/frontend/plotting/Makefile.am:
	Updates for new locations.
This commit is contained in:
arno 2000-05-13 10:29:25 +00:00
parent ceef3b5e8a
commit 4d26c7626b
9 changed files with 31 additions and 27 deletions

View File

@ -15,9 +15,8 @@ libfte_a_SOURCES = \
com_let.h \
com_setscale.c \
com_setscale.h \
completion.h \
\
agraf.c \
agraf.h \
arg.c \
arg.h \
aspice.c \
@ -28,8 +27,6 @@ libfte_a_SOURCES = \
breakp2.h \
circuits.c \
circuits.h \
clip.c \
clip.h \
cpitf.c \
cpitf.h \
debugcom.c \
@ -56,12 +53,8 @@ libfte_a_SOURCES = \
fourier.h \
gens.c \
gens.h \
graf.c \
graf.h \
graphdb.c \
graphdb.h \
grid.c \
grid.h \
inp.c \
inp.h \
inpcom.c \

View File

@ -1,13 +0,0 @@
/*************
* Header file for agraf.c
* 1999 E. Rouat
************/
#ifndef AGRAF_H_INCLUDED
#define AGRAF_H_INCLUDED
void ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot,
struct dvec *vecs, double xdel, double ydel, bool xlog, bool ylog,
bool nointerp);
#endif

View File

@ -3,6 +3,14 @@ noinst_LIBRARIES = libplotting.a
libplotting_a_SOURCES = \
plotting.c \
plotting.h \
agraf.c \
agraf.h \
clip.c \
clip.h \
graf.c \
graf.h \
grid.c \
grid.h \
pvec.c \
pvec.h \
plot5.c \

View File

@ -36,18 +36,19 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
char *line1, *line2, c, cb;
double xrange[2], yrange[2], x1, x2, yy1, y2, x, y;
int mag, hmt, lmt, dst, spacing, nsp, ypt, upper, lower, curline;
double tenpowmag, diff, *values;
double tenpowmag, diff;
double *values = NULL;
struct dvec *v;
int margin = MARGIN_BASE;
int omargin;
register int i, j, k;
int i, j, k;
int shift;
/* ANSI C does not specify how many digits are in an exponent for %c
* We assumed it was 2. If it's more, shift starting position over.
*/
(void) sprintf(buf, "%1.1e", 0.0); /* expect 0.0e+00 */
sprintf(buf, "%1.1e", 0.0); /* expect 0.0e+00 */
shift = strlen(buf) - 7;
margin += shift;
@ -331,4 +332,3 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
tfree(values);
return;
}

View File

@ -0,0 +1,18 @@
/*************
* Header file for agraf.c
* 1999 E. Rouat
************/
#ifndef _AGRAF_H
#define _AGRAF_H
#include <dvec.h>
#include <bool.h>
#include <plot.h>
void ft_agraf(double *xlims, double *ylims, struct dvec *xscale,
struct plot *plot, struct dvec *vecs,
double xdel, double ydel, bool xlog, bool ylog,
bool nointerp);
#endif

View File

@ -10,6 +10,4 @@
bool clip_line(int *pX1, int *pY1, int *pX2, int *pY2, int l, int b, int r, int t);
bool clip_to_circle(int *x1, int *y1, int *x2, int *y2, int cx, int cy, int rad);
#endif