diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-01 13:44:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-01 13:44:15 +0000 |
commit | be7181525a93d0b7499364115803130a18c1939d (patch) | |
tree | 223cad58108f466ee075c7aed65a88691f03d1f0 /Build/source/texk/seetexk | |
parent | 3d887290087ac01c8dddf9422088e5e2a26798da (diff) |
Eliminate use of BSD string functions (bcopy etc)
git-svn-id: svn://tug.org/texlive/trunk@31058 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/seetexk')
-rw-r--r-- | Build/source/texk/seetexk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/seetexk/dviselect.c | 6 | ||||
-rw-r--r-- | Build/source/texk/seetexk/types.h | 18 |
3 files changed, 6 insertions, 23 deletions
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog index 394c88a4819..97dde57b734 100644 --- a/Build/source/texk/seetexk/ChangeLog +++ b/Build/source/texk/seetexk/ChangeLog @@ -1,3 +1,8 @@ +2013-07-01 Peter Breitenlohner <peb@mppmu.mpg.de> + + * dviselect.c, types.h: Replace bcopy(f, t, l) => + memcpy(t, f, l). + 2013-06-28 Peter Breitenlohner <peb@mppmu.mpg.de> * dviconcat.c: Replace bcmp() => memcmp(). diff --git a/Build/source/texk/seetexk/dviselect.c b/Build/source/texk/seetexk/dviselect.c index 175ec6efbc0..a8a2dc33f4b 100644 --- a/Build/source/texk/seetexk/dviselect.c +++ b/Build/source/texk/seetexk/dviselect.c @@ -163,12 +163,6 @@ static int ParsePages(char *); static void HandleDVIFile(void); static void PutFontSelector(i32); -#ifdef _AMIGA -#define bcmp(s1, s2, len) memcmp(s1, s2, len) -#define bzero(s, len) memset(s, '\0', len) -#define index(s, c) strchr(s, c) -#endif /* _AMIGA */ - #ifndef KPATHSEA char *malloc(), *realloc(); #endif /* not KPATHSEA */ diff --git a/Build/source/texk/seetexk/types.h b/Build/source/texk/seetexk/types.h index e263acf36b9..2bb631769d8 100644 --- a/Build/source/texk/seetexk/types.h +++ b/Build/source/texk/seetexk/types.h @@ -59,7 +59,7 @@ * (The bcopy provided in lib/bcopy.c does handle overlap.) */ /* #define BLOCK_COPY(from, to, len) memmove(to, from, len) */ -#define BLOCK_COPY(from, to, len) bcopy(from, to, len) +#define BLOCK_COPY(from, to, len) memmove(to, from, len) /* * Define void as int if your compiler does not support void, @@ -75,22 +75,6 @@ */ #define HAVE_VPRINTF -/* - * If you have memcpy/memmove, but not bcopy, use the definition below. - * If you have neither, try the bcopy provided in lib/bcopy.c. - */ -#define bcopy(from, to, len) memmove(to, from, len) - -/* - * If you have memcmp, but not bcmp, use the definition below. - * If you have neither, try the bcmp provided in lib/bcmp.c. - */ -#define bcmp(s1, s2, len) memcmp(s1, s2, len) - -#define bzero(s, len) memset(s, '\0', len) - -#define index(s, c) strchr(s, c) - #endif /* KPATHSEA */ /* |