Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 522 → Rev 521

/trunk/language.c
21,10 → 21,21
#include "ff.h"
 
void strcpy_advance_id(TCHAR** str, int msgid) {
int len = FF_GetMsg(*str, msgid);
//TCHAR tmp[1000];
int len;
 
len = FF_GetMsg(*str, msgid);
 
*str += len;
 
//FF_GetMsg(&tmp[0], msgid);
//len = xstrlen(&tmp[0]);
if (len == 0) {
simplealert(TEXT("strcpy_advance_id ist len=0!"));
}
 
}
 
// Attention: No bounds checking!
int FF_GetMsg(TCHAR* ret, int MsgId) {
#ifdef WIN_ENV
65,6 → 76,7
// Attention: Requires FF_GetMsg_Free(), otherwise memory is leaked
TCHAR* FF_GetMsg_Cpy(int MsgId) {
#ifdef WIN_ENV
TCHAR* szMsg;
int len;
TCHAR* ret;
len = FF_GetMsg(NULL, MsgId);