From 70f6901c3dbe6f09c7fc3ebdb18f715915635d70 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Thu, 14 Jun 2012 13:48:18 -0700 Subject: [PATCH] libc: make atoi, atol, and atoll pure functions Change-Id: Ib831c079c865929b6c91d42f35e117f2e974808f --- libc/include/stdlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index e5caaddac..9c0e55688 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -74,9 +74,9 @@ static __inline__ float strtof(const char *nptr, char **endptr) return (float)strtod(nptr, endptr); } -extern int atoi(const char *); -extern long atol(const char *); -extern long long atoll(const char *); +extern int atoi(const char *) __purefunc; +extern long atol(const char *) __purefunc; +extern long long atoll(const char *) __purefunc; static __inline__ double atof(const char *nptr) {