comparison src/gui-x.c @ 647:b39c14581166

[xemacs-hg @ 2001-08-13 04:45:47 by ben] removal of unsigned, size_t, etc.
author ben
date Mon, 13 Aug 2001 04:46:48 +0000
parents 183866b06e0b
children fdefd0186b75
comparison
equal deleted inserted replaced
646:00c54252fe4f 647:b39c14581166
41 #include "glyphs.h" 41 #include "glyphs.h"
42 #include "redisplay.h" 42 #include "redisplay.h"
43 #include "opaque.h" 43 #include "opaque.h"
44 44
45 /* we need a unique id for each popup menu, dialog box, and scrollbar */ 45 /* we need a unique id for each popup menu, dialog box, and scrollbar */
46 static unsigned int lwlib_id_tick; 46 static LWLIB_ID lwlib_id_tick;
47 47
48 LWLIB_ID 48 LWLIB_ID
49 new_lwlib_id (void) 49 new_lwlib_id (void)
50 { 50 {
51 return ++lwlib_id_tick; 51 return ++lwlib_id_tick;
369 369
370 if (found_accel) 370 if (found_accel)
371 LISP_STRING_TO_EXTERNAL_MALLOC (string, retval, Qlwlib_encoding); 371 LISP_STRING_TO_EXTERNAL_MALLOC (string, retval, Qlwlib_encoding);
372 else 372 else
373 { 373 {
374 size_t namelen = XSTRING_LENGTH (string); 374 Bytecount namelen = XSTRING_LENGTH (string);
375 Bufbyte *chars = (Bufbyte *) alloca (namelen + 3); 375 Bufbyte *chars = (Bufbyte *) alloca (namelen + 3);
376 chars[0] = '%'; 376 chars[0] = '%';
377 chars[1] = '_'; 377 chars[1] = '_';
378 memcpy (chars + 2, name, namelen + 1); 378 memcpy (chars + 2, name, namelen + 1);
379 C_STRING_TO_EXTERNAL_MALLOC (chars, retval, Qlwlib_encoding); 379 C_STRING_TO_EXTERNAL_MALLOC (chars, retval, Qlwlib_encoding);