Files
qse/qse/lib/awk/extio.h
hyung-hwan da61cde8fd finished interim implementation of qse_timegm() and qse_timelocal().
- currently, they use timegm() and timelocal() provided by libc.
added test programs.
2008-12-30 04:49:25 +00:00

60 lines
1.7 KiB
C

/*
* $Id: extio.h 363 2008-09-04 10:58:08Z baconevi $
*
Copyright 2006-2008 Chung, Hyung-Hwan.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _QSE_LIB_AWK_EXTIO_H_
#define _QSE_LIB_AWK_EXTIO_H_
#ifdef __cplusplus
extern "C" {
#endif
int qse_awk_readextio (
qse_awk_run_t* run, int in_type,
const qse_char_t* name, qse_str_t* buf);
int qse_awk_writeextio_val (
qse_awk_run_t* run, int out_type,
const qse_char_t* name, qse_awk_val_t* v);
int qse_awk_writeextio_str (
qse_awk_run_t* run, int out_type,
const qse_char_t* name, qse_char_t* str, qse_size_t len);
int qse_awk_flushextio (
qse_awk_run_t* run, int out_type, const qse_char_t* name);
int qse_awk_nextextio_read (
qse_awk_run_t* run, int in_type, const qse_char_t* name);
int qse_awk_nextextio_write (
qse_awk_run_t* run, int out_type, const qse_char_t* name);
int qse_awk_closeextio_read (
qse_awk_run_t* run, int in_type, const qse_char_t* name);
int qse_awk_closeextio_write (
qse_awk_run_t* run, int out_type, const qse_char_t* name);
int qse_awk_closeextio (qse_awk_run_t* run, const qse_char_t* name);
void qse_awk_clearextio (qse_awk_run_t* run);
#ifdef __cplusplus
}
#endif
#endif