Deleted Added
full compact
acpyacc.y (222122) acpyacc.y (235789)
1%{
2/*-
3 * Copyright (c) 2008 Kai Wang
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1%{
2/*-
3 * Copyright (c) 2008 Kai Wang
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/usr.bin/ar/acpyacc.y 222122 2011-05-20 11:29:09Z bcr $");
29__FBSDID("$FreeBSD: head/usr.bin/ar/acpyacc.y 235789 2012-05-22 16:33:10Z bapt $");
30
31#include <sys/mman.h>
32#include <sys/param.h>
33#include <sys/queue.h>
34#include <sys/stat.h>
35#include <archive.h>
36#include <archive_entry.h>
37#include <dirent.h>

--- 11 unchanged lines hidden (view full) ---

49
50struct list {
51 char *str;
52 struct list *next;
53};
54
55
56extern int yylex(void);
30
31#include <sys/mman.h>
32#include <sys/param.h>
33#include <sys/queue.h>
34#include <sys/stat.h>
35#include <archive.h>
36#include <archive_entry.h>
37#include <dirent.h>

--- 11 unchanged lines hidden (view full) ---

49
50struct list {
51 char *str;
52 struct list *next;
53};
54
55
56extern int yylex(void);
57extern int yyparse(void);
58
59static void yyerror(const char *);
60static void arscp_addlib(char *archive, struct list *list);
61static void arscp_addmod(struct list *list);
62static void arscp_clear(void);
63static int arscp_copy(int ifd, int ofd);
64static void arscp_create(char *in, char *out);
65static void arscp_delete(struct list *list);

--- 597 unchanged lines hidden ---
57
58static void yyerror(const char *);
59static void arscp_addlib(char *archive, struct list *list);
60static void arscp_addmod(struct list *list);
61static void arscp_clear(void);
62static int arscp_copy(int ifd, int ofd);
63static void arscp_create(char *in, char *out);
64static void arscp_delete(struct list *list);

--- 597 unchanged lines hidden ---