#include <time.h>
#include <signal.h>
#include <unistd.h>
+#include <setjmp.h>
#include "lisp.h"
#include "blockinput.h"
}
else if (!strncmp(name, "rgb:", 4)) /* A newer X11 format -- rgb:r/g/b */
{
- strcpy(hex, name + 4);
+ strncpy (hex, name + 4, 19);
+ hex[19] = '\0';
scaling = (strlen(hex) - 2) / 3;
}
else if (name[0] == '#') /* An old X11 format; convert to newer */
}
-- (NSInteger)conversationIdentifier
+- (long)conversationIdentifier
{
- return (NSInteger)self;
+ return (long)self;
}
last_hit_part = scroll_bar_move_ratio; break;
default: /* NSScrollerNoPart? */
fprintf (stderr, "EmacsScoller-mouseDown: unexpected part %ld\n",
- (long)part);
+ (long) part);
return;
}