Vassilis Virvilis
2005-May-30 11:10 UTC
[klibc] patch: porting module-init-tools 2/4: index
This is tiny and has no impact in klib size other that it is polluting the namespace. .bill -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-index-strchr.txt Type: text/x-diff Size: 355 bytes Desc: not available Url : http://www.vas.nu/pipermail/klibc/attachments/20050530/b7c96936/patch-index-strchr.bin
Vassilis Virvilis wrote:> This is tiny and has no impact in klib size other that it is polluting > the namespace. > > .bill > > > ------------------------------------------------------------------------ > > diff -ur ../klibc-orig/include/string.h ./include/string.h > --- ../klibc-orig/include/string.h 2005-05-20 16:00:56.000000000 +0300 > +++ ./include/string.h 2005-05-30 20:59:05.000000000 +0300 > @@ -41,4 +41,6 @@ > __extern char *strstr(const char *, const char *); > __extern char *strtok(char *, const char *); > > +#define index strchr > + > #endif /* _STRING_H */ >As a macro, that's pretty bad. Make it an inline function, that way it's not quite so egregorious. -hpa
Maybe Matching Threads
- blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
- blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
- module-init-tools ported to klibc
- blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]
- blazer_usb MEC0002 problem Fry's Electronics (Turbo-X) [HID PDC?]