Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gd_parser_callback(3) [debian man page]

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)
Man Page

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can some review my code would be appreicated?

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)
Discussion started by: sibghat
1 Replies

2. OS X (Apple)

vim and syntax max os

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)
Discussion started by: kezzol
1 Replies

3. Shell Programming and Scripting

syntax error

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)
Discussion started by: bkan77
2 Replies

4. Shell Programming and Scripting

syntax error

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)
Discussion started by: ibroxy
5 Replies

5. Shell Programming and Scripting

Getting error "syntax error at line 78 : `<' unmatched"

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)
Discussion started by: sshah1001
1 Replies

6. Shell Programming and Scripting

syntax error: `-a' unexpected operator/operand in IF

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)
Discussion started by: dba.admin2008
4 Replies

7. Shell Programming and Scripting

sh syntax error unexpected token done

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)
Discussion started by: NullPointer
5 Replies

8. UNIX for Advanced & Expert Users

sh: syntax error at line 8 : `<<' is not matched.

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)
Discussion started by: satyaatcgi
2 Replies