|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 3115 (0xc2b)
Types: TextFile
Names: »max.h«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/others/max/max.h«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/others/max/max.h«
/* max.h - directory browser (X-based) */
#include <stdio.h>
#include <sys/param.h>
#include <sys/dir.h>
#include <sys/stat.h>
#include <X/Xlib.h>
#include <X/Xt/Xtlib.h>
#ifndef XtNhangingEdge
#define XtNhangingEdge "hangingEdge"
#define XtCHangingEdge "HangingEdge"
#endif
#ifndef XtNautoRaise
#define XtNautoRaise "autoRaise"
#define XtCAutoRaise "AutoRaise"
#endif
#define NOTOK (-1)
#define OK 0
#define DONE 1
typedef char *CP;
#define NULLCP ((CP) 0)
typedef char **VP;
#define NULLVP ((VP) 0)
#define XtNameToWindow(name) ((Window) XtAtomToQuark ((XtAtom) (name)))
/* \f
max */
extern int advancesw;
extern int autoraisesw;
extern int dotfilesw;
extern char *maxefilesw;
extern int messagesw;
extern int reselectsw;
extern int sortsw;
extern char *myname;
extern char *mycwd;
extern char *myhome;
extern char myhost[];
extern char *myuser;
extern Window xtermid;
void adios (), advise ();
int putenv (), unputenv ();
char *strdup ();
/* \f
COMMANDS */
void doSelect (), doInvert (), doAdvance (), doCD ();
/* \f
FILE */
typedef struct file {
struct file *fi_forw;
struct file *fi_back;
struct direct *fi_direct;
char fi_type;
#define FI_REGULAR '\0'
#define FI_DIRECTORY '/'
#define FI_SYMLINK '@'
#define FI_SOCKET '='
#define FI_EXECUTABLE '*'
unsigned long fi_flags;
#define FI_NULL 0x0000
int fi_selected;
int fi_selectpos;
char *fi_label;
Window fi_button;
struct directory *fi_up;
struct directory *fi_dir;
} *FI;
#define NULLFI ((FI) 0)
#define FI_ISDIR(fi) ((fi) -> fi_type == FI_DIRECTORY)
typedef struct directory {
char di_path[MAXPATHLEN];
char *di_pp;
time_t di_mtime;
unsigned long di_flags;
#define DI_NULL 0x0000
#define DI_LOGIC 0x0001
#define DI_PRESENTATION 0x0002
#define DI_MAKEFILE 0x0004
Window di_window;
int di_index;
Window di_button;
FI di_up;
struct file di_parts;
FI *di_list;
} *DI;
#define NULLDI ((DI) 0)
DI newDI (), buildDI ();
void freeDI ();
/* \f
FUNCTIONS */
typedef void (*UFproc) ();
typedef enum {
UFexecUnknown,
UFexecError,
UFexecNone,
UFexecIgnore,
UFexecEachFile,
UFexecAllFiles,
UFexecEachRegular,
UFexecAllRegulars,
UFexecEachDirectory,
UFexecAllDirectories
} UFexecMode;
typedef struct ufx {
struct ufx *uf_forw;
struct ufx *uf_back;
char *uf_name;
UFproc uf_proc;
int uf_narg;
char **uf_args;
UFexecMode uf_mode;
char **uf_ap;
char *uf_command;
Window uf_window;
} *UF;
#define NULLUF ((UF) 0)
extern struct ufx UFhead;
void buildUF (), freeUF ();
/* \f
DISPLAY */
typedef int Pixel;
extern char *geometry;
extern int numselected;
extern DI curDI;
void display_init ();
void display_message ();
int remove_message ();
void CDfnx ();
/* \f
TOOLKIT */
void XtFlipPixmaps ();
/* \f
LIBC */
extern int errno;
extern int sys_nerr;
extern char *sys_errlist[];
char *calloc (), *getenv (), *index (), *malloc (), *rindex (), *strcpy ();