Re: widl [1/6]: Generate names for tagless structs, unions and enums
29 Aug
2006
29 Aug
'06
5:31 a.m.
Dan Hipschman <dsh(a)linux.ucla.edu> writes:
+static char *gen_name(void) +{ + static const char format[] = "__WIDL_%s_generated_name_%08lX"; + static unsigned long n = 0; + + size_t size = sizeof format - 7 + strlen(input_base) + 8; + char *name = xmalloc(size); + + sprintf(name, format, input_base, n++); + return name; +}
You can't simply copy the file name, there's no guarantee it's a valid C identifier. You should use something like make_c_identifier in winebuild. -- Alexandre Julliard julliard(a)winehq.org
7044
Age (days ago)
7044
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard