mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
add missing files
This commit is contained in:
parent
7dc309cc3d
commit
2c7568723f
4 changed files with 106 additions and 0 deletions
4
xwords4/wasm/.gitignore
vendored
Normal file
4
xwords4/wasm/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
main.data
|
||||||
|
main.html
|
||||||
|
main.js
|
||||||
|
main.js.mem
|
71
xwords4/wasm/LocalizedStrIncludes.h
Normal file
71
xwords4/wasm/LocalizedStrIncludes.h
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
/* Copyright 2001 by Eric House (xwords@eehouse.org) (fixin@peak.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) any later version.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* This is the linux version of what's always been a palm file. There's
|
||||||
|
* probably a better way of doing this, but this is it for now.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _LOCALIZEDSTRINCLUDES_H_
|
||||||
|
#define _LOCALIZEDSTRINCLUDES_H_
|
||||||
|
|
||||||
|
enum {
|
||||||
|
STRD_REMAINING_TILES_ADD,
|
||||||
|
STRD_UNUSED_TILES_SUB,
|
||||||
|
STR_COMMIT_CONFIRM,
|
||||||
|
STR_SUBMIT_CONFIRM,
|
||||||
|
STRD_TURN_SCORE,
|
||||||
|
STR_BONUS_ALL,
|
||||||
|
STR_PENDING_PLAYER,
|
||||||
|
STRD_TIME_PENALTY_SUB,
|
||||||
|
|
||||||
|
STRD_CUMULATIVE_SCORE,
|
||||||
|
STRS_TRAY_AT_START,
|
||||||
|
STRS_MOVE_DOWN,
|
||||||
|
STRS_MOVE_ACROSS,
|
||||||
|
STRS_NEW_TILES,
|
||||||
|
STRSS_TRADED_FOR,
|
||||||
|
STR_PASS,
|
||||||
|
STR_PHONY_REJECTED,
|
||||||
|
STRD_ROBOT_TRADED,
|
||||||
|
STR_ROBOT_MOVED,
|
||||||
|
STRS_REMOTE_MOVED,
|
||||||
|
|
||||||
|
STRS_VALUES_HEADER,
|
||||||
|
STRD_REMAINS_HEADER,
|
||||||
|
STRD_REMAINS_EXPL,
|
||||||
|
|
||||||
|
STRSD_RESIGNED,
|
||||||
|
STRSD_WINNER,
|
||||||
|
STRDSD_PLACER,
|
||||||
|
|
||||||
|
STR_DUP_CLIENT_SENT,
|
||||||
|
STRDD_DUP_HOST_RECEIVED,
|
||||||
|
STR_DUP_MOVED,
|
||||||
|
STRD_DUP_TRADED,
|
||||||
|
STRSD_DUP_ONESCORE,
|
||||||
|
|
||||||
|
/* These three aren't in Android */
|
||||||
|
STR_LOCALPLAYERS,
|
||||||
|
STR_TOTALPLAYERS,
|
||||||
|
STR_REMOTE,
|
||||||
|
|
||||||
|
STR_LAST
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
26
xwords4/wasm/wasmutls.c
Normal file
26
xwords4/wasm/wasmutls.c
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include "wasmutls.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
wasm_debugf( const char* format, ... )
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start(ap, format);
|
||||||
|
vfprintf( stderr, format, ap );
|
||||||
|
va_end( ap );
|
||||||
|
fprintf( stderr, "\n" );
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
wasm_debugff( const char* func, const char* file, const char* fmt, ...)
|
||||||
|
{
|
||||||
|
char buf[1024];
|
||||||
|
snprintf( buf, sizeof(buf), "%s:%s(): %s", file, func, fmt );
|
||||||
|
va_list ap;
|
||||||
|
va_start( ap, fmt );
|
||||||
|
vfprintf( stderr, buf, ap );
|
||||||
|
va_end( ap );
|
||||||
|
fprintf( stderr, "\n" );
|
||||||
|
}
|
5
xwords4/wasm/wasmutls.h
Normal file
5
xwords4/wasm/wasmutls.h
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void wasm_debugf( const char* format, ... );
|
||||||
|
void wasm_debugff( const char* func, const char* file, const char* fmt, ...);
|
Loading…
Add table
Reference in a new issue