POV-Ray : Newsgroups : povray.unofficial.patches : Hgpovray38, current state : Re: Hgpovray38, current state Server Time
21 Apr 2024 07:59:35 EDT (-0400)
  Re: Hgpovray38, current state  
From: Mr
Date: 3 Jun 2020 17:45:03
Message: <web.5ed8198db933d8376adeaecb0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:

> one hack-ish workaround could be to separate out the operations, ie in C I might
> do something like:
>
> size_t const n = strlen(Get_Token_String(...));
> char tmp_compound[4 + n] = {'\0'};

So instead of this:
char tmp_compound[4+strlen(Get_Token_String(CYLINDER_TOKEN))];

....and after adding the same include in parser_strings.cpp, I used:

const ssize_t n = strlen(Get_Token_String(CYLINDER_TOKEN));
char tmp_compound[4 + n];

And still error messages from the same line not eval to const also tried with
const int n = strlen(Get_Token_String(CYLINDER_TOKEN));


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.