2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2018-11-30 18:39:55 +03:00
|
|
|
* vim: set ts=8 sts=2 et sw=2 tw=80:
|
2013-04-17 00:47:10 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1998-10-14 14:22:38 +04:00
|
|
|
|
2018-02-21 19:30:19 +03:00
|
|
|
#ifndef js_Printf_h
|
|
|
|
#define js_Printf_h
|
1998-10-14 14:22:38 +04:00
|
|
|
|
2017-01-13 20:25:59 +03:00
|
|
|
#include "mozilla/Printf.h"
|
2015-12-12 20:41:00 +03:00
|
|
|
|
1998-10-14 14:22:38 +04:00
|
|
|
#include <stdarg.h>
|
2013-07-24 04:34:50 +04:00
|
|
|
|
|
|
|
#include "jstypes.h"
|
2017-03-04 01:10:11 +03:00
|
|
|
#include "js/Utility.h"
|
1998-10-14 14:22:38 +04:00
|
|
|
|
2017-01-13 20:16:17 +03:00
|
|
|
/* Wrappers for mozilla::Smprintf and friends that are used throughout
|
|
|
|
JS. */
|
|
|
|
|
2018-11-19 20:02:47 +03:00
|
|
|
extern JS_PUBLIC_API JS::UniqueChars JS_smprintf(const char* fmt, ...)
|
2017-01-13 20:16:17 +03:00
|
|
|
MOZ_FORMAT_PRINTF(1, 2);
|
|
|
|
|
2018-11-19 20:02:47 +03:00
|
|
|
extern JS_PUBLIC_API JS::UniqueChars JS_sprintf_append(JS::UniqueChars&& last,
|
|
|
|
const char* fmt, ...)
|
2017-01-13 20:16:17 +03:00
|
|
|
MOZ_FORMAT_PRINTF(2, 3);
|
|
|
|
|
2018-11-19 20:02:47 +03:00
|
|
|
extern JS_PUBLIC_API JS::UniqueChars JS_vsmprintf(const char* fmt, va_list ap)
|
2017-05-04 21:10:19 +03:00
|
|
|
MOZ_FORMAT_PRINTF(1, 0);
|
2018-11-19 20:02:47 +03:00
|
|
|
extern JS_PUBLIC_API JS::UniqueChars JS_vsprintf_append(JS::UniqueChars&& last,
|
|
|
|
const char* fmt,
|
|
|
|
va_list ap)
|
2017-05-04 21:10:19 +03:00
|
|
|
MOZ_FORMAT_PRINTF(2, 0);
|
1998-10-14 14:22:38 +04:00
|
|
|
|
2018-02-21 19:30:19 +03:00
|
|
|
#endif /* js_Printf_h */
|