define warning( in SWI emulation: just a stub for now.

This commit is contained in:
Vítor Santos Costa 2010-05-05 16:31:08 +01:00
parent 903b0df915
commit 1d3f971511
2 changed files with 13 additions and 0 deletions

View File

@ -626,6 +626,7 @@ extern word lookupAtom(const char *s, size_t len);
extern atom_t lookupUCSAtom(const pl_wchar_t *s, size_t len); extern atom_t lookupUCSAtom(const pl_wchar_t *s, size_t len);
extern int toIntegerNumber(Number n, int flags); extern int toIntegerNumber(Number n, int flags);
extern int get_atom_ptr_text(Atom a, PL_chars_t *text); extern int get_atom_ptr_text(Atom a, PL_chars_t *text);
extern int warning(const char *fm, ...);
/**** stuff from pl-files.c ****/ /**** stuff from pl-files.c ****/
void initFiles(void); void initFiles(void);

View File

@ -596,3 +596,15 @@ X_API int PL_handle_signals(void)
return 0; return 0;
} }
/* just a stub for now */
int
warning(const char *fm, ...)
{ va_list args;
va_start(args, fm);
fprintf(stderr,"warning: %s\n", fm);
va_end(args);
return TRUE;
}