added qse_sio_openstd().
added QSE_SED_ZEROA1 and related code
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: sed.h 568 2011-09-17 15:41:26Z hyunghwan.chung $
|
||||
* $Id: sed.h 569 2011-09-19 06:51:02Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -140,9 +140,10 @@ enum qse_sed_option_t
|
||||
QSE_SED_QUIET = (1 << 3), /**< do not print pattern space */
|
||||
QSE_SED_STRICT = (1 << 4), /**< do strict address check */
|
||||
QSE_SED_STARTSTEP = (1 << 5), /**< allow start~step */
|
||||
QSE_SED_EXTENDEDREX = (1 << 6), /**< use extended regex */
|
||||
QSE_SED_NONSTDEXTREX = (1 << 7), /**< enable non-standard extensions to regex */
|
||||
QSE_SED_SAMELINE = (1 << 8), /**< allow text on the same line as c, a, i */
|
||||
QSE_SED_ZEROA1 = (1 << 6), /**< allow 0,/regex/ */
|
||||
QSE_SED_SAMELINE = (1 << 7), /**< allow text on the same line as c, a, i */
|
||||
QSE_SED_EXTENDEDREX = (1 << 8), /**< use extended regex */
|
||||
QSE_SED_NONSTDEXTREX = (1 << 9) /**< enable non-standard extensions to regex */
|
||||
};
|
||||
typedef enum qse_sed_option_t qse_sed_option_t;
|
||||
|
||||
|
@ -105,13 +105,13 @@ int qse_sed_compstd (
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_sed_execstd() function executes the compiled script
|
||||
* The qse_sed_execstd() function executes a compiled script
|
||||
* over input streams @a in and an output stream @a out.
|
||||
*
|
||||
* If @a in is not #QSE_NULL, it must point to a null-terminated array
|
||||
* of standard I/O resources. if in[0] is QSE_NULL, this function
|
||||
* returns failure, requiring at least 1 valid resource to be included
|
||||
* in the array.
|
||||
* of standard I/O resources. if in[0].type is QSE_SED_IOSTD_NULL, this
|
||||
* function returns failure, requiring at least 1 valid resource to be
|
||||
* included in the array.
|
||||
*
|
||||
* If @a in is #QSE_NULL, the standard console input is used.
|
||||
* If @a out is #QSE_NULL, the standard console output is used.
|
||||
@ -124,6 +124,21 @@ int qse_sed_execstd (
|
||||
qse_sed_iostd_t* out
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_sed_execstdfile() function executes a compiled script
|
||||
* a single input file @a infile and a single output file @a outfile.
|
||||
*
|
||||
* If @a infile is #QSE_NULL, the standard console input is used.
|
||||
* If @a outfile is #QSE_NULL, the standard console output is used.
|
||||
*
|
||||
* @return 0 on success, -1 on failure
|
||||
*/
|
||||
int qse_sed_execstdfile (
|
||||
qse_sed_t* sed,
|
||||
const qse_char_t* infile,
|
||||
const qse_char_t* outfile
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user