<commit_before>/* delete.c */

#include <assert.h>
#include <stdlib.h>

#ifdef __riscos
#include "oslib/osfile.h"
#endif

#include "databases/pickle.h"

void pickle_delete(const char *filename)
{
  assert(filename);

#ifdef __riscos
  xosfile_delete(filename, NULL, NULL, NULL, NULL, NULL);
#endif
}<commit_msg>databases/pickle/delete.c: Use remove() on non-RISC OS platforms.<commit_after>/* delete.c */

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

#ifdef __riscos
#include "oslib/osfile.h"
#endif

#include "databases/pickle.h"

void pickle_delete(const char *filename)
{
  assert(filename);

#ifdef __riscos
  xosfile_delete(filename, NULL, NULL, NULL, NULL, NULL);
#else
  remove(filename);
#endif
}
{'fraction_non_alphanumeric': 0.1502086230876217, 'fraction_numerical': 0.0, 'mean_word_length': 5.371681415929204, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4105435', 'n_tokens_mistral': 277, 'n_tokens_neox': 275, 'n_words': 64}