Subversion Repositories RepoView

Rev

Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/* $Id: page.c 3 2024-08-20 21:05:24Z nishi $ */

#include "rv_page.h"

#include "rv_query.h"
#include "rv_util.h"

#include "../config.h"

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

char* buffer;

void render_page(void);

void add_data(char** data, const char* txt) {
        char* tmp = *data;
        *data = rv_strcat(tmp, txt);
        free(tmp);
}

void rv_process_page(void) {
        buffer = malloc(1);
        buffer[0] = 0;
        render_page();
}

void rv_print_page(void) { printf("%s\n", buffer); }