IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2006, 5:17:13 PM (20 years ago)
Author:
drobbin
Message:

Fixed memory leaks in psMetadataConfig (p_psMetadataKeyArray) from recent fix. Added some doxygen to psLine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLine.h

    r7380 r7847  
    77#define PS_LINE_H
    88
    9 // structure to carry a dynamic string
     9/** Structure to carry a dynamic string */
    1010typedef struct
    1111{
    12     long NLINE;                 // allocated length
    13     long Nline;                 // current length
    14     char *line;                 // character string data
     12    long NLINE;                        ///< allocated length
     13    long Nline;                        ///< current length
     14    char *line;                        ///< character string data
    1515}
    1616psLine;
    1717
    18 // allocate a line object of length Nline
    19 psLine *psLineAlloc(long Nline);
     18/** Allocates a line object of length Nline
     19 *
     20 *  @return psLine*:        the newly allocated line object.
     21*/
     22psLine *psLineAlloc(
     23    long Nline                         ///<
     24);
    2025
    21 // (re-)init the line
    22 bool psLineInit(psLine *line);
     26/** Initializes or re-initializes a line.
     27 *
     28 *  Initializes or re-initializes a line, setting the current length to zero and setting
     29 *  the string data values to 0.  If the function is passed NULL, false is returned.
     30 *
     31 *  @return bool:       True if successful, otherwise false.
     32*/
     33bool psLineInit(
     34    psLine *line                       ///<
     35);
    2336
    24 // add the new string segment to the line
    25 bool psLineAdd(psLine *line, const char *format, ...);
     37/** Adds the line segment to the string.
     38 *
     39 *  Appends a line segment to the string, returning false if the new segment would
     40 *  overflow the allocated string length.
     41 *
     42 *  @return bool:        True if successful, otherwise false.
     43*/
     44bool psLineAdd(
     45    psLine *line,                      ///< the line segment to append
     46    const char *format,                ///< printf-style format of line
     47    ...                                ///< any parameters required in format
     48);
    2649
    2750#endif /* PS_LINE_H */
Note: See TracChangeset for help on using the changeset viewer.