|
ekg2
|
#include "ekg2-config.h"#include <sys/types.h>#include <time.h>#include "dynstuff.h"#include "dynstuff_inline.h"#include "log.h"#include "xmalloc.h"Funkcje | |
| static | LIST_FREE_ITEM (list_last_free, struct last *) |
| DYNSTUFF_LIST_DECLARE_WC (lasts, struct last, list_last_free, static __DYNSTUFF_LIST_ADD, static __DYNSTUFF_LIST_REMOVE_ITER, __DYNSTUFF_LIST_DESTROY, static __DYNSTUFF_LIST_COUNT) void last_add(int type | |
| if (config_last_size<=0) return | |
| if (config_last &2) count | |
| if (count >=config_last_size) | |
| lasts_add (ll) | |
| void | last_del (const char *uid) |
| int | last_count (const char *uid) |
| static int | xml_escape_l (const char znak) |
| static const char * | xml_escape_c (const char znak) |
| char * | xml_escape (const char *text) |
Zmienne | |
| struct last * | lasts = NULL |
| int | config_last_size = 10 |
| int | config_last = 0 |
| const char * | uid = xstrdup(uid) |
| const char time_t | t |
| const char time_t time_t | st |
| const char time_t time_t const char * | msg |
| int | count = 0 |
| ll = xmalloc(sizeof(struct last)) | |
| ll | type = type |
| ll | time = t |
| ll | sent_time = st |
| ll | message = xstrdup(msg) |
| DYNSTUFF_LIST_DECLARE_WC | ( | lasts | , |
| struct last | , | ||
| list_last_free | , | ||
| static | __DYNSTUFF_LIST_ADD, | ||
| static | __DYNSTUFF_LIST_REMOVE_ITER, | ||
| __DYNSTUFF_LIST_DESTROY | , | ||
| static | __DYNSTUFF_LIST_COUNT | ||
| ) |
| if | ( | config_last_size<= | 0) |
| if | ( | config_last & | 2) |
| if | ( | count >= | config_last_size) |
| int last_count | ( | const char * | uid) |
| void last_del | ( | const char * | uid) |
| lasts_add | ( | ll | ) |
|
static |
| char* xml_escape | ( | const char * | text) |
|
static |
| int config_last = 0 |
| int config_last_size = 10 |
| else count = 0 |
| const char time_t time_t st |
| const char time_t t |
| d type = type |
1.8.4