aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/dclib-file.h
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2021-02-03 16:42:38 +0100
committerWiimm <wiimm@wiimm.de>2021-02-03 16:42:38 +0100
commit69894f75254cd630e2e4fe1422044c6b7d6adb5f (patch)
tree139b93491a16987905c53c4e10bc8b44034de278 /project/dclib/dclib-file.h
parenta3d605bc52ba3e53720d0dee29a470661b35a1c2 (diff)
SZS 2.23a
Diffstat (limited to '')
-rw-r--r--project/dclib/dclib-file.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/project/dclib/dclib-file.h b/project/dclib/dclib-file.h
index bce66b1..1974475 100644
--- a/project/dclib/dclib-file.h
+++ b/project/dclib/dclib-file.h
@@ -14,7 +14,7 @@
* *
***************************************************************************
* *
- * Copyright (c) 2012-2020 by Dirk Clemens <wiimm@wiimm.de> *
+ * Copyright (c) 2012-2021 by Dirk Clemens <wiimm@wiimm.de> *
* *
***************************************************************************
* *
@@ -191,10 +191,14 @@ static inline int CompareTimeSpecTime ( const struct timespec *a, const time_t t
static inline bool IsTimeSpecNull ( const struct timespec *ts )
{
return !ts
- || ts->tv_nsec > 1000000000 // includes UTIME_NOW || UTIME_OMIT
+ || (unsigned long)ts->tv_nsec > 999999999 // includes UTIME_NOW and UTIME_OMIT
|| !ts->tv_nsec && !ts->tv_sec;
}
+//-----------------------------------------------------------------------------
+
+void SetAMTimes ( ccp fname, const struct timespec times[2] );
+
//
///////////////////////////////////////////////////////////////////////////////
/////////////// struct FileAttrib_t ///////////////
@@ -1336,11 +1340,13 @@ ccp PrintOpenFiles ( bool count_current ); // print to circ buffer
typedef enum PrintScriptFF
{
PSFF_UNKNOWN, // always 0
+ PSFF_ASSIGN,
PSFF_JSON,
PSFF_BASH,
PSFF_SH,
PSFF_PHP,
PSFF_MAKEDOC,
+ PSFF_C,
}
PrintScriptFF;
@@ -1354,11 +1360,16 @@ typedef struct PrintScript_t
FILE *f; // valid output file
PrintScriptFF fform; // output: file format
ccp varname; // valid ponter to var name
+ LowerUpper_t force_case; // change case of var names if not LOUP_AUTO
bool create_array; // true: create ar arrays
bool add_index; // true: add index to varname
+ bool ena_empty; // true: enable empty lines
+ bool ena_comments; // true: enable comments
+ uint count; // number of printed records (used for seoarators)
uint index; // index for array operations
char sep[2]; // separator for JSON
- char prefix[100]; // varname prefix
+ char prefix[100]; // var name prefix
+ ccp boc; // begin of comment
}
PrintScript_t;
@@ -1379,7 +1390,7 @@ int PutScriptVars
(
PrintScript_t *ps, // valid control struct
uint mode, // bit field: 1=open var, 2:close var
- ccp text // text with line of format NAME=VALUE
+ ccp text // text with lines of format NAME=VALUE
);
int PrintScriptVars