Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Functions | Variables
vr_stubs.h File Reference
#include "prio.h"
#include "prlog.h"
#include "prmem.h"
#include "plstr.h"
#include <sys/stat.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FALSE   0
#define TRUE   1
#define XP_IS_CPLUSPLUS   0
#define XP_BEGIN_PROTOS
#define XP_END_PROTOS
#define USE_NSPR_MODES
#define XP_FileSeek(file, offset, whence)   (PR_Seek((file), (offset), (whence)) < 0)
#define XP_FileRead(dest, count, file)   PR_Read((file), (dest), (count))
#define XP_FileWrite(src, count, file)   PR_Write((file), (src), (count))
#define XP_FileTell(file)   PR_Seek(file, 0, PR_SEEK_CUR)
#define XP_FileOpen(path, mode)   PR_Open((path), mode )
#define XP_FileClose(file)   PR_Close(file)
#define XP_FileFlush(file)   PR_Sync(file)
#define XP_FileSetBufferSize(file, bufsize)   (-1)
#define XP_ASSERT(x)   PR_ASSERT((x))
#define XP_STRCAT(a, b)   PL_strcat((a),(b))
#define XP_ATOI   PL_atoi
#define XP_STRCPY(a, b)   PL_strcpy((a),(b))
#define XP_STRNCPY(a, b, n)   PL_strncpy((a),(b),(n))
#define XP_STRLEN(x)   PL_strlen(x)
#define XP_SPRINTF   sprintf
#define XP_FREE(x)   PR_Free((x))
#define XP_ALLOC(x)   PR_Malloc((x))
#define XP_FREEIF(x)   PR_FREEIF(x)
#define XP_STRCMP(x, y)   PL_strcmp((x),(y))
#define XP_STRNCMP(x, y, n)   PL_strncmp((x),(y),(n))
#define XP_STRDUP(s)   PL_strdup((s))
#define XP_MEMCPY(d, s, l)   memcpy((d), (s), (l))
#define XP_MEMSET(d, c, l)   memset((d), (c), (l))
#define XP_STRCASECMP(x, y)   PL_strcasecmp((x),(y))
#define XP_STRNCASECMP(x, y, n)   PL_strncasecmp((x),(y),(n))
#define XP_FILE_READ   PR_RDONLY, 0644
#define XP_FILE_READ_BIN   PR_RDONLY, 0644
#define XP_FILE_WRITE   PR_WRONLY, 0644
#define XP_FILE_WRITE_BIN   PR_WRONLY, 0644
#define XP_FILE_UPDATE   (PR_RDWR|PR_CREATE_FILE), 0644
#define XP_FILE_TRUNCATE   (PR_RDWR | PR_TRUNCATE), 0644
#define XP_FILE_UPDATE_BIN   PR_RDWR|PR_CREATE_FILE, 0644
#define XP_FILE_TRUNCATE_BIN   (PR_RDWR | PR_TRUNCATE), 0644
#define XP_Stat(file, data)   stat((file),(data))
#define nr_RenameFile(from, to)   rename((from), (to))
#define vr_fileOpen   PR_Open

Typedefs

typedef PRFileDescXP_File
typedef int XP_Bool
typedef struct stat

Functions

void vr_findGlobalRegName ()
char * vr_findVerRegName ()

Variables

XP_END_PROTOS XP_BEGIN_PROTOS
char * 
globalRegName
char * verRegName

Define Documentation

#define FALSE   0

Definition at line 77 of file vr_stubs.h.

#define nr_RenameFile (   from,
  to 
)    rename((from), (to))

Definition at line 292 of file vr_stubs.h.

#define TRUE   1

Definition at line 80 of file vr_stubs.h.

Definition at line 191 of file vr_stubs.h.

Definition at line 313 of file vr_stubs.h.

#define XP_ALLOC (   x)    PR_Malloc((x))

Definition at line 222 of file vr_stubs.h.

#define XP_ASSERT (   x)    PR_ASSERT((x))

Definition at line 213 of file vr_stubs.h.

#define XP_ATOI   PL_atoi

Definition at line 216 of file vr_stubs.h.

Definition at line 94 of file vr_stubs.h.

Definition at line 95 of file vr_stubs.h.

Definition at line 256 of file vr_stubs.h.

Definition at line 257 of file vr_stubs.h.

Definition at line 261 of file vr_stubs.h.

Definition at line 263 of file vr_stubs.h.

Definition at line 260 of file vr_stubs.h.

Definition at line 262 of file vr_stubs.h.

Definition at line 258 of file vr_stubs.h.

Definition at line 259 of file vr_stubs.h.

Definition at line 203 of file vr_stubs.h.

#define XP_FileFlush (   file)    PR_Sync(file)

Definition at line 204 of file vr_stubs.h.

#define XP_FileOpen (   path,
  mode 
)    PR_Open((path), mode )

Definition at line 202 of file vr_stubs.h.

#define XP_FileRead (   dest,
  count,
  file 
)    PR_Read((file), (dest), (count))

Definition at line 199 of file vr_stubs.h.

#define XP_FileSeek (   file,
  offset,
  whence 
)    (PR_Seek((file), (offset), (whence)) < 0)

Definition at line 198 of file vr_stubs.h.

#define XP_FileSetBufferSize (   file,
  bufsize 
)    (-1)

Definition at line 205 of file vr_stubs.h.

Definition at line 201 of file vr_stubs.h.

#define XP_FileWrite (   src,
  count,
  file 
)    PR_Write((file), (src), (count))

Definition at line 200 of file vr_stubs.h.

#define XP_FREE (   x)    PR_Free((x))

Definition at line 221 of file vr_stubs.h.

#define XP_FREEIF (   x)    PR_FREEIF(x)

Definition at line 223 of file vr_stubs.h.

Definition at line 87 of file vr_stubs.h.

#define XP_MEMCPY (   d,
  s,
  l 
)    memcpy((d), (s), (l))

Definition at line 227 of file vr_stubs.h.

#define XP_MEMSET (   d,
  c,
  l 
)    memset((d), (c), (l))

Definition at line 228 of file vr_stubs.h.

#define XP_SPRINTF   sprintf

Definition at line 220 of file vr_stubs.h.

#define XP_Stat (   file,
  data 
)    stat((file),(data))

Definition at line 286 of file vr_stubs.h.

#define XP_STRCASECMP (   x,
  y 
)    PL_strcasecmp((x),(y))

Definition at line 230 of file vr_stubs.h.

#define XP_STRCAT (   a,
  b 
)    PL_strcat((a),(b))

Definition at line 215 of file vr_stubs.h.

#define XP_STRCMP (   x,
  y 
)    PL_strcmp((x),(y))

Definition at line 224 of file vr_stubs.h.

#define XP_STRCPY (   a,
  b 
)    PL_strcpy((a),(b))

Definition at line 217 of file vr_stubs.h.

#define XP_STRDUP (   s)    PL_strdup((s))

Definition at line 226 of file vr_stubs.h.

#define XP_STRLEN (   x)    PL_strlen(x)

Definition at line 219 of file vr_stubs.h.

#define XP_STRNCASECMP (   x,
  y,
  n 
)    PL_strncasecmp((x),(y),(n))

Definition at line 231 of file vr_stubs.h.

#define XP_STRNCMP (   x,
  y,
  n 
)    PL_strncmp((x),(y),(n))

Definition at line 225 of file vr_stubs.h.

#define XP_STRNCPY (   a,
  b,
  n 
)    PL_strncpy((a),(b),(n))

Definition at line 218 of file vr_stubs.h.


Typedef Documentation

typedef struct stat

Definition at line 285 of file vr_stubs.h.

typedef int XP_Bool

Definition at line 283 of file vr_stubs.h.

typedef PRFileDesc* XP_File

Definition at line 207 of file vr_stubs.h.


Function Documentation

char* vr_findVerRegName ( )

Here is the caller graph for this function:


Variable Documentation

Definition at line 156 of file reg.c.

char* verRegName

Definition at line 117 of file VerReg.c.