Former-commit-id:4bfbdad17d
[formerly9f8cb727a5
] [formerly4bfbdad17d
[formerly9f8cb727a5
] [formerly8485b90ff8
[formerly bf53d06834caa780226121334ac1bcf0534c3f16]]] Former-commit-id:8485b90ff8
Former-commit-id:33a67cdd82
[formerlya28d70b5c5
] Former-commit-id:e5543a0e86
55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
#include "geminc.h"
|
|
#include "gemprm.h"
|
|
#include "ercmn.h"
|
|
/*
|
|
* Fortran prototype (see proto_gemlib.h)
|
|
*/
|
|
|
|
/*
|
|
* C prototype (see fortran_wrapper.h)
|
|
*/
|
|
void erc_wmsg (const char *errgrp, int *errnum, const char *errstr, int *iret);
|
|
|
|
/*
|
|
* underscore issue (uscore.h)
|
|
*/
|
|
#define er_wmsg er_wmsg_
|
|
|
|
void erc_wmsg (const char *errgrp, int *errnum, const char *errstr, int *iret)
|
|
/************************************************************************
|
|
* erc_wmsg *
|
|
* *
|
|
* This subroutine is a wrapper function for gg_maps. It is used by *
|
|
* the Java JNA to resolve string size issues. The error message is *
|
|
* written to a buffer. This option is set in IN_BDTA. *
|
|
* *
|
|
* ggc_maps ( proj, garea, imgfil, idrpfl, iret ) *
|
|
* *
|
|
* Input parameters: *
|
|
* *proj const char Map projection *
|
|
* *garea const char Graphic area *
|
|
* *imgfil const char Image file name *
|
|
* *
|
|
* Output parameters: *
|
|
* *idrpfl int Image drop flag *
|
|
* 0 = No input from user *
|
|
* 1 = Drop image *
|
|
* 2 = Do not drop image *
|
|
* *iret int Return code *
|
|
* 0 = normal return *
|
|
** *
|
|
* Log: *
|
|
* T. Lee/NCEP 4/10 C wrapper for ER_WMSG *
|
|
************************************************************************/
|
|
{
|
|
*iret = 0;
|
|
|
|
/*
|
|
* Call Fortran funtion ER_WMSG
|
|
*/
|
|
//printf ( " In er_cwmsg xxxxxxxxxxxxxxxxxx error number %d \n", *errnum);
|
|
er_wmsg ( (char *)errgrp, errnum, (char *)errstr, iret,
|
|
strlen(errgrp), strlen(errstr));
|
|
//printf ( " In er_cwmsg yyyyyyyyyyyyyyyyyy number of err %d \n", nermsg);
|
|
return;
|
|
}
|