Back to index

cell-binutils  2.17cvs20070401
winduni.h
Go to the documentation of this file.
00001 /* winduni.h -- header file for unicode support for windres program.
00002    Copyright 1997, 1998, 2002 Free Software Foundation, Inc.
00003    Written by Ian Lance Taylor, Cygnus Support.
00004 
00005    This file is part of GNU Binutils.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
00020    02110-1301, USA.  */
00021 
00022 #include "ansidecl.h"
00023 
00024 /* This header file declares the types and functions we use for
00025    unicode support in windres.  Our unicode support is very limited at
00026    present.
00027 
00028    We don't put this stuff in windres.h so that winduni.c doesn't have
00029    to include windres.h.  winduni.c needs to includes windows.h, and
00030    that would conflict with the definitions of Windows macros we
00031    already have in windres.h.  */
00032 
00033 /* We use this type to hold a unicode character.  */
00034 
00035 typedef unsigned short unichar;
00036 
00037 /* Escape character translations.  */
00038 
00039 #define ESCAPE_A (007)
00040 #define ESCAPE_B (010)
00041 #define ESCAPE_F (014)
00042 #define ESCAPE_N (012)
00043 #define ESCAPE_R (015)
00044 #define ESCAPE_T (011)
00045 #define ESCAPE_V (013)
00046 
00047 /* Convert an ASCII string to a unicode string.  */
00048 
00049 extern void unicode_from_ascii
00050   PARAMS ((int *, unichar **, const char *));
00051 
00052 /* Print a unicode string to a file.  */
00053 
00054 extern void unicode_print PARAMS ((FILE *, const unichar *, int));
00055 
00056 /* Windres support routine called by unicode_from_ascii.  This is both
00057    here and in windres.h.  It should probably be in a separate header
00058    file, but it hardly seems worth it for one function.  */
00059 
00060 extern PTR res_alloc PARAMS ((size_t));