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 #define _graphaux_h
00015 
00016 typedef char boolean;
00017 
00018 #define TRUE 1
00019 #define FALSE 0
00020 
00021 /* ===================================== */
00022 /* GESTION DE PILE */
00023 /* ===================================== */
00024 
00028 typedef struct Lifo {
00030   int Max;
00032   int Sp;
00034   int Pts[1];
00035 } Lifo;
00036 
00037 /* prototypes     */
00038 Lifo * CreeLifoVide( int taillemax );
00039 void LifoFlush( Lifo * L );
00040 boolean LifoVide( Lifo * L );
00041 int LifoPop( Lifo * L );
00042 void LifoPush( Lifo * L, int V );
00043 void LifoPrint( Lifo * L );
00044 void LifoPrintLine( Lifo * L );
00045 void LifoTermine( Lifo * L );
00046 
00047 /* ===================================== */
00048 /* TRI */
00049 /* ===================================== */
00050 
00051 #define TypeCle long
00052 
00053 /* prototypes     */
00054 void TriRapideStochastique (int * A, TypeCle *T, int p, int r);
00055 
00056 /* ===================================== */
00057 /* MESURE DE TEMPS */
00058 /* ===================================== */
00059 
00060 #ifdef DEFTIMEVAL
00061 struct timeval {
00062   unsigned long tv_sec;         /* seconds */
00063   long          tv_usec;        /* and microseconds */
00064 };
00065 
00066 struct timezone {
00067   int   tz_minuteswest; /* minutes west of Greenwich */
00068   int   tz_dsttime;     /* type of dst correction */
00069 };
00070 #endif
00071 
00075 typedef struct timeval chrono;
00076 
00077 /* prototypes     */
00078 void start_chrono( chrono *tp );
00079 int read_chrono( chrono *tp );
00080 
00081 /* ===================================== */
00082 /* GENERATION DE POSTSCRIPT */
00083 /* ===================================== */
00084 
00085 /* prototypes     */
00086 
00087 void PSHeader(FILE *fd, double figure_width, double figure_height, double line_width, int font_size );
00088 void EPSHeader(FILE *fd, double figure_width, double figure_height, double line_width, int font_size );
00089 void PSMove (FILE *fd, double x, double y);
00090 void PSDraw (FILE *fd, double x, double y);
00091 void PSLine (FILE *fd, double xd, double yd, double xf, double yf);
00092 void PSDrawcircle (FILE *fd, double x, double y, double r);
00093 void PSDrawdisc (FILE *fd, double x, double y, double r);
00094 void PSString (FILE *fd, double x, double y, char *s);
00095 void PSFooter(FILE *fd);
00096 
00097 /* ===================================== */
00098 /* ENSEMBLES */
00099 /* ===================================== */
00100 
00101 boolean * EnsembleVide(int n);
00102 
00103 /* ===================================== */
00104 /* LISTES */
00105 /* ===================================== */
00106 
00107 int * ListeVide(int n);

Généré le Wed Jan 12 09:48:57 2005 pour Graphes par doxygen1.2.18