Dan Hipschman <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]


Reply via email to