File: checks.h

package info (click to toggle)
reprepro 4.2.0-2squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,016 kB
  • ctags: 3,674
  • sloc: ansic: 46,905; sh: 13,899; pascal: 160; makefile: 159; python: 138
file content (16 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef REPREPRO_CHECKS_H
#define REPREPRO_CHECKS_H

/* return NULL if no problem, statically allocated string otherwise */

typedef const char *checkfunc(const char *);

const char *checkfordirectoryandidentifier(const char *);
#define checkforcomponent checkfordirectoryandidentifier
#define checkforcodename checkfordirectoryandidentifier
const char *checkforidentifierpart(const char *);
#define checkforarchitecture checkforidentifierpart

/* not yet used */
static inline void checkerror_free(UNUSED(const char *dummy)) {};
#endif