By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

sub: inclusion of header file "y_token_names.h"

P: 62
Hi all,
I am working on porting of code in C++, I am having the following problem.

In my code The following structure has been defined

static struct rwtable { /* reserved word table */
char * rw_name; /* representation */
int rw_yylex; /* yylex() value */
} rwtable[] = { /* sorted */
# include "y_token_names.h"
"", 0

Here the file y_token_names.h is containg the
ACCESS", token(269),
"AFTER", token(270),
"AMPERSAND_SLASH", token(266),
reserved words and the corresponding tokens in tabular format as above
with out included in any structure or union.
When I include this header file I am getting some parse errors.
the file y_token_names.h is obtained from the file and followed by
AWK utility of unix. i.e
awk |sort -o y_token_names.h

Q1. What is need for including the header file during the initilaisation.
Q2. This file is just containh the entries in a tabular format is it meaning ful
to include the files which are present in that format.

kindly help me in resolving this problem

Nov 6 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.