Rework file tree, headers in src/inc
This commit is contained in:
parent
92e5a5201f
commit
336d18a48b
@ -6,8 +6,8 @@
|
|||||||
// lz1 https://github.com/andyherbert/lz1
|
// lz1 https://github.com/andyherbert/lz1
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "compression.h"
|
#include "inc/compression.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "enc.h"
|
#include "inc/enc.h"
|
||||||
|
|
||||||
char *ss_encrypt(char *string)
|
char *ss_encrypt(char *string)
|
||||||
{
|
{
|
||||||
|
@ -5,19 +5,19 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "functions.h"
|
#include "inc/functions.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
#include "vars.h"
|
#include "inc/vars.h"
|
||||||
#include "enc.h"
|
#include "inc/enc.h"
|
||||||
#include "math.h"
|
#include "inc/math.h"
|
||||||
#include "md5.h"
|
#include "inc/md5.h"
|
||||||
#include "network.h"
|
#include "inc/network.h"
|
||||||
#include "search.h"
|
#include "inc/search.h"
|
||||||
#include "inset.h"
|
#include "inc/inset.h"
|
||||||
// For slidescript compression algorithm
|
// For slidescript compression algorithm
|
||||||
#include "tar.h"
|
#include "inc/tar.h"
|
||||||
#include "compression.h"
|
#include "inc/compression.h"
|
||||||
|
|
||||||
char *process_line(char *line)
|
char *process_line(char *line)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <grp.h>
|
||||||
|
#include <pwd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -20,10 +23,15 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "sbyteswap.h"
|
#include "sbyteswap.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/select.h>
|
||||||
// Networking
|
// Networking
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
// For tar containers
|
||||||
|
#if !defined(__APPLE__)
|
||||||
|
#include <sys/sysmacros.h>
|
||||||
|
#endif
|
||||||
// For file handling
|
// For file handling
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
@ -30,26 +30,6 @@ THE SOFTWARE
|
|||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <grp.h>
|
|
||||||
#include <pwd.h>
|
|
||||||
#if !defined(__APPLE__)
|
|
||||||
#include <sys/sysmacros.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/select.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#define DEFAULT_DIR_MODE S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH // 0755
|
#define DEFAULT_DIR_MODE S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH // 0755
|
||||||
|
|
||||||
#define BLOCKSIZE 512
|
#define BLOCKSIZE 512
|
10
src/inset.c
10
src/inset.c
@ -5,11 +5,11 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "inset.h"
|
#include "inc/inset.h"
|
||||||
#include "functions.h"
|
#include "inc/functions.h"
|
||||||
#include "vars.h"
|
#include "inc/vars.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
BQ s_bqf [MAX_BQ_FUNCTIONS];
|
BQ s_bqf [MAX_BQ_FUNCTIONS];
|
||||||
|
|
||||||
|
10
src/main.c
10
src/main.c
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
#define MY_GLOBAL
|
#define MY_GLOBAL
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
#include "functions.h"
|
#include "inc/functions.h"
|
||||||
#include "pipe.h"
|
#include "inc/pipe.h"
|
||||||
#include "vars.h"
|
#include "inc/vars.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "math.h"
|
#include "inc/math.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
EXPR sexpr [MAX_EXPR_ARGS];
|
EXPR sexpr [MAX_EXPR_ARGS];
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "md5.h"
|
#include "inc/md5.h"
|
||||||
|
|
||||||
#define ZERO 0
|
#define ZERO 0
|
||||||
#define ONE 1
|
#define ONE 1
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "network.h"
|
#include "inc/network.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
// Structure of file types for nethttp
|
// Structure of file types for nethttp
|
||||||
// mimetype struct, searched through when checking mimetype
|
// mimetype struct, searched through when checking mimetype
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "vars.h"
|
#include "inc/vars.h"
|
||||||
#include "pipe.h"
|
#include "inc/pipe.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
void set_cmd(int index, char *cmd)
|
void set_cmd(int index, char *cmd)
|
||||||
{
|
{
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "search.h"
|
#include "inc/search.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
regex_t pattern;
|
regex_t pattern;
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "tar.h"
|
#include "inc/deps.h"
|
||||||
|
#include "inc/tar.h"
|
||||||
|
|
||||||
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
||||||
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
time_t current_time;
|
time_t current_time;
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
View README file supplied with this software for more details
|
View README file supplied with this software for more details
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "deps.h"
|
#include "inc/deps.h"
|
||||||
#include "vars.h"
|
#include "inc/vars.h"
|
||||||
#include "util.h"
|
#include "inc/util.h"
|
||||||
|
|
||||||
void set_var(int index, char *varname, char *vardata)
|
void set_var(int index, char *varname, char *vardata)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user