* "constructor must be a structure" for Rune?
@ 2018-12-14 13:37 Ethan Gardener
0 siblings, 0 replies; only message in thread
From: Ethan Gardener @ 2018-12-14 13:37 UTC (permalink / raw)
To: 9front
I want to put a literal rune string into a program to test a new function, but get this error:
6c -FTVw test.c
test.c:65 constructor must be a structure
mk: 6c -FTVw test.c : exit status=rc 1676: 6c 1678: error
test.c lines 64 & 65:
dcrunestring(fg, Pt(50,350),
(Rune){0x2308, 0x2190, 0x2395, 0x2192, 0x230a});
in /amd64/include/u.h:
typedef uint Rune;
What am I doing wrong? Am I doing anything wrong? Is there a way to pass a literal array like that when a pointer to an array is called for? I know I can do it by assigning to a variable first, perhaps I should just do that. It's normally my policy to use temporary variables when lines get long, but strong typing makes it a bit more of a fuss.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-14 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 13:37 "constructor must be a structure" for Rune? Ethan Gardener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).