Re: Curly bracket question



On Fri, 28 Mar 2008 21:51:42 -0000, in comp.arch.embedded Grant
Edwards <grante@xxxxxxxx> wrote:

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.

I'm just using the standard Raisonance kit, I don't know how to
patch in a descent editor. I've got stuff like PN2, but there seems to
be little advice on how to stuff it into my compiler

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, andd
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"?

My 1996 PCB design package has 4 undo files levels, *.bak1,*.bak2 etc,
all the raisonance stuff is have a single .bak file

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.

Quite agree, it's my fault, just wondering the best way to improve my
programming knowledge, the help files are comprehensive, but
uninformative



martin
.


Quantcast