Re: Programming question: missing braces around initializer

1999-10-05 Thread Joop Stakenborg
On Tue, Oct 05, 1999 at 01:42:14PM +0200, J.H.M. Dassen Ray" wrote: > On Tue, Oct 05, 1999 at 14:23:38 +0200, Joop Stakenborg wrote: > > Morse MorseTable[]= > > { > > ' ',NIL,NIL,NIL,NIL,NIL,NIL,NIL, > > Change to > {' ', {NIL,NIL,NIL,NIL,NIL,NIL,NIL}}, > etc. The outer pair of cu

Re: Programming question: missing braces around initializer

1999-10-05 Thread J.H.M. Dassen \(Ray\)
On Tue, Oct 05, 1999 at 14:23:38 +0200, Joop Stakenborg wrote: > Morse MorseTable[]= > { > ' ',NIL,NIL,NIL,NIL,NIL,NIL,NIL, Change to {' ', {NIL,NIL,NIL,NIL,NIL,NIL,NIL}}, etc. The outer pair of curly braces is because the elements of the array are structs, which aren't atomic; th

Re: Programming question: missing braces around initializer

1999-10-05 Thread Joop Stakenborg
On Tue, Oct 05, 1999 at 12:22:57PM +0200, J.H.M. Dassen Ray" wrote: > On Tue, Oct 05, 1999 at 11:58:23 +0200, Joop Stakenborg wrote: > > morse.c:52: warning: missing braces around initializer > > > Anyone know how to fix? > > Just a guess, perhaps Morse is a 2 or more dimensional array type rathe

Re: Programming question: missing braces around initializer

1999-10-05 Thread J.H.M. Dassen \(Ray\)
On Tue, Oct 05, 1999 at 11:58:23 +0200, Joop Stakenborg wrote: > morse.c:52: warning: missing braces around initializer > Anyone know how to fix? Just a guess, perhaps Morse is a 2 or more dimensional array type rather than a one-dimensional one, and you need to add braces for the rows? Ray --

Programming question: missing braces around initializer

1999-10-05 Thread Joop Stakenborg
I have a bit of source code here with the following bit: Morse MorseTable[]= { ' ',NIL,NIL,NIL,NIL,NIL,NIL,NIL, 'A',DIH,DAH,NIL,NIL,NIL,NIL,NIL, 'B',DAH,DIH,DIH,DIH,NIL,NIL,NIL, [etc...] '/',DAH,DIH,DIH,DAH,DIH,NIL,NIL, 0, NIL,NIL,NIL,NIL,NIL