X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fsortidx.c;h=c9366f1292c09b3dda704ca50f4f892e598c19d0;hb=92bb4bdb37873f21cabe7b045e1a593ab648ae55;hp=4980a9ad320002f7246d7bb1fa4c8c7f30659abf;hpb=5c693d36af8be6f6642257160b3c6441d2e2d762;p=idzebra-moved-to-github.git diff --git a/index/sortidx.c b/index/sortidx.c index 4980a9a..c9366f1 100644 --- a/index/sortidx.c +++ b/index/sortidx.c @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 1998, Index Data ApS + * All rights reserved. + * Sebastian Hammer, Adam Dickmeiss + * + * $Log: sortidx.c,v $ + * Revision 1.3 1999-05-26 07:49:13 adam + * C++ compilation. + * + * Revision 1.2 1998/06/25 09:55:50 adam + * Minor changes - fixex headers. + * + */ + #include #include @@ -29,12 +42,12 @@ struct sortIdx { SortIdx sortIdx_open (BFiles bfs, int write_flag) { - SortIdx si = xmalloc (sizeof(*si)); + SortIdx si = (SortIdx) xmalloc (sizeof(*si)); si->bfs = bfs; si->write_flag = write_flag; si->current_file = NULL; si->files = NULL; - si->entry_buf = xmalloc (SORT_IDX_ENTRYSIZE); + si->entry_buf = (char *) xmalloc (SORT_IDX_ENTRYSIZE); return si; } @@ -65,7 +78,7 @@ int sortIdx_type (SortIdx si, int type) si->current_file = sf; return 0; } - sf = xmalloc (sizeof(*sf)); + sf = (struct sortFile *) xmalloc (sizeof(*sf)); sf->type = type; sf->bf = NULL; sf->next = si->files;