mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
minor format modifications to reduce diffs with latest wine sources to simplify updating.
mainly just updated with LGPL license in headers. svn path=/trunk/; revision=3837
This commit is contained in:
parent
5e2ff077e8
commit
f2a2cbc0d9
11 changed files with 161 additions and 3 deletions
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WMC_LANG_H
|
#ifndef __WMC_LANG_H
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -3,6 +3,22 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* NOTES:
|
||||||
|
*
|
||||||
* The basic grammar of the file is yet another example of, humpf,
|
* The basic grammar of the file is yet another example of, humpf,
|
||||||
* design. There is is mix of context-insensitive and -sentitive
|
* design. There is is mix of context-insensitive and -sentitive
|
||||||
* stuff, which makes it rather complicated.
|
* stuff, which makes it rather complicated.
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 1998,2000 Bertho A. Stultiens
|
* Copyright 1998,2000 Bertho A. Stultiens
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 1998,2000 Bertho A. Stultiens (BS)
|
* Copyright 1998,2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WMC_UTILS_H
|
#ifndef __WMC_UTILS_H
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WMC_WMC_H
|
#ifndef __WMC_WMC_H
|
||||||
|
@ -71,6 +84,15 @@ void add_token(tok_e type, const WCHAR *name, int tok, int cp, const WCHAR *alia
|
||||||
token_t *lookup_token(const WCHAR *s);
|
token_t *lookup_token(const WCHAR *s);
|
||||||
void get_tokentable(token_t **tab, int *len);
|
void get_tokentable(token_t **tab, int *len);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
#define _alloca alloca
|
#define _alloca alloca
|
||||||
|
//#define alloca __builtin_alloca
|
||||||
|
#else /* not GNU C. */
|
||||||
|
//#define alloca __builtin_alloca
|
||||||
|
|
||||||
|
#pragma warning (disable:4305) // 'initializing' : truncation from 'const int ' to 'const char '
|
||||||
|
|
||||||
|
#endif /*__GNUC__*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WMC_WMCTYPES_H
|
#ifndef __WMC_WMCTYPES_H
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -88,7 +101,8 @@ static char *dup_u2c(int cp, const WCHAR *uc)
|
||||||
// if(!cpdef)
|
// if(!cpdef)
|
||||||
// internal_error(__FILE__, __LINE__, "Codepage %d not found (vanished?)", cp);
|
// internal_error(__FILE__, __LINE__, "Codepage %d not found (vanished?)", cp);
|
||||||
// if((len = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
|
// if((len = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
|
||||||
if((len = WideCharToMultiByte(cp, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
|
if((len = WideCharToMultiByte(cp, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
|
||||||
|
|
||||||
internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", len);
|
internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", len);
|
||||||
return cptr;
|
return cptr;
|
||||||
}
|
}
|
||||||
|
@ -378,7 +392,8 @@ static char *make_string(WCHAR *uc, int len, int codepage)
|
||||||
|
|
||||||
// assert(cpdef != NULL);
|
// assert(cpdef != NULL);
|
||||||
// if((i = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
|
// if((i = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
|
||||||
if((i = WideCharToMultiByte(codepage, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
|
if((i = WideCharToMultiByte(codepage, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
|
||||||
|
|
||||||
internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", i);
|
internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", i);
|
||||||
*cptr++ = ' ';
|
*cptr++ = ' ';
|
||||||
*cptr++ = '"';
|
*cptr++ = '"';
|
||||||
|
@ -435,7 +450,8 @@ static char *make_string(WCHAR *uc, int len, int codepage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char *make_bin_string(WCHAR *uc, int len, int *retlen, int codepage)
|
static char *make_bin_string(WCHAR *uc, int len, int *retlen, int codepage)
|
||||||
|
|
||||||
{
|
{
|
||||||
char *str = xmalloc(7 * len + 1);
|
char *str = xmalloc(7 * len + 1);
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -3,6 +3,19 @@
|
||||||
*
|
*
|
||||||
* Copyright 2000 Bertho A. Stultiens (BS)
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
||||||
*
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library 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
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#ifndef __WMC_WRITE_H
|
#ifndef __WMC_WRITE_H
|
||||||
#define __WMC_WRITE_H
|
#define __WMC_WRITE_H
|
||||||
|
|
Loading…
Reference in a new issue