42 lines
983 B
C
42 lines
983 B
C
/*
|
|
SlideScript - minimalistic top-down scripting language.
|
|
(C) Copyright 2014-2021 Chris Dorman - some rights reserved (GPLv2)
|
|
|
|
View README file supplied with this software for more details
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <strings.h>
|
|
#include <unistd.h>
|
|
#include <time.h>
|
|
#include <fcntl.h>
|
|
#include <errno.h>
|
|
#include <signal.h>
|
|
#include <regex.h>
|
|
#include <limits.h>
|
|
#include <stddef.h>
|
|
#include "config.h"
|
|
#include "sbyteswap.h"
|
|
#include <sys/types.h>
|
|
// Networking
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
// For file handling
|
|
#include <assert.h>
|
|
#include <sys/stat.h>
|
|
// For string searching
|
|
#include <regex.h>
|
|
|
|
void syn_error(char *message);
|
|
void syn_warn(char *message);
|
|
char *strip_nl(char *string);
|
|
int file_exists(char *path);
|
|
int is_dir(char *path);
|
|
int mkpath(char* file_path, mode_t mode);
|
|
char *ss_concat(char *str1, char *str2);
|
|
void parse_args(int argc, char** argv);
|
|
char *ss_time();
|
|
|