Commit 7e2eb697 by Per Bothner

Remove PARSE_GETC. Add comment about "@ ".

From-SVN: r9551
parent 92c874f7
...@@ -160,11 +160,14 @@ struct cpp_buffer { ...@@ -160,11 +160,14 @@ struct cpp_buffer {
/* True if buffer contains escape sequences. /* True if buffer contains escape sequences.
Currently there are are only two kind: Currently there are are only two kind:
"@-" means following identifier should not be macro-expanded. "@-" means following identifier should not be macro-expanded.
"@ " means a token-separator. This turns into " " in final output
if not stringizing and needed to separate tokens; otherwise nothing.
"@@" means a normal '@'. */ "@@" means a normal '@'. */
char has_escapes; char has_escapes;
}; };
struct cpp_pending; /* Forward declaration - for C++. */ struct cpp_pending; /* Forward declaration - for C++. */
struct file_name_map_list;
typedef struct assertion_hashnode ASSERTION_HASHNODE; typedef struct assertion_hashnode ASSERTION_HASHNODE;
#define ASSERTION_HASHSIZE 37 #define ASSERTION_HASHSIZE 37
...@@ -314,6 +317,8 @@ struct cpp_options { ...@@ -314,6 +317,8 @@ struct cpp_options {
/* Name of output file, for error messages. */ /* Name of output file, for error messages. */
char *out_fname; char *out_fname;
struct file_name_map_list *map_list;
/* Non-0 means -v, so print the full set of include dirs. */ /* Non-0 means -v, so print the full set of include dirs. */
char verbose; char verbose;
...@@ -496,8 +501,6 @@ struct cpp_options { ...@@ -496,8 +501,6 @@ struct cpp_options {
#define CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic) #define CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic)
#define CPP_PRINT_DEPS(PFILE) (CPP_OPTIONS (PFILE)->print_deps) #define CPP_PRINT_DEPS(PFILE) (CPP_OPTIONS (PFILE)->print_deps)
#define PARSE_GETC(IN) ((IN)-> cur < (IN)->limit || ((IN)->cur = (IN)->token_buffer, (IN)->underflow (IN) != EOF_TOKEN) ? *(IN)->cur++ : EOF)
/* Name under which this program was invoked. */ /* Name under which this program was invoked. */
extern char *progname; extern char *progname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment