mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
m4: remove b4_function_define and b4_function_declare
* data/skeletons/c.m4: here.
This commit is contained in:
@@ -507,15 +507,6 @@ m4_define([b4_symbol_value],
|
|||||||
## ---------------------- ##
|
## ---------------------- ##
|
||||||
|
|
||||||
|
|
||||||
# b4_function_define(NAME, RETURN-VALUE, [DECL1, NAME1], ...)
|
|
||||||
# -----------------------------------------------------------
|
|
||||||
# Declare the function NAME in C.
|
|
||||||
m4_define([b4_function_define],
|
|
||||||
[$2
|
|
||||||
$1 (b4_formals(m4_shift2($@)))[]dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# b4_formals([DECL1, NAME1], ...)
|
# b4_formals([DECL1, NAME1], ...)
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
# The formal arguments of a C function definition.
|
# The formal arguments of a C function definition.
|
||||||
@@ -529,21 +520,6 @@ m4_define([b4_formal],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ----------------------- ##
|
|
||||||
## Declaring C functions. ##
|
|
||||||
## ----------------------- ##
|
|
||||||
|
|
||||||
|
|
||||||
# b4_function_declare(NAME, RETURN-VALUE, [DECL1, NAME1], ...)
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
# Declare the function NAME.
|
|
||||||
m4_define([b4_function_declare],
|
|
||||||
[$2 $1 (b4_formals(m4_shift2($@)));[]dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## --------------------- ##
|
## --------------------- ##
|
||||||
## Calling C functions. ##
|
## Calling C functions. ##
|
||||||
## --------------------- ##
|
## --------------------- ##
|
||||||
|
|||||||
Reference in New Issue
Block a user