diff options
-rw-r--r-- | parsing.c | 2 | ||||
-rw-r--r-- | pg.h | 3 | ||||
-rw-r--r-- | pg.pgc | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -357,7 +357,7 @@ void process() { struct channel_t *channel = channel_get(chan_i); int channel_id = pg_channel_get(channel); pg_users_get(channel_id); - pg_word_get(channel_id); + pg_words_get(channel_id); printf("Channel %s\n", channel->name); struct channel_file_t *file = channel->files; while(file) { @@ -15,6 +15,7 @@ long pg_channel_file_get(int channel_id, struct channel_file_t *file); void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos); void pg_user_set(int channel_id, struct user_t *user); void pg_users_get(int channel_id); -void pg_words_set(int channel); +void pg_word_set(int channel, struct word_t *word); +void pg_words_get(int channel); #endif @@ -301,7 +301,7 @@ void pg_word_set(int channel, struct word_t *word) { EXEC SQL COMMIT; } -void pg_word_get(int channel) { +void pg_words_get(int channel) { EXEC SQL BEGIN DECLARE SECTION; int channel_id = channel, id = 0, count; VARCHAR name[0x400]; |