printf.c (246e7a2b6494cd991b08ac669ed761ecea0cc98c) printf.c (22ea47ec90b51ecbe6d2883ccee30d312c162044)
1/*-
2 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
3 * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

61#include <stdlib.h>
62#include <string.h>
63#include <unistd.h>
64#include <wchar.h>
65
66#ifdef SHELL
67#define main printfcmd
68#include "bltin/bltin.h"
1/*-
2 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
3 * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

61#include <stdlib.h>
62#include <string.h>
63#include <unistd.h>
64#include <wchar.h>
65
66#ifdef SHELL
67#define main printfcmd
68#include "bltin/bltin.h"
69#include "error.h"
70#include "options.h"
71#endif
72
73#define PF(f, func) do { \
74 char *b = NULL; \
75 if (havewidth) \
76 if (haveprec) \
77 (void)asprintf(&b, f, fieldwidth, precision, func); \

--- 610 unchanged lines hidden ---
69#include "options.h"
70#endif
71
72#define PF(f, func) do { \
73 char *b = NULL; \
74 if (havewidth) \
75 if (haveprec) \
76 (void)asprintf(&b, f, fieldwidth, precision, func); \

--- 610 unchanged lines hidden ---