File: support.h

package info (click to toggle)
rdiff-backup-fs 1.0.0-8
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 952 kB
  • sloc: sh: 3,800; ansic: 2,944; makefile: 23
file content (17 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SUPPORT_H_
#define _SUPPORT_H_

#define set_path(path, repo, revision, internal) {							\
	if (repo == NULL)														\
		if (revision == NULL)												\
			gmstrcpy(&path, "/", internal, NULL);							\
		else																\
			gmstrcpy(&path, "/", revision, "/", internal, NULL);			\
	else																	\
		if (revision == NULL)												\
			gmstrcpy(&path, "/", repo, "/", internal, NULL);				\
		else																\
			gmstrcpy(&path, "/", repo, "/", revision, "/", internal, NULL);	\
}

#endif