mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
Moved the segdefs module to ca65, since it was used only there and renamed it
to segdef, since there might be a new segdefs module in common soon. git-svn-id: svn://svn.cc65.org/cc65/trunk@5381 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -55,6 +55,7 @@ OBJS = anonname.o \
|
|||||||
pseudo.o \
|
pseudo.o \
|
||||||
repeat.o \
|
repeat.o \
|
||||||
scanner.o \
|
scanner.o \
|
||||||
|
segdef.o \
|
||||||
segment.o \
|
segment.o \
|
||||||
sizeof.o \
|
sizeof.o \
|
||||||
span.o \
|
span.o \
|
||||||
|
@@ -88,6 +88,7 @@ OBJS = anonname.obj \
|
|||||||
pseudo.obj \
|
pseudo.obj \
|
||||||
repeat.obj \
|
repeat.obj \
|
||||||
scanner.obj \
|
scanner.obj \
|
||||||
|
segdef.obj \
|
||||||
segment.obj \
|
segment.obj \
|
||||||
sizeof.obj \
|
sizeof.obj \
|
||||||
span.obj \
|
span.obj \
|
||||||
|
@@ -1,15 +1,15 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* segdefs.c */
|
/* segdef.c */
|
||||||
/* */
|
/* */
|
||||||
/* Segment definitions for the bin65 binary utils */
|
/* Segment definitions for the ca65 assembler */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2002-2003 Ullrich von Bassewitz */
|
/* (C) 1998-2012, Ullrich von Bassewitz */
|
||||||
/* Römerstraße 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -35,7 +35,9 @@
|
|||||||
|
|
||||||
/* common */
|
/* common */
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
#include "segdefs.h"
|
|
||||||
|
/* ca65 */
|
||||||
|
#include "segdef.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -78,4 +80,4 @@ SegDef* DupSegDef (const SegDef* Def)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,15 +1,15 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* segdefs.h */
|
/* segdef.h */
|
||||||
/* */
|
/* */
|
||||||
/* Segment definitions for the bin65 binary utils */
|
/* Segment definitions for the ca65 assembler */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
/* (C) 1998-2012, Ullrich von Bassewitz */
|
||||||
/* Römerstraße 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef SEGDEFS_H
|
#ifndef SEGDEF_H
|
||||||
#define SEGDEFS_H
|
#define SEGDEF_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ SegDef* DupSegDef (const SegDef* D);
|
|||||||
/* Duplicate a segment definition and return it */
|
/* Duplicate a segment definition and return it */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* End of segdefs.h */
|
/* End of segdefs.h */
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -42,10 +42,10 @@
|
|||||||
#include "coll.h"
|
#include "coll.h"
|
||||||
#include "fragdefs.h"
|
#include "fragdefs.h"
|
||||||
#include "inline.h"
|
#include "inline.h"
|
||||||
#include "segdefs.h"
|
|
||||||
|
|
||||||
/* ca65 */
|
/* ca65 */
|
||||||
#include "fragment.h"
|
#include "fragment.h"
|
||||||
|
#include "segdef.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@ OBJS = abend.o \
|
|||||||
mmodel.o \
|
mmodel.o \
|
||||||
print.o \
|
print.o \
|
||||||
searchpath.o \
|
searchpath.o \
|
||||||
segdefs.o \
|
|
||||||
segnames.o \
|
segnames.o \
|
||||||
shift.o \
|
shift.o \
|
||||||
strbuf.o \
|
strbuf.o \
|
||||||
|
@@ -79,7 +79,6 @@ OBJS = abend.obj \
|
|||||||
mmodel.obj \
|
mmodel.obj \
|
||||||
print.obj \
|
print.obj \
|
||||||
searchpath.obj \
|
searchpath.obj \
|
||||||
segdefs.obj \
|
|
||||||
segnames.obj \
|
segnames.obj \
|
||||||
shift.obj \
|
shift.obj \
|
||||||
strbuf.obj \
|
strbuf.obj \
|
||||||
|
@@ -40,7 +40,6 @@
|
|||||||
#include "check.h"
|
#include "check.h"
|
||||||
#include "coll.h"
|
#include "coll.h"
|
||||||
#include "fragdefs.h"
|
#include "fragdefs.h"
|
||||||
#include "segdefs.h"
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
/* ld65 */
|
/* ld65 */
|
||||||
|
@@ -37,6 +37,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* common */
|
/* common */
|
||||||
|
#include "addrsize.h"
|
||||||
#include "alignment.h"
|
#include "alignment.h"
|
||||||
#include "check.h"
|
#include "check.h"
|
||||||
#include "coll.h"
|
#include "coll.h"
|
||||||
@@ -44,7 +45,6 @@
|
|||||||
#include "fragdefs.h"
|
#include "fragdefs.h"
|
||||||
#include "hashfunc.h"
|
#include "hashfunc.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "segdefs.h"
|
|
||||||
#include "symdefs.h"
|
#include "symdefs.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ static Segment* NewSegment (unsigned Name, unsigned char AddrSize)
|
|||||||
S->ReadOnly = 0;
|
S->ReadOnly = 0;
|
||||||
S->Dumped = 0;
|
S->Dumped = 0;
|
||||||
S->BankRef = 0;
|
S->BankRef = 0;
|
||||||
|
|
||||||
/* Insert the segment into the segment list and assign the segment id */
|
/* Insert the segment into the segment list and assign the segment id */
|
||||||
S->Id = CollCount (&SegmentList);
|
S->Id = CollCount (&SegmentList);
|
||||||
CollAppend (&SegmentList, S);
|
CollAppend (&SegmentList, S);
|
||||||
|
@@ -46,7 +46,6 @@
|
|||||||
#include "objdefs.h"
|
#include "objdefs.h"
|
||||||
#include "optdefs.h"
|
#include "optdefs.h"
|
||||||
#include "scopedefs.h"
|
#include "scopedefs.h"
|
||||||
#include "segdefs.h"
|
|
||||||
#include "symdefs.h"
|
#include "symdefs.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user