~ubuntu-branches/debian/experimental/geany/experimental

« back to all changes in this revision

Viewing changes to tagmanager/strlist.h

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (3.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
 
2
*   $Id: strlist.h 1563 2007-05-23 14:26:52Z eht16 $
2
3
*
3
 
*   Copyright (c) 1999-2001, Darren Hiebert
 
4
*   Copyright (c) 1999-2002, Darren Hiebert
4
5
*
5
6
*   This source code is released for free distribution under the terms of the
6
7
*   GNU General Public License.
13
14
/*
14
15
*   INCLUDE FILES
15
16
*/
16
 
#include "general.h"    /* must always come first */
 
17
#include "general.h"  /* must always come first */
17
18
 
18
19
#include "vstring.h"
19
20
 
21
22
*   DATA DECLARATIONS
22
23
*/
23
24
typedef struct sStringList {
24
 
    unsigned int max;
25
 
    unsigned int count;
26
 
    vString **list;
 
25
        unsigned int max;
 
26
        unsigned int count;
 
27
        vString    **list;
27
28
} stringList;
28
29
 
29
30
/*
31
32
*/
32
33
extern stringList *stringListNew (void);
33
34
extern void stringListAdd (stringList *const current, vString *string);
 
35
extern void stringListRemoveLast (stringList *const current);
34
36
extern void stringListCombine (stringList *const current, stringList *const from);
35
37
extern stringList* stringListNewFromArgv (const char* const* const list);
36
38
extern stringList* stringListNewFromFile (const char* const fileName);
37
39
extern void stringListClear (stringList *const current);
38
40
extern unsigned int stringListCount (const stringList *const current);
39
41
extern vString* stringListItem (const stringList *const current, const unsigned int indx);
 
42
extern vString* stringListLast (const stringList *const current);
40
43
extern void stringListDelete (stringList *const current);
41
44
extern boolean stringListHasInsensitive (const stringList *const current, const char *const string);
42
45
extern boolean stringListHas (const stringList *const current, const char *const string);
43
 
extern boolean stringListHasFile (const stringList *const current, const char *const file);
 
46
extern boolean stringListHasTest (const stringList *const current, boolean (*test)(const char *s));
 
47
extern boolean stringListRemoveExtension (stringList* const current, const char* const extension);
44
48
extern boolean stringListExtensionMatched (const stringList* const list, const char* const extension);
45
49
extern boolean stringListFileMatched (const stringList* const list, const char* const str);
46
50
extern void stringListPrint (const stringList *const current);
47
51
 
48
 
#endif  /* _STRLIST_H */
 
52
#endif  /* _STRLIST_H */
49
53
 
50
 
/* vi:set tabstop=8 shiftwidth=4: */
 
54
/* vi:set tabstop=4 shiftwidth=4: */