diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/get_line_from_file.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.gz busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.tar.bz2 busybox-w32-defc1ea34074e7882724c460260d307cdf981a70.zip |
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename
808035 611 6868 815514 c719a busybox_old
804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/get_line_from_file.c')
-rw-r--r-- | libbb/get_line_from_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c index b88872d53..66ea5a1a5 100644 --- a/libbb/get_line_from_file.c +++ b/libbb/get_line_from_file.c | |||
@@ -16,7 +16,7 @@ | |||
16 | * must be free'ed by the caller. If end is NULL '\n' isn't considered | 16 | * must be free'ed by the caller. If end is NULL '\n' isn't considered |
17 | * end of line. If end isn't NULL, length of the chunk read is stored in it. | 17 | * end of line. If end isn't NULL, length of the chunk read is stored in it. |
18 | * Return NULL if EOF/error */ | 18 | * Return NULL if EOF/error */ |
19 | char *bb_get_chunk_from_file(FILE *file, int *end) | 19 | char* FAST_FUNC bb_get_chunk_from_file(FILE *file, int *end) |
20 | { | 20 | { |
21 | int ch; | 21 | int ch; |
22 | int idx = 0; | 22 | int idx = 0; |
@@ -49,7 +49,7 @@ char *bb_get_chunk_from_file(FILE *file, int *end) | |||
49 | } | 49 | } |
50 | 50 | ||
51 | /* Get line, including trailing \n if any */ | 51 | /* Get line, including trailing \n if any */ |
52 | char *xmalloc_fgets(FILE *file) | 52 | char* FAST_FUNC xmalloc_fgets(FILE *file) |
53 | { | 53 | { |
54 | int i; | 54 | int i; |
55 | 55 | ||
@@ -57,7 +57,7 @@ char *xmalloc_fgets(FILE *file) | |||
57 | } | 57 | } |
58 | 58 | ||
59 | /* Get line. Remove trailing \n */ | 59 | /* Get line. Remove trailing \n */ |
60 | char *xmalloc_fgetline(FILE *file) | 60 | char* FAST_FUNC xmalloc_fgetline(FILE *file) |
61 | { | 61 | { |
62 | int i; | 62 | int i; |
63 | char *c = bb_get_chunk_from_file(file, &i); | 63 | char *c = bb_get_chunk_from_file(file, &i); |