From 54513cfb499a2f40859dd7d46e4be4a24bedf215 Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 18 Dec 2004 13:15:25 +0000 Subject: Updating and fixing regex/configfile. --- lib/ConfigFile.cc | 23 ++++++++++++++++++++++- lib/Regex.cc | 23 ++++++++++++++++++++++- 2 files changed, 44 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ConfigFile.cc b/lib/ConfigFile.cc index 85cbb00..42846c9 100644 --- a/lib/ConfigFile.cc +++ b/lib/ConfigFile.cc @@ -1,5 +1,26 @@ +/* + * Baltisot + * Copyright (C) 1999-2003 Nicolas "Pixel" Noble + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: ConfigFile.cc,v 1.4 2004-12-18 13:15:26 pixel Exp $ */ + #include "ConfigFile.h" -#include "Regex.h" +#include "BRegex.h" ConfigFile::ConfigFile(Handle * f) throw (GeneralException) { Regex r("^\\[.*\\]$"), comment("^#.*$"), empty("^ *$"), line("^.*=.*$"); diff --git a/lib/Regex.cc b/lib/Regex.cc index 258d378..cf8be44 100644 --- a/lib/Regex.cc +++ b/lib/Regex.cc @@ -1,7 +1,28 @@ +/* + * Baltisot + * Copyright (C) 1999-2003 Nicolas "Pixel" Noble + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: Regex.cc,v 1.12 2004-12-18 13:15:26 pixel Exp $ */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include "Regex.h" +#include "BRegex.h" #include "gettext.h" char t[1024]; -- cgit v1.2.3