Rework file tree, headers in src/inc

This commit is contained in:
Pentium44 2021-04-11 14:43:56 -07:00
parent 92e5a5201f
commit 336d18a48b
28 changed files with 56 additions and 67 deletions

View File

@ -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"
//-------------------------------------------------------------------- //--------------------------------------------------------------------

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -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>

View File

@ -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

View File

@ -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];

View File

@ -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)
{ {

View File

@ -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];

View File

@ -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

View File

@ -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

View File

@ -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)
{ {

View File

@ -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;

View File

@ -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))

View File

@ -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;

View File

@ -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)
{ {