File tree Expand file tree Collapse file tree 9 files changed +18
-396
lines changed Expand file tree Collapse file tree 9 files changed +18
-396
lines changed Original file line number Diff line number Diff line change 4
4
# Makefile for pgeasy library
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/interfaces/libpgeasy/Attic/Makefile.in,v 1.2 1999/10/11 18:16:06 momjian Exp $
7
+ # $Header: /cvsroot/pgsql/src/interfaces/libpgeasy/Attic/Makefile.in,v 1.3 1999/10/11 18:51:09 momjian Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -15,11 +15,13 @@ SO_MINOR_VERSION= 0
15
15
SRCDIR = @top_srcdir@
16
16
include $(SRCDIR ) /Makefile.global
17
17
18
+ CFLAGS+ = -I$(LIBPQDIR )
19
+
18
20
ifdef KRBVERS
19
21
CFLAGS+ = $(KRBFLAGS )
20
22
endif
21
23
22
- OBJS = pgeasy .o halt.o
24
+ OBJS = libpgeasy .o halt.o
23
25
24
26
SHLIB_LINK+ = -L../libpq -lpq
25
27
@@ -38,9 +40,9 @@ include $(SRCDIR)/Makefile.shlib
38
40
39
41
install : install-headers install-lib $(install-shlib-dep )
40
42
41
- install-headers : pgeasy .h
43
+ install-headers : libpgeasy .h
42
44
@if [ ! -d $( HEADERDIR) ]; then mkdir $(HEADERDIR ) ; fi
43
- $(INSTALL ) $(INSTLOPTS ) pgeasy .h $(HEADERDIR ) /pgeasy .h
45
+ $(INSTALL ) $(INSTLOPTS ) libpgeasy .h $(HEADERDIR ) /libpgeasy .h
44
46
45
47
.PHONY : clean
46
48
Original file line number Diff line number Diff line change 6
6
#include <stdio.h>
7
7
#include <time.h>
8
8
#include <libpq-fe.h>
9
- #include "halt.h"
10
- #include "pgeasy .h"
9
+ #include "../ halt.h"
10
+ #include "libpgeasy .h"
11
11
12
12
int
13
13
main (int argc , char * * argv )
Original file line number Diff line number Diff line change 7
7
8
8
#include <stdio.h>
9
9
#include <time.h>
10
- #include <halt.h>
11
10
#include <libpq-fe.h>
12
- #include <pgeasy.h>
11
+ #include "../halt.h"
12
+ #include "libpgeasy.h"
13
13
14
14
int
15
15
main (int argc , char * * argv )
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
#include <stdio.h>
7
- #include "halt.h"
8
7
#include <libpq-fe.h>
9
- #include "pgeasy.h"
8
+ #include "../halt.h"
9
+ #include "libpgeasy.h"
10
10
11
11
int
12
12
main (int argc , char * * argv )
Original file line number Diff line number Diff line change 5
5
** This is used to print out error messages and exit
6
6
*/
7
7
8
- #include <varargs .h>
8
+ #include <stdarg .h>
9
9
#include <signal.h>
10
10
#include <stdio.h>
11
11
#include <stdlib.h>
12
12
#include <string.h>
13
13
#include <errno.h>
14
-
14
+ #include "halt.h"
15
15
16
16
/*-------------------------------------------------------------------------
17
17
**
18
18
** halt - print error message, and call clean up routine or exit
19
19
**
20
20
**------------------------------------------------------------------------*/
21
21
22
- /*VARARGS*/
23
22
void
24
- halt (va_alist )
25
- va_dcl
23
+ halt (char * format , ...)
26
24
{
27
25
va_list arg_ptr ;
28
- char * format ,
29
- * pstr ;
26
+ char * pstr ;
30
27
void (* sig_func ) ();
31
28
32
- va_start (arg_ptr );
33
- format = va_arg (arg_ptr , char * );
29
+ va_start (arg_ptr , format );
34
30
if (strncmp (format , "PERROR" , 6 ) != 0 )
35
31
vfprintf (stderr , format , arg_ptr );
36
32
else
Original file line number Diff line number Diff line change 3
3
**
4
4
*/
5
5
6
- void halt ();
6
+ void halt (char * format ,... );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments