Commits

Mats Lidell committed 7ebbe33 Merge

Merge with trunk.

Comments (0)

Files changed (6)

+2011-01-10  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* dialog.el (make-dialog-box): Correct a misplaced parenthesis
+	here, thank you Mats Lidell in 87zkr9gqrh.fsf@mail.contactor.se !
+
 2011-01-02  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* dialog.el (make-dialog-box):
        (remf rest :modal)
        (if modal
            (dialog-box-modal-loop `(make-dialog-box-internal ',type ',rest))
-         (make-dialog-box-internal type rest))))
-    (t
-     (make-dialog-box-internal type rest))))
+         (make-dialog-box-internal type rest)))
+      (t
+       (make-dialog-box-internal type rest)))))
 
 (defun dialog-box-finish (result)
   "Exit a modal dialog box, returning RESULT.
+2011-01-11  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* lwlib-fonts.c (xft_open_font_by_name):
+	Replace the POSIX index(3), not universally available even today,
+	with the C89 strchr(3), hopefully fixing a few of the buildbots'
+	problems.
+
 2010-06-13  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* lwlib-internal.h: Correct FSF address in permission notice.

lwlib/lwlib-fonts.c

   int count = 0;
   char *pos = name;
   /* extra parens shut up gcc */
-  while ((pos = index (pos, '-')))
+  while ((pos = strchr (pos, '-')))
     {
       count++;
       pos++;
   if (count == 14		/* fully-qualified XLFD */
       || (count < 14		/* heuristic for wildcarded XLFD */
 	  && count >= 5
-	  && index (name, '*')))
+	  && strchr (name, '*')))
     res = XftFontOpenXlfd (dpy, DefaultScreen (dpy), name);
   else
     res = XftFontOpenName (dpy, DefaultScreen (dpy), name);
+2011-01-10  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* mc-alloc.c (get_used_list_index):
+	Replace some C++ comments with C-style /* comments.
+
 2011-01-02  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* fns.c (FdeleteX, FremoveX, Fnsubstitute, Fsubstitute, syms_of_fns): 
 {
   if (size <= USED_LIST_MIN_OBJECT_SIZE)
     {
-      //      printf ("size %d -> index %d\n", size, 0);
+      /*      printf ("size %d -> index %d\n", size, 0); */
       return 0;
     }
   if (size <= (size_t) USED_LIST_UPPER_THRESHOLD)
     {
-      //      printf ("size %d -> index %d\n", size, 
-      //	      ((size - USED_LIST_MIN_OBJECT_SIZE - 1)
-      //	       / USED_LIST_LIN_STEP) + 1);
+      /*      printf ("size %d -> index %d\n", size, */
+      /*	      ((size - USED_LIST_MIN_OBJECT_SIZE - 1) */
+      /*	       / USED_LIST_LIN_STEP) + 1); */
       return ((size - USED_LIST_MIN_OBJECT_SIZE - 1)
 	      / USED_LIST_LIN_STEP) + 1;
     }
-  //  printf ("size %d -> index %d\n", size, N_USED_PAGE_LISTS - 1);
+  /*  printf ("size %d -> index %d\n", size, N_USED_PAGE_LISTS - 1); */
   return N_USED_PAGE_LISTS - 1;
 }