Re: Curly bracket question



On 2008-03-28, Martin Griffith <mart_in_medina@xxxxxxxx> wrote:
Doom and Gloom ( and couple glasses of wine).

Last night I just compiled my little project, with the 4k limited
Raisonance C complier for the 8051/2

" missing } " it said, you have been naughty

Well, you're probably missing a '}'. :)

I counted all the brackets, even gave them names, I could not
find where to put it.

If you're using any decent programming editor, it should be
pretty obvious where to put it, since the indentation level
won't "look right" somewhere.

Alternatively, run the program through indent or astyle and
look at the output to see where the indentation isn't right.

I stuck an extra bracket at the end of main()
It, the ***, was happy.

I don't see how you expect the compiler to know where the
missing bracket belongs.

But nothing worked, not even InitLCD, first thing in main().

Raisonance doesn't seem to have much of a back up system, and
it cost me ( on my 60'th birthday) about 5 hours.

I don't get it: what do you mean by "a back up system"?

Any hints /tips/ goto keil, do not pass go, on the missing
bracket syndrome

I don't see how it's the compiler's fault.

--
Grant Edwards grante Yow! The entire CHINESE
at WOMEN'S VOLLEYBALL TEAM all
visi.com share ONE personality --
and have since BIRTH!!
.


Quantcast