Page principale   Liste des composants   Liste des fichiers   Composants   Déclarations  

graphaux.h

Aller à la documentation de ce fichier.
00001 
00004 #include <stdio.h>
00005 #include <string.h>
00006 /* 
00007 #include <errno.h> 
00008 #include <sys/types.h>
00009 #include <unistd.h> 
00010 */
00011 #include <stdlib.h>
00012 #include <sys/time.h>
00013 
00014 typedef char boolean;
00015 
00016 #define TRUE 1
00017 #define FALSE 0
00018 
00019 /* ===================================== */
00020 /* GESTION DE PILE */
00021 /* ===================================== */
00022 
00026 typedef struct Lifo {
00028   int Max;
00030   int Sp;
00032   int Pts[1];
00033 } Lifo;
00034 
00035 /* prototypes     */
00036 Lifo * CreeLifoVide( int taillemax );
00037 void LifoFlush( Lifo * L );
00038 boolean LifoVide( Lifo * L );
00039 int LifoPop( Lifo * L );
00040 void LifoPush( Lifo * L, int V );
00041 void LifoPrint( Lifo * L );
00042 void LifoPrintLine( Lifo * L );
00043 void LifoTermine( Lifo * L );
00044 
00045 /* ===================================== */
00046 /* TRI */
00047 /* ===================================== */
00048 
00049 #define TypeCle double
00050 
00051 /* prototypes     */
00052 void TriRapideStochastique (int * A, TypeCle *T, int p, int r);
00053 
00054 /* ===================================== */
00055 /* MESURE DE TEMPS */
00056 /* ===================================== */
00057 
00058 #ifdef DEFTIMEVAL
00059 struct timeval {
00060   unsigned long tv_sec;         /* seconds */
00061   long          tv_usec;        /* and microseconds */
00062 };
00063 
00064 struct timezone {
00065   int   tz_minuteswest; /* minutes west of Greenwich */
00066   int   tz_dsttime;     /* type of dst correction */
00067 };
00068 #endif
00069 
00073 typedef struct timeval chrono;
00074 
00075 /* prototypes     */
00076 void start_chrono( chrono *tp );
00077 int read_chrono( chrono *tp );
00078 
00079 /* ===================================== */
00080 /* GENERATION DE POSTSCRIPT */
00081 /* ===================================== */
00082 
00083 /* prototypes     */
00084 
00085 void PSHeader(FILE *fd, double figure_width, double figure_height, double line_width, int font_size );
00086 void EPSHeader(FILE *fd, double figure_width, double figure_height, double line_width, int font_size );
00087 void PSMove (FILE *fd, double x, double y);
00088 void PSDraw (FILE *fd, double x, double y);
00089 void PSLine (FILE *fd, double xd, double yd, double xf, double yf);
00090 void PSDrawcircle (FILE *fd, double x, double y, double r);
00091 void PSDrawdisc (FILE *fd, double x, double y, double r);
00092 void PSString (FILE *fd, double x, double y, char *s);
00093 void PSFooter(FILE *fd);
00094 
00095 /* ===================================== */
00096 /* ENSEMBLES */
00097 /* ===================================== */
00098 
00099 boolean * EnsembleVide(int n);

Généré le Sun Apr 21 15:03:58 2002 pour Graphes par doxygen1.2.12 écrit par Dimitri van Heesch, © 1997-2001