From 13a2927e17258051596d7e2e98f072cfce484707 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 21 Jun 2004 22:22:11 +0000 Subject: [PATCH] The -A and --ansi switches are gone, together with the __STRICT_ANSI__ predefined macro. Instead there is now a command line option --standard that allows to set c89, c99 or cc65 as language standard. The compiler defines a macro __CC65_STD__ that is one of __CC65_STD_C89__, __CC65_STD_C99__ or __CC65_STD_CC65__ depending on the command line option. Default is cc65 (all extensions) as before. git-svn-id: svn://svn.cc65.org/cc65/trunk@3133 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 104 ++++++++++++++++++------------ doc/cl65.sgml | 5 +- include/ctype.h | 36 ++++++----- include/stdio.h | 5 +- include/stdlib.h | 4 +- include/string.h | 10 +-- src/cc65/compile.c | 14 +++-- src/cc65/declare.c | 16 +++-- src/cc65/global.h | 1 + src/cc65/main.c | 40 +++++++----- src/cc65/make/gcc.mak | 1 + src/cc65/make/watcom.mak | 1 + src/cc65/preproc.c | 14 ++--- src/cc65/scanner.c | 133 ++++++++++++++++++++------------------- src/cc65/standard.c | 84 +++++++++++++++++++++++++ src/cc65/standard.h | 88 ++++++++++++++++++++++++++ src/cl65/main.c | 27 +++----- 17 files changed, 397 insertions(+), 186 deletions(-) create mode 100644 src/cc65/standard.c create mode 100644 src/cc65/standard.h diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 73f0ec321..4d4ff3706 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -54,7 +54,6 @@ The compiler may be called as follows: --------------------------------------------------------------------------- Usage: cc65 [options] file Short options: - -A Strict ANSI mode -Cl Make local variables static -Dsym[=defn] Define a symbol -I dir Set an include directory search path @@ -76,7 +75,6 @@ Short options: Long options: --add-source Include source as comment - --ansi Strict ANSI mode --bss-name seg Set the name of the BSS segment --check-stack Generate stack overflow checks --code-name seg Set the name of the CODE segment @@ -93,6 +91,7 @@ Long options: --register-vars Enable register variables --rodata-name seg Set the name of the RODATA segment --signed-chars Default characters are signed + --standard std Language standard (c89, c99, cc65) --static-locals Make local variables static --target sys Set the target system --verbose Increase verbosity @@ -108,14 +107,6 @@ Here is a description of all the command line options: -