texlive[52624] Build/source/texk/kpathsea: remove register

commits+karl at tug.org commits+karl at tug.org
Sun Nov 3 20:08:40 CET 2019


Revision: 52624
          http://tug.org/svn/texlive?view=revision&revision=52624
Author:   karl
Date:     2019-11-03 20:08:40 +0100 (Sun, 03 Nov 2019)
Log Message:
-----------
remove register declarations

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/progname.c

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2019-11-03 19:06:54 UTC (rev 52623)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2019-11-03 19:08:40 UTC (rev 52624)
@@ -1,3 +1,8 @@
+2019-11-03  Karl Berry  <karl at tug.org>
+
+	* progname.c: remove nowadays-useless register declarations.
+	Mentioned by Doug McKenna.
+
 2019-10-10  Karl Berry  <karl at tug.org>
 
 	* texmf.cnf (LUAINPUTS.luahblatex{,-dev}): define a la other

Modified: trunk/Build/source/texk/kpathsea/progname.c
===================================================================
--- trunk/Build/source/texk/kpathsea/progname.c	2019-11-03 19:06:54 UTC (rev 52623)
+++ trunk/Build/source/texk/kpathsea/progname.c	2019-11-03 19:08:40 UTC (rev 52624)
@@ -85,7 +85,7 @@
 static void
 ReadSymLink (char *fn, char *sym)
 {
-  register int n = readlink (fn, sym, BSIZE);
+  int n = readlink (fn, sym, BSIZE);
   if (n < 0) {
     perror (fn);
     exit (1);
@@ -97,10 +97,10 @@
 /* Strip first component from S, and also return it in a static buffer.  */
 
 static char *
-StripFirst (register char *s)
+StripFirst (char *s)
 {
   static char buf[BSIZE];
-  register char *s1;
+  char *s1;
 
   /* Find the end of the first path element */
   for (s1 = s; *s1 && (*s1 != '/' || s1 == s); s1++)
@@ -125,10 +125,10 @@
 /* Strip last component from S, and also return it in a static buffer.  */
 
 static char *
-StripLast (register char *s)
+StripLast (char *s)
 {
   static char buf[BSIZE];
-  register char *s1;
+  char *s1;
 
   for (s1 = s + strlen (s); s1 > s && *s1 != '/'; s1--)
     ;
@@ -142,9 +142,9 @@
 /* Copy first path element from B to A, removing it from B.  */
 
 static void
-CopyFirst (register char *a, char *b)
+CopyFirst (char *a, char *b)
 {
-  register int length = strlen (a);
+  int length = strlen (a);
 
    if (length > 0 && a[length - 1] != '/') {
    a[length] = '/';



More information about the tex-live-commits mailing list