- fixed a bug in pio.c for WIN32
- deleted unnecessary files. - updated documentation.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: std.h 287 2009-09-15 10:01:02Z hyunghwan.chung $
|
||||
* $Id: std.h 316 2009-12-14 12:50:11Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -38,10 +38,10 @@
|
||||
*/
|
||||
enum qse_awk_parsestd_type_t
|
||||
{
|
||||
QSE_AWK_PARSESTD_FILE = 0, /* file name */
|
||||
QSE_AWK_PARSESTD_CP = 1, /* character pointer */
|
||||
QSE_AWK_PARSESTD_CPL = 2, /* character pointer + length */
|
||||
QSE_AWK_PARSESTD_STDIO = 3 /* standard input/output */
|
||||
QSE_AWK_PARSESTD_FILE = 0, /**< file name */
|
||||
QSE_AWK_PARSESTD_CP = 1, /**< character pointer */
|
||||
QSE_AWK_PARSESTD_CPL = 2, /**< character pointer + length */
|
||||
QSE_AWK_PARSESTD_STDIO = 3 /**< standard input/output */
|
||||
};
|
||||
typedef enum qse_awk_parsestd_type_t qse_awk_parsestd_type_t;
|
||||
|
||||
|
@ -21,6 +21,11 @@
|
||||
#ifndef _QSE_CMN_STDIO_H_
|
||||
#define _QSE_CMN_STDIO_H_
|
||||
|
||||
/** @file
|
||||
* #qse_char_t friendly stdio wrapper functions are defined in this file.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <qse/types.h>
|
||||
#include <qse/macros.h>
|
||||
|
||||
@ -63,7 +68,7 @@
|
||||
#define QSE_STDOUT stdout
|
||||
#define QSE_STDERR stderr
|
||||
|
||||
typedef int (*qse_getdelim_t) (const qse_char_t* ptr,qse_size_t len, void* arg);
|
||||
typedef int (*qse_getdelim_t) (const qse_char_t* ptr,qse_size_t len,void* arg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -84,12 +89,16 @@ QSE_FILE* qse_fopen (const qse_char_t* path, const qse_char_t* mode);
|
||||
QSE_FILE* qse_popen (const qse_char_t* cmd, const qse_char_t* mode);
|
||||
|
||||
/**
|
||||
* returns -2 on error, -1 on eof, length of data read on success
|
||||
* @return -2 on error, -1 on eof, length of data read on success
|
||||
*/
|
||||
qse_ssize_t qse_getline (qse_char_t **buf, qse_size_t *n, QSE_FILE *fp);
|
||||
|
||||
/**
|
||||
* returns -3 on line breaker error, -2 on error, -1 on eof,
|
||||
* length of data read on success
|
||||
* The qse_getdelim() function reads characters from a file pointer @a fp
|
||||
* until a certain condition is met as defined by @a fn and @a fnarg.
|
||||
*
|
||||
* @return -3 on line breaker error, -2 on error, -1 on eof,
|
||||
* length of data read on success
|
||||
*/
|
||||
qse_ssize_t qse_getdelim (
|
||||
qse_char_t **buf, qse_size_t *n,
|
||||
|
Reference in New Issue
Block a user