dxx-rebirth/common/main/escort.h
Kp 9de54cfa74 Switch to C++ linkage
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
	if line == cxxguard:
		guard = 1
		continue
	if guard:
		if line == 'extern "C" {\n':
			guard = 2
			continue
		if line == '}\n':
			guard = 0
			continue
		if guard == 2:
			assert(line == '#endif\n')
			guard = 0
			print cxxguard,
			continue
	print line,
2013-12-06 03:35:32 +00:00

39 lines
753 B
C

/*
*
* Header for escort.c
*
*/
#ifndef _ESCORT_H
#define _ESCORT_H
#include "maths.h"
#ifdef __cplusplus
#if defined(DXX_BUILD_DESCENT_I)
static inline void invalidate_escort_goal(void)
{
}
static inline void detect_escort_goal_accomplished(int index)
{
(void)index;
}
#elif defined(DXX_BUILD_DESCENT_II)
#define GUIDEBOT_NAME_LEN 9
struct object;
extern void change_guidebot_name(void);
extern void do_escort_menu(void);
extern void detect_escort_goal_accomplished(int index);
extern void set_escort_special_goal(int key);
void recreate_thief(struct object *objp);
void init_buddy_for_level(void);
void invalidate_escort_goal(void);
void drop_stolen_items (struct object *);
extern fix64 Buddy_sorry_time;
#endif
#endif
#endif // _ESCORT_H