make[4]: Entering directory `/Compile/gmap-1.1.2/src/hindex'
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I.. -I../.. -I/usr/include/gnome-1.0 
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include  
-I/usr/X11R6/include     -I/usr/include/g++      -I/usr/include/tcl      
-I/usr/local/include/tcl        -DGNOMELOCALEDIR=\""/usr/share/locale"\"               
 
-DLOCALEDIR=\"/usr/share/locale\"  -Wall  -g -O2 -O0 -g -c dictionary.cc
In file included from dictionary.cc:24:
dictionary.h:85: non-local function `void Dictionary::open_db({anonymous 
struct} *, char *, int)' uses anonymous type
dictionary.cc:77: non-local function `void Dictionary::open_db({anonymous 
struct} *, char *, int)' uses anonymous type


de fapt nu cu gcc e problema, e o problema ca aceasta rutina a fost scrisa 
pentu un gcc mult mai vechi , sp pe gcc 2.95.3 nu mai vrea ..... sa nu 
vorbesc de gcc-3.1.

eu am sapat modificat toata clasa Dictionary:: dar nu dau nici cum de capat 
...
class Dictionary {

        BTree *tree;
        BTree *cz_tree;
        BTree *unused;

        GDBM_FILE hindex_db;
        GDBM_FILE words_db;
        GDBM_FILE cz_words_db;

        int sensitive_toggle, cz_toggle;
        char *directory;
        char *path_prefix;
        unsigned long num_of_words;
        gint mode;



        void open_db (GDBM_FILE file, char *name, int flags);
        BTree *open_tree (char *name);
        char *cz_to_ascii (char *dest, const char *src);

        int add_file (const ObjectId fID, Date *from, Date *to,
                      const char *alias, const char *filename);

        int add_word (ObjectId fileID, int offset, const char *word);

        int next_word (FILE *file, char *str);

        GList* cz_wordID_to_wordID (GList *list, unsigned long czwID);

        GList* fileID (const char *prefix);
        GList* not_fileID (GList *list);
        GList* and_fileID (GList *l_list, GList *r_list);
        GList* or_fileID (GList *l_list, GList *r_list);
        GList* traverse_query (parseTree* node);

public:

        Dictionary(gchar *path="", gint wr=0, gint mode=HI_USE_ALL, int 
sensitive = 0, int cz = 1);
        ~Dictionary();
        int valid;
        void add_unused (const char *word);
        int is_unused (const char *word);

            // vrati alias, naalokovanej malloc-em nebo NULL
        char* fileID_to_alias (const ObjectId fileID, Date *valid);

            // vrati filename, naalokovanej malloc-em nebo NULL
        char* fileID_to_filename (const ObjectId fileID, Date *valid);

            // vrati true a naalokovano malloc-em jinak false
        int fileID_to_both (const ObjectId fileID, Date *valid,
                            char* &alias, char* &filename);

            // vsechny udaje v rec
        int fileID_to_rec (const ObjectId fileID, Date *valid,
                           hindex_record *rec);

            // zaznam v tabulce na danem miste (offset)
        int fileID_offset_to_rec (const ObjectId fileID, const int offset,
                                  hindex_record *rec);

        char* fileID_offset_to_alias (const ObjectId fileID, const int 
offset);
        char* fileID_offset_to_filename (const ObjectId fileID,
                                         const int offset);

            //vrati seznam hindex_recordu
            // alias a filename alokovano malloc-em
        GList* fileID_to_all (const ObjectId fileID);

            //prida vsechny slova HTextu filename
        int compile_HText (const ObjectId fID, Date *from, Date *to,
                           const char *alias, const char *filename);
        void set_prefix_path (const char *);
           // vrati list nalezenych slov
        GList* index_search_prefix (const char *prefix);

            // vrati list (fileID, num) ve kterych je slovo
        GList* index_search_files (GList *list, const long wordID);

        GList* advanced_query (const char *query);

        void set_case_sensitivity (int s) { sensitive_toggle = s; };
        void set_accents (int cz) { cz_toggle = cz; };

        int is_word_valid (const unsigned long wordID, Date *valid);

};

vreo idee ?


---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/


Raspunde prin e-mail lui