#ifndef NEDIT_UTILS_H_INCLUDED
#define NEDIT_UTILS_H_INCLUDED
#include <sys/utsname.h>
#include <sys/types.h>
#ifdef VMS
#include "vmsparam.h"
#else
#include <sys/param.h>
#endif
const char *GetCurrentDir(
void);
const char *GetHomeDir(
void);
char *PrependHome(
const char *filename,
char *buf,
size_t buflen);
const char *GetUserName(
void);
const char *GetNameOfHost(
void);
int Min(
int i1,
int i2);
const char* GetRCFileName(
int type);
typedef struct _stackObject {
void* value;
struct _stackObject* next;
} stackObject;
typedef struct {
unsigned size;
stackObject* top;
} Stack;
void Push(Stack* stack,
const void* value);
void* Pop(Stack* stack);
enum {
NEDIT_RC,
AUTOLOAD_NM,
NEDIT_HISTORY,
SEARCH_HISTORY,
XNEDIT_HOME,
N_FILE_TYPES};
#define MAXUSERNAMELEN 32
#ifdef SYS_NMLN
#define MAXNODENAMELEN SYS_NMLN
#else
#define MAXNODENAMELEN (
MAXPATHLEN+
2)
#endif
#endif