Changeset aadf01e in mainline for uspace/srv/net/structures/char_map.h


Ignore:
Timestamp:
2010-03-07T15:13:28Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936835e
Parents:
aa85487
Message:

Coding style (no functional change)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/structures/char_map.h

    raa85487 raadf01e  
    4040/** Invalid assigned value used also if an&nbsp;entry does not exist.
    4141 */
    42 #define CHAR_MAP_NULL   ( -1 )
     42#define CHAR_MAP_NULL   (-1)
    4343
    4444/** Type definition of the character string to integer map.
     
    5959        /** Actually mapped character.
    6060         */
    61         char                    c;
     61        char c;
    6262        /** Stored integral value.
    6363         */
    64         int                             value;
     64        int value;
    6565        /** Next character array size.
    6666         */
    67         int                             size;
     67        int size;
    6868        /** First free position in the next character array.
    6969         */
    70         int                             next;
     70        int next;
    7171        /** Next character array.
    7272         */
    73         char_map_ref *  items;
     73        char_map_ref * items;
    7474        /** Consistency check magic value.
    7575         */
    76         int                             magic;
     76        int magic;
    7777};
    7878
     
    8989 *  @returns Other error codes as defined for the char_map_add_item() function.
    9090 */
    91 int     char_map_add( char_map_ref map, const char * identifier, size_t length, const int value );
     91int char_map_add(char_map_ref map, const char * identifier, size_t length, const int value);
    9292
    9393/** Clears and destroys the map.
    9494 *  @param[in,out] map The character string to integer map.
    9595 */
    96 void    char_map_destroy( char_map_ref map );
     96void char_map_destroy(char_map_ref map);
    9797
    9898/** Excludes the value assigned to the key from the map.
     
    104104 *  @returns CHAR_MAP_NULL if the key is not assigned a&nbsp;value.
    105105 */
    106 int     char_map_exclude( char_map_ref map, const char * identifier, size_t length );
     106int char_map_exclude(char_map_ref map, const char * identifier, size_t length);
    107107
    108108/** Returns the value assigned to the key from the map.
     
    113113 *  @returns CHAR_MAP_NULL if the key is not assigned a&nbsp;value.
    114114 */
    115 int     char_map_find( const char_map_ref map, const char * identifier, size_t length );
     115int char_map_find(const char_map_ref map, const char * identifier, size_t length);
    116116
    117117/** Initializes the map.
     
    121121 *  @returns ENOMEM if there is not enough memory left.
    122122 */
    123 int     char_map_initialize( char_map_ref map );
     123int char_map_initialize(char_map_ref map);
    124124
    125125/** Adds or updates the value with the key to the map.
     
    135135 *  @returns Other error codes as defined for the char_map_add_item() function.
    136136 */
    137 int     char_map_update( char_map_ref map, const char * identifier, size_t length, const int value );
     137int char_map_update(char_map_ref map, const char * identifier, size_t length, const int value);
    138138
    139139#endif
Note: See TracChangeset for help on using the changeset viewer.