/*
** Title: udr.c
** SCCSid: dbdktxa.ide, dbdk_tut, v11.10.UC1 07/07/05 10:31:18
** CCid: dbdktxa.ide, dbdk_tut, v11.10.UC1 07/07/05 10:31:18
** Author: danielh
** Created: 05/18/1999 11:59
** Description: This is a generated source file for the AddInts DataBlade module.
** Comments: Generated for project AddInts.1.0
*/
/*
** The following is placed here to insure
** that name "mangling" does not occur.
*/
#ifdef __cplusplus
extern "C"
{
#endif
/* Standard library includes. */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h
/* Used by Informix GLS routines. */
#include <ifxgls.h>
/* Include when accessing the Informix API. */
#include <mi.h>
/* This is the project include file. */
#include "AddInts.h"
/* {{FUNCTION(75fa3951-0d42-11d3-98b2-000000000000) (MergeSection) */
/*******************************************************************************
**
** Function name:
**
** AddInts
**
** Description:
**
** Special Comments:
**
** Entrypoint for the SQL routine AddIntegers (integer,integer) returns integer.
**
** A stack size of 32,767 bytes has been requested for
** the routine. Normally, this is sufficient memory for most
** invocations of your UDR. If you intend, however, to call
** this routine recursively or other routines that use large
** or unknown stack sizes, you must use mi_call(). mi_call
** checks to insure that sufficient stack space is available.
** For more details regarding this function, look in:
** The DataBlade API Programmer's Manual (see Stack Space
** Allocation in Chapter 11).
**
** Parameters:
**
** None
**
** Return value:
**
** mi_integer
**
** History:
**
** 05/18/1999 - Generated by BladeSmith Version 4.00.517.
**
** Identification:
**
** NOTE:
**
** BladeSmith will add and remove parameters from the function
** prototype, and will generate tracing calls. Only edit code
** in blocks marked Your_<section>. Any other modifications
** will require manual merging.
**
********************************************************************************
*/
UDREXPORT
mi_integer AddInts
(
mi_integer Int1,
mi_integer Int2,
MI_FPARAM * Gen_fparam /* Standard info - see DBDK docs. */
)
{
MI_CONNECTION * Gen_Con; /* The connection handle. */
mi_integer Gen_RetVal; /* The return value. */
/* ------ {{Your_Declarations (PreserveSection) BEGIN ------ */
/* ------ }}Your_Declarations (#0000) END ------ */
/* Use the NULL connection. */
Gen_Con = NULL;
/* ------ {{Your_Code (PreserveSection) BEGIN ------ */
Gen_RetVal = Int1 + Int2;
/* ------ }}Your_Code (#ORVL) END ------ */
/* Return the function's return value. */
return Gen_RetVal;
}
/* }}FUNCTION (#UQP0) */
#ifdef __cplusplus
}
#endif