[hts-users:04194] Re: small C89 compilation issue with HGen.c
- Subject: [hts-users:04194] Re: small C89 compilation issue with HGen.c
- From: Keiichiro Oura <uratec@xxxxxxxxxxxxxxx>
- Date: Tue, 30 Dec 2014 13:37:04 +0900
- Cc: Keiichiro Oura <uratec@xxxxxxxxxxxx>
- Delivered-to: hts-users@xxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Gj65S9qFUPSjneyQyl93dphc5nuu3TZhTJA0KRDUvVo=; b=pdgldNVHtViIdX99IMeuer8fUKWRdLN4vEbr09PxePzt6BhIm52ao7EeR/6cmnPk03 E5ywGW+iTs4/xIUv5eqBYFt56AssPHVdlb4kxze4gjc4pGowWqYoIAN72bGQxScwlTkE QhUiS0GB0M4fMo8pgWJO5MNQ0sDpdwspRlntmetMlqn5b4LkYMwFbU3AiSc/VBrmM6UN Ig8mPpCIHHaPE5nCB+rQWZ7qL/12Ms14TDAbPgKQejxBOPvtgZWNt/oR7BbaGCIf3RGj aIMrYYiII0hZKeU5rnN6YaWB4rpTV19W3GAG962IYEMaknGQUGuMV4qsKlb+IeEz7K/n aDNQ==
Hi,
Thank you for your report.
I changed the place of CreateVector()/CreateDVector() in HGen.c.
The patch was attached.
Is it OK for your compiler ?
Regards,
Keiichiro Oura
2014-12-30 4:50 GMT+09:00 Merlijn Blaauw <merlijn.blaauw@xxxxxxx>:
> When compiling HTS (2.3alpha/beta) for Windows with MSVC2008 (or any C89
> compiler probably), there's a small issue related to intermingling variable
> declarations and code.
> This occurs only in the file HGen.c, functions GV_ParmGen() and
> SetupPdfStreams(), where CreateVector()/CreateDVector() are called before
> some following variable declarations.
>
> In my opinion it would be nice to fix this because all the rest of HTS
> compiles just fine out-of-the-box.
>
> I was hoping this might have been fixed with the 2.3beta release, but it
> wasn't..
>
> Thanks!
> Merlijn
>
>
Attachment:
20141230_hgen.patch
Description: Binary data
- Follow-Ups
-
- [hts-users:04195] Re: small C89 compilation issue with HGen.c, Merlijn Blaauw
- References
-
- [hts-users:04193] small C89 compilation issue with HGen.c, Merlijn Blaauw