Changeset 2b20947 in mainline for uspace/lib/libc


Ignore:
Timestamp:
2007-09-15T14:47:57Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0edf5f
Parents:
d0b72c4
Message:

VFS work.
Delve deeper into VFS_REGISTER.

Location:
uspace/lib/libc/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ctype.h

    rd0b72c4 r2b20947  
    3636#define LIBC_CTYPE_H_
    3737
     38static inline int islower(int c)
     39{
     40        return ((c >= 'a') && (c <= 'z'));
     41}
     42
     43static inline int isupper(int c)
     44{
     45        return ((c >= 'A') && (c <= 'Z'));
     46}
     47
    3848static inline int isalpha(int c)
    3949{
    40         return (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')));
     50        return (islower(c) || isupper(c));
    4151}
    4252
  • uspace/lib/libc/include/libadt/hash_table.h

    rd0b72c4 r2b20947  
    5656        /** Hash function.
    5757         *
    58          * @param key Array of keys needed to compute hash index. All keys must be passed.
     58         * @param key   Array of keys needed to compute hash index. All keys
     59         *              must be passed.
    5960         *
    60          * @return Index into hash table.
     61         * @return      Index into hash table.
    6162         */
    6263        hash_index_t (* hash)(unsigned long key[]);
     
    6465        /** Hash table item comparison function.
    6566         *
    66          * @param key Array of keys that will be compared with item. It is not necessary to pass all keys.
     67         * @param key   Array of keys that will be compared with item. It is
     68         *              not necessary to pass all keys.
    6769         *
    68          * @return true if the keys match, false otherwise.
     70         * @return      true if the keys match, false otherwise.
    6971         */
    7072        int (*compare)(unsigned long key[], hash_count_t keys, link_t *item);
     
    7274        /** Hash table item removal callback.
    7375         *
    74          * @param item Item that was removed from the hash table.
     76         * @param item  Item that was removed from the hash table.
    7577         */
    7678        void (*remove_callback)(link_t *item);
Note: See TracChangeset for help on using the changeset viewer.