Browse Source

Commend out incompatible builtins

We need to fix these protos, but for now, the warnings are overloading me
Ronald G. Minnich 5 years ago
parent
commit
e1d1c74245
1 changed files with 52 additions and 52 deletions
  1. 52 52
      sys/include/libc.h

+ 52 - 52
sys/include/libc.h

@@ -18,34 +18,34 @@
  * mem routines
  */
 extern	void*	memccpy(void*, void*, int, uint32_t);
-extern	void*	memset(void*, int, uint32_t);
-extern	int	memcmp(void*, void*, uint32_t);
-extern	void*	memcpy(void*, void*, uint32_t);
-extern	void*	memmove(void*, void*, uint32_t);
-extern	void*	memchr(void*, int, uint32_t);
+//extern	void*	memset(void*, int, uint32_t);
+//extern	int	memcmp(void*, void*, uint32_t);
+//extern	void*	memcpy(void*, void*, uint32_t);
+//extern	void*	memmove(void*, void*, uint32_t);
+//extern	void*	memchr(void*, int, uint32_t);
 
 /*
  * string routines
  */
-extern	char*	strcat(char*, char*);
-extern	char*	strchr(char*, int);
-extern	int	strcmp(char*, char*);
-extern	char*	strcpy(char*, char*);
+//extern	char*	strcat(char*, char*);
+//extern	char*	strchr(char*, int);
+//extern	int	strcmp(char*, char*);
+//extern	char*	strcpy(char*, char*);
 extern	char*	strecpy(char*, char*, char*);
-extern	char*	strdup(char*);
-extern	char*	strncat(char*, char*, int32_t);
-extern	char*	strncpy(char*, char*, int32_t);
-extern	int	strncmp(char*, char*, int32_t);
-extern	char*	strpbrk(char*, char*);
-extern	char*	strrchr(char*, int);
-extern	char*	strtok(char*, char*);
-extern	int32_t	strlen(char*);
-extern	int32_t	strspn(char*, char*);
-extern	int32_t	strcspn(char*, char*);
-extern	char*	strstr(char*, char*);
-extern	int	cistrncmp(char*, char*, int);
-extern	int	cistrcmp(char*, char*);
-extern	char*	cistrstr(char*, char*);
+//extern	char*	strdup(char*);
+//extern	char*	strncat(char*, char*, int32_t);
+//extern	char*	strncpy(char*, char*, int32_t);
+//extern	int	strncmp(char*, char*, int32_t);
+//extern	char*	strpbrk(char*, char*);
+//extern	char*	strrchr(char*, int);
+//extern	char*	strtok(char*, char*);
+//extern	int32_t	strlen(char*);
+//extern	int32_t	strspn(char*, char*);
+//extern	int32_t	strcspn(char*, char*);
+//extern	char*	strstr(char*, char*);
+//extern	int	cistrncmp(char*, char*, int);
+//extern	int	cistrcmp(char*, char*);
+//extern	char*	cistrstr(char*, char*);
 extern	int	tokenize(char*, char**, int);
 
 enum
@@ -73,18 +73,18 @@ extern	char*	utfrrune(char*, int32_t);
 extern	char*	utfutf(char*, char*);
 extern	char*	utfecpy(char*, char*, char*);
 
-extern	Rune*	runestrcat(Rune*, Rune*);
-extern	Rune*	runestrchr(Rune*, Rune);
-extern	int	runestrcmp(Rune*, Rune*);
-extern	Rune*	runestrcpy(Rune*, Rune*);
-extern	Rune*	runestrncpy(Rune*, Rune*, int32_t);
+//extern	Rune*	runestrcat(Rune*, Rune*);
+//extern	Rune*	runestrchr(Rune*, Rune);
+//extern	int	runestrcmp(Rune*, Rune*);
+//extern	Rune*	runestrcpy(Rune*, Rune*);
+//extern	Rune*	runestrncpy(Rune*, Rune*, int32_t);
 extern	Rune*	runestrecpy(Rune*, Rune*, Rune*);
-extern	Rune*	runestrdup(Rune*);
-extern	Rune*	runestrncat(Rune*, Rune*, int32_t);
-extern	int	runestrncmp(Rune*, Rune*, int32_t);
-extern	Rune*	runestrrchr(Rune*, Rune);
-extern	int32_t	runestrlen(Rune*);
-extern	Rune*	runestrstr(Rune*, Rune*);
+//extern	Rune*	runestrdup(Rune*);
+//extern	Rune*	runestrncat(Rune*, Rune*, int32_t);
+//extern	int	runestrncmp(Rune*, Rune*, int32_t);
+//extern	Rune*	runestrrchr(Rune*, Rune);
+//extern	int32_t	runestrlen(Rune*);
+//extern	Rune*	runestrstr(Rune*, Rune*);
 
 extern	Rune	tolowerrune(Rune);
 extern	Rune	totitlerune(Rune);
@@ -99,20 +99,20 @@ extern	int	istitlerune(Rune);
 extern	int	isupperrune(Rune);
 
 /*
- * malloc
+// * malloc
  */
-extern	void*	malloc(uint32_t);
-extern	void*	mallocz(uint32_t, int);
+//extern	void*	malloc(uint32_t);
+//extern	void*	mallocz(uint32_t, int);
 extern	void	free(void*);
 extern	uint32_t	msize(void*);
-extern	void*	mallocalign(uint32_t, uint32_t, int32_t, uint32_t);
-extern	void*	calloc(uint32_t, uint32_t);
-extern	void*	realloc(void*, uint32_t);
-extern	void	setmalloctag(void*, uint32_t);
-extern	void	setrealloctag(void*, uint32_t);
-extern	uint32_t	getmalloctag(void*);
-extern	uint32_t	getrealloctag(void*);
-extern	void*	malloctopoolblock(void*);
+//extern	void*	mallocalign(uint32_t, uint32_t, int32_t, uint32_t);
+//extern	void*	calloc(uint32_t, uint32_t);
+//extern	void*	realloc(void*, uint32_t);
+//extern	void	setmalloctag(void*, uint32_t);
+//extern	void	setrealloctag(void*, uint32_t);
+//extern	uint32_t	getmalloctag(void*);
+//extern	uint32_t	getrealloctag(void*);
+//extern	void*	malloctopoolblock(void*);
 
 /*
  * print routines
@@ -242,8 +242,8 @@ extern	int	dorfmt(Fmt*, Rune*);
 extern	int	fmtprint(Fmt*, char*, ...);
 extern	int	fmtvprint(Fmt*, char*, va_list);
 extern	int	fmtrune(Fmt*, int);
-extern	int	fmtstrcpy(Fmt*, char*);
-extern	int	fmtrunestrcpy(Fmt*, Rune*);
+//extern	int	fmtstrcpy(Fmt*, char*);
+//extern	int	fmtrunestrcpy(Fmt*, Rune*);
 /*
  * error string for %r
  * supplied on per os basis, not part of fmt library
@@ -253,10 +253,10 @@ extern	int	errfmt(Fmt *f);
 /*
  * quoted strings
  */
-extern	char	*unquotestrdup(char*);
-extern	Rune	*unquoterunestrdup(Rune*);
-extern	char	*quotestrdup(char*);
-extern	Rune	*quoterunestrdup(Rune*);
+//extern	char	*unquotestrdup(char*);
+//extern	Rune	*unquoterunestrdup(Rune*);
+//extern	char	*quotestrdup(char*);
+//extern	Rune	*quoterunestrdup(Rune*);
 extern	int	quotestrfmt(Fmt*);
 extern	int	quoterunestrfmt(Fmt*);
 extern	void	quotefmtinstall(void);
@@ -382,7 +382,7 @@ extern	int	gettokens(char *, char **, int, char *);
 extern	char*	getuser(void);
 extern	char*	getwd(char*, int);
 extern	int	iounit(int);
-extern	int32_t	labs(int32_t);
+//extern	int32_t	labs(int32_t);
 extern	double	ldexp(double, int);
 extern	void	longjmp(jmp_buf, int);
 extern	char*	mktemp(char*);