summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-18 13:15:25 +0000
committerpixel <pixel>2004-12-18 13:15:25 +0000
commit54513cfb499a2f40859dd7d46e4be4a24bedf215 (patch)
tree9cf0ed0c6ffba55e3d676d21ed33ce2a6f0dca5e /lib
parentdbe6767b757d891bb6b4b21edee4b987735dce0c (diff)
Updating and fixing regex/configfile.
Diffstat (limited to 'lib')
-rw-r--r--lib/ConfigFile.cc23
-rw-r--r--lib/Regex.cc23
2 files changed, 44 insertions, 2 deletions
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];