File: support.h

package info (click to toggle)
rdiff-backup-fs 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: ansic: 3,002; python: 231; makefile: 26
file content (17 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (5)
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