~noskcaj/ubuntu/trusty/libextractor/merge

« back to all changes in this revision

Viewing changes to src/plugins/printable/printableextractor.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 * @param word (alphabetic characters without spaces)
122
122
 * @return 0 if it is no word, 1 if it is
123
123
 */
124
 
static int wordTest(char * word,
 
124
static int wordTest(const char * word,
125
125
                    double * strlenthreshold) {
126
126
  int i;
127
127
  HashCode160 hc;
208
208
}
209
209
 
210
210
 
211
 
static int process(char * keyword,
212
 
                   double * thresh,
213
 
                   struct EXTRACTOR_Keywords ** head,
214
 
                   struct EXTRACTOR_Keywords ** tail) {
215
 
  int i;
216
 
  int max = 0;
217
 
  int len;
218
 
  int p;
219
 
  int skip;
 
211
static size_t process(char * keyword,
 
212
                      double * thresh,
 
213
                      struct EXTRACTOR_Keywords ** head,
 
214
                      struct EXTRACTOR_Keywords ** tail) {
 
215
  size_t i;
 
216
  size_t max;
 
217
  size_t len;
 
218
  size_t p;
 
219
  size_t skip;
220
220
  char * sxdup;
221
221
 
222
222
  max = 0;
280
280
                        struct EXTRACTOR_Keywords ** tail) {
281
281
  char * keyword;
282
282
  int i;
283
 
  int len;
 
283
  size_t len;
284
284
 
285
285
  len = end-start;
286
286
  keyword = malloc(len + 1);
323
323
  struct EXTRACTOR_Keywords * rpos;
324
324
  struct EXTRACTOR_Keywords * last;
325
325
  char * sentence;
326
 
  int i;
 
326
  size_t i;
327
327
 
328
328
  start = NULL;
329
329
  last = NULL;