+2005-06-25 Clinton Ebadi <clinton@unknownlamer.org>
+
+ * source/Main.C (real_main): Enable Guile debugging mode when
+ --debug is used
+
+ * source/Interp.C (interp_post_startup_helper): Return
+ SCM_UNSPECIFIED instead of 0
+
2005-06-24 Clinton Ebadi <clinton@unknownlamer.org>
* All: Updated FSF street address
to the bobot++ functions
* bot:msg and bot:say may both send to channels and users (instead
of bot:msg for users and bot:say for channels)
+ + Debugging
+ * The debugging evaluator is now enabled when --debug is passed to the bot
- Documentation
+ Merged documentation patch from Dale Smith (thanks)
scm_primitive_load
(scm_makfrom0str (String(PREFIX) +
"/share/bobotpp/scripts/bobot-utils.scm"));
- return 0;
+ return SCM_UNSPECIFIED;
}
void
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include "config.h"
// initialize the Parser
Parser::init ();
- if (!debug) {
- if (background)
- switch (fork()) {
- case -1:
- std::cout << "Could not run in the background. Exiting...\n";
- perror("fork");
- exit(1);
- case 0:
+ if (!debug)
+ {
+ if (background)
+ switch (fork())
+ {
+ case -1:
+ std::cout << "Could not run in the background. Exiting...\n";
+ perror("fork");
+ exit(1);
+ case 0:
break;
- default:
- std::cout << "Running in the background...\n";
- exit(0);
- }
- }
+ default:
+ std::cout << "Running in the background...\n";
+ exit(0);
+ }
+ }
#ifdef USESCRIPTS
Interp::Startup();
+ if (debug)
+ {
+ SCM_DEVAL_P = 1;
+ SCM_RECORD_POSITIONS_P = 1;
+ SCM_RESET_DEBUG_MODE;
+ }
#endif
b = new Bot(configFile, debug);