New .FEATURE org_per_seg. If enabled, .org/.reloc do only influence the

current segment. Idea by Peter Wendrich <pwsoft@syntiac.com>.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3794 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2007-08-23 19:48:43 +00:00
parent 5eadec958c
commit a7358314a0
11 changed files with 131 additions and 50 deletions

View File

@@ -56,6 +56,7 @@ static const char* FeatureKeys[FEAT_COUNT] = {
"at_in_identifiers",
"dollar_in_identifiers",
"leading_dot_in_identifiers",
"org_per_seg",
"pc_assignment",
"missing_char_term",
"ubiquitous_idents",
@@ -108,10 +109,11 @@ feature_t SetFeature (const char* Key)
case FEAT_AT_IN_IDENTIFIERS: AtInIdents = 1; break;
case FEAT_DOLLAR_IN_IDENTIFIERS: DollarInIdents = 1; break;
case FEAT_LEADING_DOT_IN_IDENTIFIERS: LeadingDotInIdents= 1; break;
case FEAT_ORG_PER_SEG: OrgPerSeg = 1; break;
case FEAT_PC_ASSIGNMENT: PCAssignment = 1; break;
case FEAT_MISSING_CHAR_TERM: MissingCharTerm = 1; break;
case FEAT_UBIQUITOUS_IDENTS: UbiquitousIdents = 1; break;
default: /* Keep gcc silent */ break;
default: /* Keep gcc silent */ break;
}
/* Return the value found */