Fic includes to use "" instead of <>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <ucore/backtrace.h>
|
||||
#include "ucore/backtrace.h"
|
||||
|
||||
//note , compiling this without -rdynamic does not
|
||||
//translate addresses to function names. Use the addr2line in that case
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include "ucore/iomux.h"
|
||||
|
||||
extern struct IOMuxFD s_fd;
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include "ucore/iomux.h"
|
||||
|
||||
extern struct IOMuxFD s_fd;
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include "ucore/iomux.h"
|
||||
|
||||
|
||||
#define BUFLEN (4098*66)
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include <ucore/iomux_waker.h>
|
||||
#include "ucore/iomux.h"
|
||||
#include "ucore/iomux_waker.h"
|
||||
|
||||
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static int counter = 0;
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#include <ucore/logging.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/logging.h"
|
||||
#include "ucore/utils.h"
|
||||
#include <syslog.h>
|
||||
enum {
|
||||
MAIN,
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ortp/ortp.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include <ucore/utils.h>
|
||||
#include <ucore/string.h>
|
||||
#include "ucore/iomux.h"
|
||||
#include "ucore/utils.h"
|
||||
#include "ucore/string.h"
|
||||
|
||||
|
||||
struct IOMux *mux;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ucore/math.h>
|
||||
#include "ucore/math.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <string.h>
|
||||
#include <ucore/salloc.h>
|
||||
#include "ucore/salloc.h"
|
||||
|
||||
// Intended to be run under valgrind. Should show no errors
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <stdio.h>
|
||||
#include <ucore/seq.h>
|
||||
#include "ucore/seq.h"
|
||||
|
||||
|
||||
void check_before(uint32_t a, uint32_t b)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucore/tailq.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/tailq.h"
|
||||
#include "ucore/utils.h"
|
||||
|
||||
struct Block {
|
||||
char text[64];
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/string.h>
|
||||
#include "ucore/string.h"
|
||||
|
||||
|
||||
START_TEST (test_2bcd_1234567890)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/bitvec.h>
|
||||
#include "ucore/bitvec.h"
|
||||
|
||||
|
||||
START_TEST (test_bitvec_1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <ucore/buffer.h>
|
||||
#include "ucore/buffer.h"
|
||||
|
||||
|
||||
START_TEST (test_new_gbuf)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <check.h>
|
||||
#include <unistd.h>
|
||||
#include <ucore/clock.h>
|
||||
#include "ucore/clock.h"
|
||||
|
||||
|
||||
START_TEST (test_settable_clock)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/utils.h"
|
||||
|
||||
|
||||
struct Inner {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <ucore/dbuf.h>
|
||||
#include "ucore/dbuf.h"
|
||||
|
||||
|
||||
START_TEST (test_dbuf)
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
#include <check.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <ucore/dstr.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/dstr.h"
|
||||
#include "ucore/utils.h"
|
||||
|
||||
|
||||
START_TEST (test_dstr_basics)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <check.h>
|
||||
#include <ucore/utils.h>
|
||||
#include <ucore/heapsort.h>
|
||||
#include "ucore/utils.h"
|
||||
#include "ucore/heapsort.h"
|
||||
|
||||
struct Stuff {
|
||||
char text[11];
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <ucore/string.h>
|
||||
#include "ucore/string.h"
|
||||
|
||||
|
||||
START_TEST (test_uc_hex_encode_1)
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <ucore/htable.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/htable.h"
|
||||
#include "ucore/utils.h"
|
||||
|
||||
struct MyString {
|
||||
char str[32];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/string.h>
|
||||
#include "ucore/string.h"
|
||||
|
||||
|
||||
START_TEST (test_human_bytesz_bytes)
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <ucore/logging.h>
|
||||
#include "ucore/logging.h"
|
||||
|
||||
#define FILE_NAME "logfile_test.log"
|
||||
#define SUBDIR "log_subdir"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucore/mbuf.h>
|
||||
#include "ucore/mbuf.h"
|
||||
|
||||
|
||||
START_TEST (test_mbuf_new)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/pack.h>
|
||||
#include "ucore/pack.h"
|
||||
|
||||
|
||||
START_TEST (test_pack16_le_1)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/rate_limit.h>
|
||||
#include "ucore/rate_limit.h"
|
||||
|
||||
|
||||
START_TEST (test_ratelimit_1)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <ucore/read_file.h>
|
||||
#include "ucore/read_file.h"
|
||||
|
||||
|
||||
START_TEST (test_read_file_non_existing_file)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/saturating_math.h>
|
||||
#include "ucore/saturating_math.h"
|
||||
|
||||
|
||||
START_TEST (test_sat_uc_addu8)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/seq.h>
|
||||
#include "ucore/seq.h"
|
||||
|
||||
|
||||
START_TEST (test_uc_seq_lt)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <check.h>
|
||||
#include <limits.h>
|
||||
#include <ucore/string.h>
|
||||
#include "ucore/string.h"
|
||||
|
||||
//Note these tests assume
|
||||
// char 8 bit
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucore/strvec.h>
|
||||
#include "ucore/strvec.h"
|
||||
|
||||
|
||||
START_TEST (test_strv_append)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <errno.h>
|
||||
#include <sched.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucore/threadqueue.h>
|
||||
#include "ucore/threadqueue.h"
|
||||
|
||||
struct thr_msg {
|
||||
struct uc_threadmsg msg;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
#include <ucore/ticket_lock.h>
|
||||
#include "ucore/ticket_lock.h"
|
||||
|
||||
//this is intended more as an example
|
||||
//verifying multithreaded locks requires a more formal approach
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
#include <check.h>
|
||||
#include <ucore/timers.h>
|
||||
#include <ucore/timers.h>
|
||||
#include <ucore/clock.h>
|
||||
#include "ucore/timers.h"
|
||||
#include "ucore/timers.h"
|
||||
#include "ucore/clock.h"
|
||||
|
||||
struct TimerTest {
|
||||
int cnt;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#include <check.h>
|
||||
#include <ucore/val_str.h>
|
||||
#include "ucore/val_str.h"
|
||||
|
||||
|
||||
START_TEST (test_val_str_search)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ucore/threadqueue.h>
|
||||
#include "ucore/threadqueue.h"
|
||||
|
||||
struct uc_threadqueue queue;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <ucore/threadqueue.h>
|
||||
#include "ucore/threadqueue.h"
|
||||
|
||||
struct uc_threadqueue queue;
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <ucore/timers.h>
|
||||
#include <ucore/utils.h>
|
||||
#include "ucore/timers.h"
|
||||
#include "ucore/utils.h"
|
||||
|
||||
|
||||
struct MyStruct {
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
#include <sys/queue.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <ucore/logging.h>
|
||||
#include <ucore/logging.h>
|
||||
#include <ucore/iomux.h>
|
||||
#include <ucore/utils.h>
|
||||
#include <ucore/pack.h>
|
||||
#include <ucore/tailq.h>
|
||||
#include "ucore/logging.h"
|
||||
#include "ucore/logging.h"
|
||||
#include "ucore/iomux.h"
|
||||
#include "ucore/utils.h"
|
||||
#include "ucore/pack.h"
|
||||
#include "ucore/tailq.h"
|
||||
|
||||
#define HB_MAGIX 0xBEA7BEA7
|
||||
|
||||
|
||||
Reference in New Issue
Block a user