From 0bb7c9d10935b320ada567dc0e46f3b23eea2793 Mon Sep 17 00:00:00 2001 From: oharboe Date: Sun, 6 Jul 2008 19:56:15 +0000 Subject: fix a few compilation problems. git-svn-id: svn://svn.berlios.de/openocd/trunk@758 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/openocd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 5439ece0..197c2e32 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -625,7 +625,12 @@ void initJim(void) interp->cb_fgets = openocd_jim_fgets; } -int main(int argc, char *argv[]) +/* +normally this is the main() function entry, but if OpenOCD is linked +into application, then this fn will not be invoked, but rather that +application will have it's own implementation of main(). +*/ +int openocd_main(int argc, char *argv[]) { initJim(); -- cgit v1.2.3