Skip to content

Commit

Permalink
Remove new / delete APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
czchen committed Jun 13, 2014
1 parent 91bd24d commit 0f70b9c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 116 deletions.
2 changes: 0 additions & 2 deletions libbbs.ver
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
LIBBBS_0.0.0 {
global:
bbs_new;
bbs_delete;
bbs_big5_to_utf8;
bbs_utf8_to_big5;
local:
Expand Down
51 changes: 0 additions & 51 deletions src/bbs.c

This file was deleted.

4 changes: 0 additions & 4 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
*/
#include "util.h"

void null_logger(void *data, int level, const char *fmt, ...)
{
}

int get_utf8_length_by_first_byte(char first_byte)
{
if ((first_byte & 0x80) == 0x00) {
Expand Down
12 changes: 0 additions & 12 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,7 @@
*/
#pragma once

#define LOG_VERBOSE(fmt, ...) \
do { ctx->logger(ctx->logger_data, BBS_LOG_LEVEL_VERBOSE, "[%s:%d]" #fmt, __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#define LOG_DEBUG(fmt, ...) \
do { ctx->logger(ctx->logger_data, BBS_LOG_LEVEL_DEBUG, "[%s:%d]" #fmt, __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#define LOG_INFO(fmt, ...) \
do { ctx->logger(ctx->logger_data, BBS_LOG_LEVEL_INFO, "[%s:%d]" #fmt, __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#define LOG_WARN(fmt, ...) \
do { ctx->logger(ctx->logger_data, BBS_LOG_LEVEL_WARN, "[%s:%d]" #fmt, __FILE__, __LINE__, ##__VA_ARGS__); } while (0)
#define LOG_ERROR(fmt, ...) \
do { ctx->logger(ctx->logger_data, BBS_LOG_LEVEL_ERROR, "[%s:%d]" #fmt, __FILE__, __LINE__, ##__VA_ARGS__); } while (0)

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))

void null_logger(void *data, int level, const char *fmt, ...);
int get_utf8_length_by_first_byte(char first_byte);
int is_utf8_continuation_byte(char byte);
47 changes: 0 additions & 47 deletions tests/api/test-bbs.c

This file was deleted.

0 comments on commit 0f70b9c

Please sign in to comment.