Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Windows doesn't have strtok_r, so let's use strtok_s instead.
Date: 2012-02-19 13:52:37
Message-ID: 20120219135237.GA22320@feivel.credativ.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Sat, Feb 18, 2012 at 03:12:21PM -0500, Andrew Dunstan wrote:
> Sorry, it looks like I was mistaken, and neither of these is
> available on mingw. Could you just use plain strtok(), possibly on a
> copy of the string?

I got tired of worrying about these differences and simply wrote the code
needed directly in ecpglib. Hopefully this will put this problem to rest.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2012-02-19 16:50:37 pgsql: Improve pretty printing of viewdefs.
Previous Message Michael Meskes 2012-02-19 13:50:43 pgsql: In ecpglib rewrote code that used strtok_r to not use library fu