Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove more unused code. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit d6d60bb4570fe04e92162988007b39037637954c
parent 88e512d6b6c80963bb5c123b7daaf48298fb86c7
Author: Rob King <[email protected]>
Date: Tue, 6 Sep 2016 17:40:07 -0500
Remove more unused code.
Diffstat:
libframe/misc.c | 44 -------------------------------
1 file changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/libframe/misc.c b/libframe/misc.c
@@ -35,47 +35,3 @@ getuser(void)
user = "unknown";
return user;
}
-
-#ifdef NEEDSTRERROR
-char *
-strerror(int n)
-{
- extern char *sys_errlist[];
- return sys_errlist[n];
-}
-#endif /* NEEDSTRERROR */
-
-#ifdef NEEDMEMMOVE
-/*
- * memcpy is probably fast, but may not work with overlap
- */
-void*
-memmove(void *a1, const void *a2, size_t n)
-{
- char *s1;
- const char *s2;
-
- s1 = a1;
- s2 = a2;
- if(s1 > s2)
- goto back;
- if(s1 + n <= s2)
- return memcpy(a1, a2, n);
- while(n > 0) {
- *s1++ = *s2++;
- n--;
- }
- return a1;
-
-back:
- s2 += n;
- if(s2 <= s1)
- return memcpy(a1, a2, n);
- s1 += n;
- while(n > 0) {
- *--s1 = *--s2;
- n--;
- }
- return a1;
-}
-#endif /* NEEDMEMMOVE */
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.