qse/ase/awk/misc.h

50 lines
1.2 KiB
C
Raw Normal View History

2006-09-08 15:26:49 +00:00
/*
2006-10-12 04:17:58 +00:00
* $Id: misc.h,v 1.3 2006-10-12 04:17:31 bacon Exp $
2006-09-08 15:26:49 +00:00
*/
#ifndef _XP_AWK_MISC_H_
#define _XP_AWK_MISC_H_
#ifndef _XP_AWK_AWK_H_
#error Never include this file directly. Include <xp/awk/awk.h> instead
#endif
#ifdef __cplusplus
extern "C" {
#endif
2006-09-25 06:17:19 +00:00
void* xp_awk_memcpy (void* dst, const void* src, xp_size_t n);
void* xp_awk_memset (void* dst, int val, xp_size_t n);
2006-09-08 15:26:49 +00:00
xp_char_t* xp_awk_strtok (
2006-10-12 04:17:58 +00:00
xp_awk_run_t* run, const xp_char_t* s,
2006-09-08 15:26:49 +00:00
const xp_char_t* delim, xp_char_t** tok, xp_size_t* tok_len);
xp_char_t* xp_awk_strxtok (
2006-10-12 04:17:58 +00:00
xp_awk_run_t* run, const xp_char_t* s, xp_size_t len,
2006-09-08 15:26:49 +00:00
const xp_char_t* delim, xp_char_t** tok, xp_size_t* tok_len);
xp_char_t* xp_awk_strntok (
2006-10-12 04:17:58 +00:00
xp_awk_run_t* run, const xp_char_t* s,
2006-09-08 15:26:49 +00:00
const xp_char_t* delim, xp_size_t delim_len,
xp_char_t** tok, xp_size_t* tok_len);
xp_char_t* xp_awk_strxntok (
2006-10-12 04:17:58 +00:00
xp_awk_run_t* run, const xp_char_t* s, xp_size_t len,
2006-09-08 15:26:49 +00:00
const xp_char_t* delim, xp_size_t delim_len,
xp_char_t** tok, xp_size_t* tok_len);
xp_char_t* xp_awk_strxntokbyrex (
2006-10-12 04:17:58 +00:00
xp_awk_run_t* run, const xp_char_t* s, xp_size_t len,
2006-09-08 15:26:49 +00:00
void* rex, xp_char_t** tok, xp_size_t* tok_len, int* errnum);
2006-10-12 04:17:58 +00:00
int xp_awk_abort (xp_awk_t* awk,
const xp_char_t* expr, const xp_char_t* file, int line);
2006-09-08 15:26:49 +00:00
#ifdef __cplusplus
}
#endif
#endif