From 73b71f381d24218cf6368364be723a7b5c9aeda9 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 18 Jul 2009 03:40:35 +0200 Subject: date: factor out date parsing (in preparation for touch -d) function old new delta parse_datestr - 391 +391 sha512_process_block128 1283 1310 +27 buffer_fill_and_print 179 196 +17 nexpr 826 840 +14 unzip_main 1931 1939 +8 popstring 134 140 +6 qrealloc 33 36 +3 builtin_umask 121 123 +2 evalvar 1365 1363 -2 changepath 194 192 -2 do_compress 1698 1688 -10 hwclock_main 340 329 -11 cmdputs 414 402 -12 identify 4343 4329 -14 date_main 1186 687 -499 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/7 up/down: 468/-550) Total: -82 bytes Signed-off-by: Denys Vlasenko --- include/libbb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 50b884188..9de52331b 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -437,6 +437,9 @@ struct BUG_too_small { }; +void parse_datestr(const char *date_str, struct tm *tm_time) FAST_FUNC; + + int xsocket(int domain, int type, int protocol) FAST_FUNC; void xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen) FAST_FUNC; void xlisten(int s, int backlog) FAST_FUNC; -- cgit v1.2.3