"pc_assignment",
"missing_char_term",
"ubiquitous_idents",
+ "c_comments",
};
case FEAT_PC_ASSIGNMENT: PCAssignment = 1; break;
case FEAT_MISSING_CHAR_TERM: MissingCharTerm = 1; break;
case FEAT_UBIQUITOUS_IDENTS: UbiquitousIdents = 1; break;
+ case FEAT_C_COMMENTS: CComments = 1; break;
default: /* Keep gcc silent */ break;
}
FEAT_PC_ASSIGNMENT,
FEAT_MISSING_CHAR_TERM,
FEAT_UBIQUITOUS_IDENTS,
+ FEAT_C_COMMENTS,
/* Special value: Number of features available */
FEAT_COUNT
/* */
/* */
/* */
-/* (C) 1998-2007 Ullrich von Bassewitz */
+/* (C) 1998-2008 Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
unsigned char Listing = 0; /* Create listing file */
unsigned char LineCont = 0; /* Allow line continuation */
-/* Emulation features */
+/* Emulation features */
unsigned char DollarIsPC = 0; /* Allow the $ symbol as current PC */
unsigned char NoColonLabels = 0; /* Allow labels without a colon */
unsigned char LooseStringTerm = 0; /* Allow ' as string terminator */
unsigned char MissingCharTerm = 0; /* Allow lda #'a (no closing term) */
unsigned char UbiquitousIdents = 0; /* Allow ubiquitous identifiers */
unsigned char OrgPerSeg = 0; /* Make .org local to current seg */
+unsigned char CComments = 0; /* Allow C like comments */
/* Misc stuff */
const char Copyright[] = "(C) Copyright 1998-2005 Ullrich von Bassewitz";
/* */
/* */
/* */
-/* (C) 1998-2007 Ullrich von Bassewitz */
+/* (C) 1998-2008 Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
extern unsigned char MissingCharTerm; /* Allow lda #'a (no closing term) */
extern unsigned char UbiquitousIdents; /* Allow ubiquitous identifiers */
extern unsigned char OrgPerSeg; /* Make .org local to current seg */
+extern unsigned char CComments; /* Allow C like comments */
/* Misc stuff */
extern const char Copyright[]; /* Copyright string */
NextChar ();
if (C != '*') {
Tok = TOK_DIV;
- } else {
+ } else if (CComments) {
/* Remember the position, then skip the '*' */
FilePos Pos = CurPos;
NextChar ();
while (C != '*') {
if (C == EOF) {
PError (&Pos, "Unterminated comment");
- goto Again;
+ goto CharAgain;
}
NextChar ();
}
NextChar ();
} while (C != '/');
NextChar ();
- goto Again;
+ goto Again;
}
return;