home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.uni-stuttgart.de/pub/systems/acorn/
/
Acorn.tar
/
Acorn
/
acornet
/
dev
/
c
/
debug
/
mnemosyn.spk
/
!Mnemosyne
/
rcs
/
h
/
mnemconf
next >
Wrap
Text File
|
1991-04-24
|
7KB
|
287 lines
head 1.3;
branch ;
access ;
symbols ;
locks gtoal:1.3;
comment @ * @;
1.3
date 91.04.17.18.37.15; author gtoal; state Exp;
branches ;
next 1.2;
1.2
date 91.04.02.12.51.32; author gtoal; state Exp;
branches ;
next 1.1;
1.1
date 91.04.02.12.31.27; author gtoal; state Exp;
branches ;
next ;
desc
@Internal header file for Mnemosyne
(including porting assistance for RISC OS & DOS)
@
1.3
log
@Tidied up alignment
@
text
@/************************************************************************
* *
* Copyright (c) 1985 by *
* Digital Equipment Corporation, Maynard, MA *
* All rights reserved. *
* *
* The information in this software is subject to change without *
* notice and should not be construed as a commitment by Digital *
* Equipment Corporation. *
* *
* Digital assumes no responsibility for the use or reliability *
* of its software on equipment which is not supplied by Digital. *
* *
* Redistribution and use in source and binary forms are permitted *
* provided that the above copyright notice and this paragraph are *
* duplicated in all such forms and that any documentation, *
* advertising materials, and other materials related to such *
* distribution and use acknowledge that the software was developed *
* by Digital Equipment Corporation. The name of Digital Equipment *
* Corporation may not be used to endorse or promote products derived *
* from this software without specific prior written permission. *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*
* Do not take internally. In case of accidental ingestion, contact *
* your physician immediately. *
* *
************************************************************************/
#ifndef _INCL_MNEMCONF_H
/*
$Header: RCS.h.mnemconf 1.2 91/04/02 12:51:32 gtoal Exp Locker: gtoal $
*/
/*
site specific and shared internal data structures used by mnemosyne.
the only data structure that may need to be shared is the struct ptr,
which is defined herein.
Marcus J. Ranum, 1990. (mjr@@decuac.dec.com)
*/
/* size of internal hash tables - don't go wild - this is slow anyhow */
#define HASHSIZ 127
/* names of files to write */
#define LINESFILE "mnem.syms"
#define PTRFILE "mnem.dat"
#if defined(__MSDOS__) && !defined(MSDOS)
#define MSDOS 1
#endif
#ifdef MSDOS
#define SYS_MSDOS 1
#endif
#ifdef __ZTC__
#define SYS_MSDOS 1
#endif
#if defined(SYS_MSDOS)
#undef LINESFILE
#define LINESFILE "mnem.sym"
#endif
#if defined(__STDC__) || defined(__cplusplus)
#define MALLOC_IS_VOIDSTAR
#endif
#ifdef __riscos
#undef LINESFILE
#undef PTRFILE
#define LINESFILE "mnem-syms"
#define PTRFILE "mnem-dat"
#endif
/* if your machine has malloc and all declared as a (void *) not a (char *) */
#ifdef MALLOC_IS_VOIDSTAR
#define mall_t void *
#else
#define mall_t char *
#endif
#if defined(__STDC__) || defined(__cplusplus)
#include <stdlib.h>
#else
extern mall_t malloc();
extern mall_t realloc();
extern mall_t calloc();
extern void free();
extern void exit();
#endif
/*
storage for a pointer map entry - the only data structure we share
a whole mess of these get written to mnem.dat as calls to malloc and
whatnot are made. the distinction between an *allocated* pointer and
and unallocated one is that 'siz' is 0 in freed ptrs. this is used
by the post-processor to look for memory leaks.
*/
struct s_ptr {
mall_t ptr; /* pointer to allocated memory */
int map; /* this pointer's map # */
#ifdef TOMBSTONES
int warned; /* MUST MUST MUST squeeze this into a bit in the field above */
#endif
struct s_ptr *next;
/* only part that gets written to the disk */
struct {
unsigned siz; /* size allocated (or 0) */
int smap; /* symbol map # */
} dsk;
};
#define _INCL_MNEMCONF_H
#endif
@
1.2
log
@Expanded tabs in source to make it easier to edit
on the Arch
@
text
@d33 1
a33 1
$Header: rcs.h.MNEMCONF 1.1 91/04/02 12:31:27 gtoal Exp Locker: gtoal $
d54 14
a67 1
#if defined(MSDOS) || defined(__ZTC__)
d73 1
a73 1
#ifdef __arm
d75 3
d87 1
a87 1
typedef void *mall_t;
d89 1
a89 1
typedef char *mall_t;
d92 1
d94 1
a94 1
#ifdef NEVER
d99 1
d110 1
a110 1
struct ptr {
d113 4
a116 1
struct ptr *next;
@
1.1
log
@Initial revision
@
text
@d2 22
a23 22
* *
* Copyright (c) 1985 by *
* Digital Equipment Corporation, Maynard, MA *
* All rights reserved. *
* *
* The information in this software is subject to change without *
* notice and should not be construed as a commitment by Digital *
* Equipment Corporation. *
* *
* Digital assumes no responsibility for the use or reliability *
* of its software on equipment which is not supplied by Digital. *
* *
* Redistribution and use in source and binary forms are permitted *
* provided that the above copyright notice and this paragraph are *
* duplicated in all such forms and that any documentation, *
* advertising materials, and other materials related to such *
* distribution and use acknowledge that the software was developed *
* by Digital Equipment Corporation. The name of Digital Equipment *
* Corporation may not be used to endorse or promote products derived *
* from this software without specific prior written permission. *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *
d25 3
a27 3
* Do not take internally. In case of accidental ingestion, contact *
* your physician immediately. *
* *
d30 1
a30 1
#ifndef _INCL_MNEMCONF_H
d33 1
a33 1
$Header: mnemconf.h 1.1 90/12/25 mjr Rel $
d41 1
a41 1
Marcus J. Ranum, 1990. (mjr@@decuac.dec.com)
d47 1
a47 1
#define HASHSIZ 127
d51 2
a52 2
#define LINESFILE "mnem.syms"
#define PTRFILE "mnem.dat"
d62 4
a65 4
#undef LINESFILE
#undef PTRFILE
#define LINESFILE "mnem-syms"
#define PTRFILE "mnem-dat"
d70 2
a71 2
#ifdef MALLOC_IS_VOIDSTAR
typedef void *mall_t;
d73 1
a73 1
typedef char *mall_t;
d78 4
a81 4
extern mall_t malloc();
extern mall_t realloc();
extern mall_t calloc();
extern void free();
d92 4
a95 4
struct ptr {
mall_t ptr; /* pointer to allocated memory */
int map; /* this pointer's map # */
struct ptr *next;
d97 5
a101 5
/* only part that gets written to the disk */
struct {
unsigned siz; /* size allocated (or 0) */
int smap; /* symbol map # */
} dsk;
d104 1
a104 1
#define _INCL_MNEMCONF_H
@