~ubuntu-branches/ubuntu/trusty/exuberant-ctags/trusty-updates

« back to all changes in this revision

Viewing changes to strlist.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2006-07-31 09:09:12 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20060731090912-rxe2jt8nz6g2k2zx
Tags: 1:5.6-1
* New upstream release (closes: #374097).
* Fix accidentally-unrendered line in ctags(1) (closes: #271323).
* Policy version 3.7.2: no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
*   $Id: strlist.h,v 1.3 2002/02/17 06:04:32 darren Exp $
 
2
*   $Id: strlist.h,v 1.7 2006/05/30 04:37:13 darren Exp $
3
3
*
4
4
*   Copyright (c) 1999-2002, Darren Hiebert
5
5
*
14
14
/*
15
15
*   INCLUDE FILES
16
16
*/
17
 
#include "general.h"    /* must always come first */
 
17
#include "general.h"  /* must always come first */
18
18
 
19
19
#include "vstring.h"
20
20
 
22
22
*   DATA DECLARATIONS
23
23
*/
24
24
typedef struct sStringList {
25
 
    unsigned int max;
26
 
    unsigned int count;
27
 
    vString **list;
 
25
        unsigned int max;
 
26
        unsigned int count;
 
27
        vString    **list;
28
28
} stringList;
29
29
 
30
30
/*
32
32
*/
33
33
extern stringList *stringListNew (void);
34
34
extern void stringListAdd (stringList *const current, vString *string);
 
35
extern void stringListRemoveLast (stringList *const current);
35
36
extern void stringListCombine (stringList *const current, stringList *const from);
36
37
extern stringList* stringListNewFromArgv (const char* const* const list);
37
38
extern stringList* stringListNewFromFile (const char* const fileName);
38
39
extern void stringListClear (stringList *const current);
39
40
extern unsigned int stringListCount (const stringList *const current);
40
41
extern vString* stringListItem (const stringList *const current, const unsigned int indx);
 
42
extern vString* stringListLast (const stringList *const current);
41
43
extern void stringListDelete (stringList *const current);
42
44
extern boolean stringListHasInsensitive (const stringList *const current, const char *const string);
43
45
extern boolean stringListHas (const stringList *const current, const char *const string);
44
46
extern boolean stringListHasTest (const stringList *const current, boolean (*test)(const char *s));
 
47
extern boolean stringListRemoveExtension (stringList* const current, const char* const extension);
45
48
extern boolean stringListExtensionMatched (const stringList* const list, const char* const extension);
46
49
extern boolean stringListFileMatched (const stringList* const list, const char* const str);
47
50
extern void stringListPrint (const stringList *const current);
48
51
 
49
 
#endif  /* _STRLIST_H */
 
52
#endif  /* _STRLIST_H */
50
53
 
51
 
/* vi:set tabstop=8 shiftwidth=4: */
 
54
/* vi:set tabstop=4 shiftwidth=4: */