xwords/xwords4/relay/strwpf.h
Eric House e82589a526 replace overloaded method with diff-named one, avoiding call to wrong
one when compiled on old 32-bit Atom. 32-bit issue, or what?  This is
quick and sure to fix it. Should be grafted back to main branch.
2014-11-10 06:43:42 -08:00

38 lines
1.2 KiB
C

/* -*-mode: C; fill-column: 78; c-basic-offset: 4; -*- */
/*
* Copyright 2013 by Eric House (xwords@eehouse.org). All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef _STRWPF_H_
#define _STRWPF_H_
#include <string>
#include <stdarg.h>
class StrWPF : public std::string {
public:
StrWPF() : m_addsiz(100){}
void catf( const char* fmt, ... );
/* Don't overload catf: some compilers use the wrong one, maybe on
32-bit? */
bool catfap( const char* fmt, va_list ap );
private:
int m_addsiz;
};
#endif