- fixed a bug in pio.c for WIN32

- deleted unnecessary files.
- updated documentation.
This commit is contained in:
2009-12-15 06:50:11 +00:00
parent 7715b1b9f9
commit 41b716c195
28 changed files with 206 additions and 1224 deletions

View File

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

View File

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