qse/ase/awk/misc.h

50 lines
1.3 KiB
C
Raw Normal View History

2006-09-08 15:26:49 +00:00
/*
2006-10-23 14:44:43 +00:00
* $Id: misc.h,v 1.6 2006-10-23 14:44:43 bacon Exp $
2006-09-08 15:26:49 +00:00
*/
2006-10-22 11:34:53 +00:00
#ifndef _SSE_AWK_MISC_H_
#define _SSE_AWK_MISC_H_
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
#ifndef _SSE_AWK_AWK_H_
#error Never include this file directly. Include <sse/awk/awk.h> instead
2006-09-08 15:26:49 +00:00
#endif
#ifdef __cplusplus
extern "C" {
#endif
2006-10-23 14:44:43 +00:00
void* sse_awk_memcpy (void* dst, const void* src, sse_size_t n);
2006-10-22 11:34:53 +00:00
void* sse_awk_memset (void* dst, int val, sse_size_t n);
2006-09-25 06:17:19 +00:00
2006-10-22 11:34:53 +00:00
sse_char_t* sse_awk_strtok (
sse_awk_run_t* run, const sse_char_t* s,
const sse_char_t* delim, sse_char_t** tok, sse_size_t* tok_len);
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
sse_char_t* sse_awk_strxtok (
sse_awk_run_t* run, const sse_char_t* s, sse_size_t len,
const sse_char_t* delim, sse_char_t** tok, sse_size_t* tok_len);
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
sse_char_t* sse_awk_strntok (
sse_awk_run_t* run, const sse_char_t* s,
const sse_char_t* delim, sse_size_t delim_len,
sse_char_t** tok, sse_size_t* tok_len);
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
sse_char_t* sse_awk_strxntok (
sse_awk_run_t* run, const sse_char_t* s, sse_size_t len,
const sse_char_t* delim, sse_size_t delim_len,
sse_char_t** tok, sse_size_t* tok_len);
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
sse_char_t* sse_awk_strxntokbyrex (
sse_awk_run_t* run, const sse_char_t* s, sse_size_t len,
void* rex, sse_char_t** tok, sse_size_t* tok_len, int* errnum);
2006-09-08 15:26:49 +00:00
2006-10-22 11:34:53 +00:00
int sse_awk_abort (sse_awk_t* awk,
2006-10-22 12:39:30 +00:00
const sse_char_t* expr, const sse_char_t* file, int line);
2006-10-12 04:17:58 +00:00
2006-09-08 15:26:49 +00:00
#ifdef __cplusplus
}
#endif
#endif