Move str_util to str

Simplify naming.
This commit is contained in:
Romain Vimont 2021-11-12 23:12:51 +01:00
parent 979ce64dc0
commit 057c7a4df4
13 changed files with 19 additions and 19 deletions

View file

@ -33,7 +33,7 @@ src = [
'src/util/process.c',
'src/util/process_intr.c',
'src/util/strbuf.c',
'src/util/str_util.c',
'src/util/str.c',
'src/util/term.c',
'src/util/thread.c',
'src/util/tick.c',
@ -199,8 +199,8 @@ if get_option('buildtype') == 'debug'
'tests/test_cli.c',
'src/cli.c',
'src/options.c',
'src/util/str.c',
'src/util/strbuf.c',
'src/util/str_util.c',
'src/util/term.c',
]],
['test_clock', [
@ -210,8 +210,8 @@ if get_option('buildtype') == 'debug'
['test_control_msg_serialize', [
'tests/test_control_msg_serialize.c',
'src/control_msg.c',
'src/util/str.c',
'src/util/strbuf.c',
'src/util/str_util.c',
]],
['test_device_msg_deserialize', [
'tests/test_device_msg_deserialize.c',
@ -224,10 +224,10 @@ if get_option('buildtype') == 'debug'
'tests/test_strbuf.c',
'src/util/strbuf.c',
]],
['test_strutil', [
'tests/test_strutil.c',
['test_str', [
'tests/test_str.c',
'src/util/str.c',
'src/util/strbuf.c',
'src/util/str_util.c',
]],
]

View file

@ -7,7 +7,7 @@
#include "util/file.h"
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
static const char *adb_command;

View file

@ -9,8 +9,8 @@
#include "options.h"
#include "util/log.h"
#include "util/str.h"
#include "util/strbuf.h"
#include "util/str_util.h"
#include "util/term.h"
#define STR_IMPL_(x) #x

View file

@ -7,7 +7,7 @@
#include "util/buffer_util.h"
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
/**
* Map an enum value to a string based on an array, without crashing on an

View file

@ -10,7 +10,7 @@
#include "compat.h"
#include "util/file.h"
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
#define SCRCPY_PORTABLE_ICON_FILENAME "icon.png"
#define SCRCPY_DEFAULT_ICON_PATH \

View file

@ -6,7 +6,7 @@
#include <libavutil/time.h>
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
/** Downcast packet_sink to recorder */
#define DOWNCAST(SINK) container_of(SINK, struct recorder, packet_sink)

View file

@ -12,7 +12,7 @@
#include "util/log.h"
#include "util/net_intr.h"
#include "util/process_intr.h"
#include "util/str_util.h"
#include "util/str.h"
#define SERVER_FILENAME "scrcpy-server"

View file

@ -5,7 +5,7 @@
#include <sys/stat.h>
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
char *
sc_file_get_executable_path(void) {

View file

@ -3,7 +3,7 @@
#include <assert.h>
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
#define CMD_MAX_LEN 8192

View file

@ -1,4 +1,4 @@
#include "str_util.h"
#include "str.h"
#include <assert.h>
#include <errno.h>

View file

@ -1,5 +1,5 @@
#ifndef SC_STRUTIL_H
#define SC_STRUTIL_H
#ifndef SC_STR_H
#define SC_STR_H
#include "common.h"

View file

@ -1,7 +1,7 @@
#include "v4l2_sink.h"
#include "util/log.h"
#include "util/str_util.h"
#include "util/str.h"
/** Downcast frame_sink to sc_v4l2_sink */
#define DOWNCAST(SINK) container_of(SINK, struct sc_v4l2_sink, frame_sink)

View file

@ -5,7 +5,7 @@
#include <stdio.h>
#include <string.h>
#include "util/str_util.h"
#include "util/str.h"
static void test_strncpy_simple(void) {
char s[] = "xxxxxxxxxx";