chiark / gitweb /
Merge Disobedience playlist support.
[disorder] / lib / regsub.c
index aab20e23f957c3429950554b94a78853381c0f00..1b7cad47813e217dc07f44ddc2744c114b7472fa 100644 (file)
@@ -15,7 +15,9 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/regsub.c
+ * @brief Regexp substitution
+ */
 #include "common.h"
 
 #include <pcre.h>
@@ -141,7 +143,7 @@ const char *regsub(const pcre *re, const char *subject, const char *replace,
       break;
   }
   if(rc <= 0 && rc != PCRE_ERROR_NOMATCH) {
-    error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
+    disorder_error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
     return 0;
   }
   if((flags & REGSUB_MUST_MATCH) && matches == 0)