comparison gcc/intl.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Message translation utilities. 1 /* Message translation utilities.
2 Copyright (C) 2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010 2 Copyright (C) 2001-2017 Free Software Foundation, Inc.
3 Free Software Foundation, Inc.
4 3
5 This file is part of GCC. 4 This file is part of GCC.
6 5
7 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
139 138
140 char * 139 char *
141 get_spaces (const char *str) 140 get_spaces (const char *str)
142 { 141 {
143 size_t len = gcc_gettext_width (str); 142 size_t len = gcc_gettext_width (str);
144 char *spaces = XNEWVEC(char, len + 1); 143 char *spaces = XNEWVEC (char, len + 1);
145 memset (spaces, ' ', len); 144 memset (spaces, ' ', len);
146 spaces[len] = '\0'; 145 spaces[len] = '\0';
147 return spaces; 146 return spaces;
148 } 147 }
149 148