xref: /aosp_15_r20/external/obstack/android/include/obstack.h (revision 6912a2bee9c91e2e65d305b4d8eb5813eb26cd9f)
1*6912a2beSHONG Yifan /*
2*6912a2beSHONG Yifan  * Copyright 2021, The Android Open Source Project
3*6912a2beSHONG Yifan  *
4*6912a2beSHONG Yifan  * Licensed under the Apache License, Version 2.0 (the "License");
5*6912a2beSHONG Yifan  * you may not use this file except in compliance with the License.
6*6912a2beSHONG Yifan  * You may obtain a copy of the License at
7*6912a2beSHONG Yifan  *
8*6912a2beSHONG Yifan  *      http://www.apache.org/licenses/LICENSE-2.0
9*6912a2beSHONG Yifan  *
10*6912a2beSHONG Yifan  * Unless required by applicable law or agreed to in writing, software
11*6912a2beSHONG Yifan  * distributed under the License is distributed on an "AS IS" BASIS,
12*6912a2beSHONG Yifan  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*6912a2beSHONG Yifan  * See the License for the specific language governing permissions and
14*6912a2beSHONG Yifan  * limitations under the License.
15*6912a2beSHONG Yifan  */
16*6912a2beSHONG Yifan 
17*6912a2beSHONG Yifan /*
18*6912a2beSHONG Yifan  * This is a wrapper around gnulib's obstack.h to add obstack_printf.
19*6912a2beSHONG Yifan  */
20*6912a2beSHONG Yifan 
21*6912a2beSHONG Yifan #pragma once
22*6912a2beSHONG Yifan 
23*6912a2beSHONG Yifan #include_next <obstack.h>
24*6912a2beSHONG Yifan 
25*6912a2beSHONG Yifan int obstack_printf(struct obstack *obs, const char *format, ...)
26*6912a2beSHONG Yifan   __attribute__((__format__(printf, 2, 3)));
27