gd_parser_callback(3) GETDATA gd_parser_callback(3)NAME
gd_parser_callback -- set the syntax error callback handler for a dirfile
SYNOPSIS
#include <getdata.h>
void gd_parser_callback(DIRFILE *dirfile, gd_parser_callback_t sehandler, void *extra);
DESCRIPTION
The gd_parser_callback() function updates the syntax error callback function of the DIRFILE object dirfile to be sehandler, and the caller
supplied extra pointer passed to the handler to be extra, discarding any syntax error handler and extra pointer which were previously reg-
istered for this DIRFILE. If sehandler is NULL, the existing handler will be removed and the default behaviour (abort on error) restored.
See gd_cbopen(3) for a discussion on the requirements for the syntax handler.
Since parsing of an existing format specification occurs when the DIRFILE object is created, before this function can be called, this func-
tion is only useful to set or modify a callback function or its caller data before calling gd_include(3), which will invoke the callback
function if syntax errors are found in the included fragment.
This function always succeeds, and has no return value.
SEE ALSO gd_cbopen(3), gd_include(3), dirfile(5)Version 0.7.0 17 September 2010 gd_parser_callback(3)
Check Out this Related Man Page
gd_fragmentname(3) GETDATA gd_fragmentname(3)NAME
gd_fragmentname -- retrieve a dirfile format specification fragment name
SYNOPSIS
#include <getdata.h>
const char* gd_fragmentname(const DIRFILE *dirfile, int index);
DESCRIPTION
The gd_fragmentname() function queries a dirfile(5) database specified by dirfile and returns the filename of the format specification
fragment indexed by the non-negative index.
The dirfile argument must point to a valid DIRFILE object previously created by a call to gd_open(3).
The fragment with index equal to zero is always the primary fragment for the database (the file called format in the root dirfile directo-
ry). The largest valid value of index is one less than the total number of fragments, which may be obtained from a call to gd_nfrag-
ments(3).
RETURN VALUE
Upon successful completion, gd_fragmentname() returns a pointer to a read-only character string containing the file name of the specified
fragment. On error, gd_fragmentname() returns NULL and sets the dirfile error a non-zero error value. Possible error values are:
GD_E_BAD_DIRFILE
The supplied dirfile was invalid.
GD_E_BAD_INDEX
The supplied index was out of range.
The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from
a call to gd_error_string(3).
SEE ALSO dirfile(5), gd_error(3), gd_error_string(3), gd_include(3), gd_nfragments(3), gd_open(3), gd_parent_fragment(3)Version 0.7.0 21 July 2010 gd_fragmentname(3)
I am getting an error "ftpNotes.sh: syntax error at line 8 : `<<' unmatched"
#!/bin/ksh
PATH=/usr/sbin/:/usr/bin:/usr/ucb:/etc:/usr/local/bin:.
cd $HOME
if ;then
if ; then
echo 'DSC file already ftp to epm server'
else
ftp -n epmdev00 <<SCRIPT... (1 Reply)
Hi
how to color syntax in terminal in OS X ?
I wrote in .vimrc:
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
syntax on
and no results.
Best regards (1 Reply)
hi all
when i'm running my script, i'm getting the following syntax error
syntax error at line 134 : `" unmatched,
ppls can u guys tell me what it means
thnks (2 Replies)
A newbie in scripting is trying to run the script bellow but keep getting an error message ;
syntax error at line 76 : `<<' unmatched
what we have on that area pointed to is highlighted in red bellow:
##################################################
fi
# Memory Performance (vmstat -... (5 Replies)
Hi Guys,
I have a following code in cm1.sh script.
cnt=`sqlplus -s <un>/<pwd> << !EOF
set heading off verify off pagesize 0
select count(*) from fnd_svc_components where component_name like '%Mailer%' and component_status != 'RUNNING';
exit;
!EOF`
echo $cnt
if ; then
sqlplus -s... (1 Reply)
When i tyr this, it gives me a syntax error...i tried removing quotes,removing spaces,replacing -eq with '='.. Can somebody suggest that is the problem?
if ]; then (4 Replies)
I'm getting the following error:
line 21: syntax error near unexpected token `done`
line 21: `done`
and I haven't been able to figure out why.
Here is my code
#!/bin/sh
if ; then
echo 'Usage: rename getexp/replStr '
exit 0
fi
arg = $1
shift
while ; do (5 Replies)
Hi,
I am trying to execute the above attached script. and i am getting the error as syntax error at line 8: `<<' is not matched.
While i am trying to run that particular line (cat <<EOF > /tmp/query.sql) independently in the prompt it is running successfully without any error.
I am running... (2 Replies)