head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	perseant-exfatfs-base-20250801:1.1.1.1
	netbsd-11:1.1.1.1.0.30
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	perseant-exfatfs-base-20240630:1.1.1.1
	perseant-exfatfs:1.1.1.1.0.28
	perseant-exfatfs-base:1.1.1.1
	netbsd-8-3-RELEASE:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.26
	netbsd-10-base:1.1.1.1
	netbsd-9-3-RELEASE:1.1.1.1
	cjep_sun2x-base1:1.1.1.1
	cjep_sun2x:1.1.1.1.0.24
	cjep_sun2x-base:1.1.1.1
	cjep_staticlib_x-base1:1.1.1.1
	netbsd-9-2-RELEASE:1.1.1.1
	cjep_staticlib_x:1.1.1.1.0.22
	cjep_staticlib_x-base:1.1.1.1
	netbsd-9-1-RELEASE:1.1.1.1
	phil-wifi-20200421:1.1.1.1
	phil-wifi-20200411:1.1.1.1
	is-mlppp:1.1.1.1.0.20
	is-mlppp-base:1.1.1.1
	phil-wifi-20200406:1.1.1.1
	netbsd-8-2-RELEASE:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	phil-wifi-20191119:1.1.1.1
	netbsd-9:1.1.1.1.0.18
	netbsd-9-base:1.1.1.1
	phil-wifi-20190609:1.1.1.1
	netbsd-8-1-RELEASE:1.1.1.1
	netbsd-8-1-RC1:1.1.1.1
	pgoyette-compat-merge-20190127:1.1.1.1
	pgoyette-compat-20190127:1.1.1.1
	pgoyette-compat-20190118:1.1.1.1
	pgoyette-compat-1226:1.1.1.1
	pgoyette-compat-1126:1.1.1.1
	pgoyette-compat-1020:1.1.1.1
	pgoyette-compat-0930:1.1.1.1
	pgoyette-compat-0906:1.1.1.1
	pgoyette-compat-0728:1.1.1.1
	netbsd-8-0-RELEASE:1.1.1.1
	phil-wifi:1.1.1.1.0.16
	phil-wifi-base:1.1.1.1
	pgoyette-compat-0625:1.1.1.1
	netbsd-8-0-RC2:1.1.1.1
	pgoyette-compat-0521:1.1.1.1
	pgoyette-compat-0502:1.1.1.1
	pgoyette-compat-0422:1.1.1.1
	netbsd-8-0-RC1:1.1.1.1
	pgoyette-compat-0415:1.1.1.1
	pgoyette-compat-0407:1.1.1.1
	pgoyette-compat-0330:1.1.1.1
	pgoyette-compat-0322:1.1.1.1
	pgoyette-compat-0315:1.1.1.1
	pgoyette-compat:1.1.1.1.0.14
	pgoyette-compat-base:1.1.1.1
	matt-nb8-mediatek:1.1.1.1.0.12
	matt-nb8-mediatek-base:1.1.1.1
	perseant-stdc-iso10646:1.1.1.1.0.10
	perseant-stdc-iso10646-base:1.1.1.1
	netbsd-8:1.1.1.1.0.8
	netbsd-8-base:1.1.1.1
	prg-localcount2-base3:1.1.1.1
	prg-localcount2-base2:1.1.1.1
	prg-localcount2-base1:1.1.1.1
	prg-localcount2:1.1.1.1.0.6
	prg-localcount2-base:1.1.1.1
	pgoyette-localcount:1.1.1.1.0.4
	pgoyette-localcount-20170426:1.1.1.1
	bouyer-socketcan:1.1.1.1.0.2
	bouyer-socketcan-base1:1.1.1.1
	OpenBSD-20170410:1.1.1.1
	OPENBSD:1.1.1;
locks; strict;
comment	@ * @;


1.1
date	2017.04.10.16.34.18;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	P9WVAD4QdW3Fv0Nz;

1.1.1.1
date	2017.04.10.16.34.18;	author christos;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1;
next	;
commitid	P9WVAD4QdW3Fv0Nz;

1.1.1.1.2.1
date	2017.04.10.16.34.18;	author christos;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2017.04.10.16.34.19;	author christos;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2017.04.10.16.34.18;	author pgoyette;	state dead;
branches;
next	1.1.1.1.4.2;
commitid	ojV02aOSdzvBqZOz;

1.1.1.1.4.2
date	2017.04.26.02.53.34;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;


desc
@@


1.1
log
@Initial revision
@
text
@/*	$OpenBSD: extern.h,v 1.5 2015/10/10 19:28:54 deraadt Exp $	*/

/*
 * Copyright (c) 2003, Otto Moerbeek <otto@@drijf.net>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <stdbool.h>
#include "bcode.h"


/* inout.c */
void		src_setstream(struct source *, FILE *);
void		src_setstring(struct source *, char *);
struct number	*readnumber(struct source *, u_int);
void		printnumber(FILE *, const struct number *, u_int);
char		*read_string(struct source *);
void		print_value(FILE *, const struct value *, const char *, u_int);
void		print_ascii(FILE *, const struct number *);

/* mem.c */
struct number	*new_number(void);
void		free_number(struct number *);
struct number	*dup_number(const struct number *);
void		*bmalloc(size_t);
void		*breallocarray(void *, size_t, size_t);
char		*bstrdup(const char *p);
void		bn_check(int);
void		bn_checkp(const void *);

/* stack.c */
void		stack_init(struct stack *);
void		stack_free_value(struct value *);
struct value	*stack_dup_value(const struct value *, struct value *);
void		stack_swap(struct stack *);
size_t		stack_size(const struct stack *);
void		stack_dup(struct stack *);
void		stack_pushnumber(struct stack *, struct number *);
void		stack_pushstring(struct stack *stack, char *);
void		stack_push(struct stack *, struct value *);
void		stack_set_tos(struct stack *, struct value *);
struct value	*stack_tos(const struct stack *);
struct value	*stack_pop(struct stack *);
struct number	*stack_popnumber(struct stack *);
char *		stack_popstring(struct stack *);
void		stack_clear(struct stack *);
void		stack_print(FILE *, const struct stack *, const char *,
		    u_int base);
void		frame_assign(struct stack *, size_t, const struct value *);
struct value *	frame_retrieve(const struct stack *, size_t);
/* void		frame_free(struct stack *); */

int		dc_main(int, char **);
@


1.1.1.1
log
@Import OpenBSD's dc.
@
text
@@


1.1.1.1.2.1
log
@file extern.h was added on branch bouyer-socketcan on 2017-04-10 16:34:19 +0000
@
text
@d1 64
@


1.1.1.1.2.2
log
@758508
@
text
@a0 64
/*	$OpenBSD: extern.h,v 1.5 2015/10/10 19:28:54 deraadt Exp $	*/

/*
 * Copyright (c) 2003, Otto Moerbeek <otto@@drijf.net>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <stdbool.h>
#include "bcode.h"


/* inout.c */
void		src_setstream(struct source *, FILE *);
void		src_setstring(struct source *, char *);
struct number	*readnumber(struct source *, u_int);
void		printnumber(FILE *, const struct number *, u_int);
char		*read_string(struct source *);
void		print_value(FILE *, const struct value *, const char *, u_int);
void		print_ascii(FILE *, const struct number *);

/* mem.c */
struct number	*new_number(void);
void		free_number(struct number *);
struct number	*dup_number(const struct number *);
void		*bmalloc(size_t);
void		*breallocarray(void *, size_t, size_t);
char		*bstrdup(const char *p);
void		bn_check(int);
void		bn_checkp(const void *);

/* stack.c */
void		stack_init(struct stack *);
void		stack_free_value(struct value *);
struct value	*stack_dup_value(const struct value *, struct value *);
void		stack_swap(struct stack *);
size_t		stack_size(const struct stack *);
void		stack_dup(struct stack *);
void		stack_pushnumber(struct stack *, struct number *);
void		stack_pushstring(struct stack *stack, char *);
void		stack_push(struct stack *, struct value *);
void		stack_set_tos(struct stack *, struct value *);
struct value	*stack_tos(const struct stack *);
struct value	*stack_pop(struct stack *);
struct number	*stack_popnumber(struct stack *);
char *		stack_popstring(struct stack *);
void		stack_clear(struct stack *);
void		stack_print(FILE *, const struct stack *, const char *,
		    u_int base);
void		frame_assign(struct stack *, size_t, const struct value *);
struct value *	frame_retrieve(const struct stack *, size_t);
/* void		frame_free(struct stack *); */

int		dc_main(int, char **);
@


1.1.1.1.4.1
log
@file extern.h was added on branch pgoyette-localcount on 2017-04-26 02:53:34 +0000
@
text
@d1 64
@


1.1.1.1.4.2
log
@Sync with HEAD
@
text
@a0 64
/*	$OpenBSD: extern.h,v 1.5 2015/10/10 19:28:54 deraadt Exp $	*/

/*
 * Copyright (c) 2003, Otto Moerbeek <otto@@drijf.net>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <stdbool.h>
#include "bcode.h"


/* inout.c */
void		src_setstream(struct source *, FILE *);
void		src_setstring(struct source *, char *);
struct number	*readnumber(struct source *, u_int);
void		printnumber(FILE *, const struct number *, u_int);
char		*read_string(struct source *);
void		print_value(FILE *, const struct value *, const char *, u_int);
void		print_ascii(FILE *, const struct number *);

/* mem.c */
struct number	*new_number(void);
void		free_number(struct number *);
struct number	*dup_number(const struct number *);
void		*bmalloc(size_t);
void		*breallocarray(void *, size_t, size_t);
char		*bstrdup(const char *p);
void		bn_check(int);
void		bn_checkp(const void *);

/* stack.c */
void		stack_init(struct stack *);
void		stack_free_value(struct value *);
struct value	*stack_dup_value(const struct value *, struct value *);
void		stack_swap(struct stack *);
size_t		stack_size(const struct stack *);
void		stack_dup(struct stack *);
void		stack_pushnumber(struct stack *, struct number *);
void		stack_pushstring(struct stack *stack, char *);
void		stack_push(struct stack *, struct value *);
void		stack_set_tos(struct stack *, struct value *);
struct value	*stack_tos(const struct stack *);
struct value	*stack_pop(struct stack *);
struct number	*stack_popnumber(struct stack *);
char *		stack_popstring(struct stack *);
void		stack_clear(struct stack *);
void		stack_print(FILE *, const struct stack *, const char *,
		    u_int base);
void		frame_assign(struct stack *, size_t, const struct value *);
struct value *	frame_retrieve(const struct stack *, size_t);
/* void		frame_free(struct stack *); */

int		dc_main(int, char **);
@


