Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8adc838f
Commit
8adc838f
authored
Jan 13, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various cleanups for the i386_solaris environment
parent
43416529
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
24 deletions
+17
-24
src/backend/parser/scan.c
src/backend/parser/scan.c
+14
-14
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+1
-8
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+2
-2
No files found.
src/backend/parser/scan.c
View file @
8adc838f
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.
6 1998/01/05 03:32:34 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.
7 1998/01/13 19:28:29 scrappy
Exp $
*/
#define FLEX_SCANNER
...
...
@@ -539,7 +539,7 @@ char *yytext;
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.
6 1998/01/05 03:32:34 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.
7 1998/01/13 19:28:29 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -954,7 +954,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
ival
=
strtol
((
char
*
)
literal
,
&
endptr
,
2
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad binary integer input '%s'"
,
literal
);
elog
(
ERROR
,
"Bad binary integer input '%s'"
,
literal
);
return
(
ICONST
);
}
YY_BREAK
...
...
@@ -965,7 +965,7 @@ YY_RULE_SETUP
#line 206 "scan.l"
{
if
((
llen
+
yyleng
)
>
(
MAX_PARSE_BUFFER
-
1
))
elog
(
ABORT
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
elog
(
ERROR
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
memcpy
(
literal
+
llen
,
yytext
,
yyleng
+
1
);
llen
+=
yyleng
;
}
...
...
@@ -997,7 +997,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
ival
=
strtol
((
char
*
)
literal
,
&
endptr
,
16
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad hexadecimal integer input '%s'"
,
literal
);
elog
(
ERROR
,
"Bad hexadecimal integer input '%s'"
,
literal
);
return
(
ICONST
);
}
YY_BREAK
...
...
@@ -1026,7 +1026,7 @@ YY_RULE_SETUP
#line 243 "scan.l"
{
if
((
llen
+
yyleng
)
>
(
MAX_PARSE_BUFFER
-
1
))
elog
(
ABORT
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
elog
(
ERROR
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
memcpy
(
literal
+
llen
,
yytext
,
yyleng
+
1
);
llen
+=
yyleng
;
}
...
...
@@ -1036,7 +1036,7 @@ YY_RULE_SETUP
#line 249 "scan.l"
{
if
((
llen
+
yyleng
-
1
)
>
(
MAX_PARSE_BUFFER
-
1
))
elog
(
ABORT
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
elog
(
ERROR
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
memcpy
(
literal
+
llen
,
yytext
,
yyleng
+
1
);
*
(
literal
+
llen
)
=
'\''
;
llen
+=
yyleng
;
...
...
@@ -1047,7 +1047,7 @@ YY_RULE_SETUP
#line 257 "scan.l"
{
if
((
llen
+
yyleng
-
1
)
>
(
MAX_PARSE_BUFFER
-
1
))
elog
(
ABORT
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
elog
(
ERROR
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
memcpy
(
literal
+
llen
,
yytext
,
yyleng
+
1
);
llen
+=
yyleng
;
}
...
...
@@ -1081,7 +1081,7 @@ YY_RULE_SETUP
#line 277 "scan.l"
{
if
((
llen
+
yyleng
)
>
(
MAX_PARSE_BUFFER
-
1
))
elog
(
ABORT
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
elog
(
ERROR
,
"quoted string parse buffer of %d chars exceeded"
,
MAX_PARSE_BUFFER
);
memcpy
(
literal
+
llen
,
yytext
,
yyleng
+
1
);
llen
+=
yyleng
;
}
...
...
@@ -1159,7 +1159,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
ival
=
strtol
((
char
*
)
yytext
,
&
endptr
,
10
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad integer input '%s'"
,
yytext
);
elog
(
ERROR
,
"Bad integer input '%s'"
,
yytext
);
return
(
ICONST
);
}
YY_BREAK
...
...
@@ -1173,7 +1173,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
dval
=
strtod
(((
char
*
)
yytext
),
&
endptr
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad float8 input '%s'"
,
yytext
);
elog
(
ERROR
,
"Bad float8 input '%s'"
,
yytext
);
CheckFloat8Val
(
yylval
.
dval
);
return
(
FCONST
);
}
...
...
@@ -1187,7 +1187,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
ival
=
strtol
((
char
*
)
yytext
,
&
endptr
,
10
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad integer input '%s'"
,
yytext
);
elog
(
ERROR
,
"Bad integer input '%s'"
,
yytext
);
return
(
ICONST
);
}
YY_BREAK
...
...
@@ -1200,7 +1200,7 @@ YY_RULE_SETUP
errno
=
0
;
yylval
.
dval
=
strtod
((
char
*
)
yytext
,
&
endptr
);
if
(
*
endptr
!=
'\0'
||
errno
==
ERANGE
)
elog
(
ABORT
,
"Bad float input '%s'"
,
yytext
);
elog
(
ERROR
,
"Bad float input '%s'"
,
yytext
);
CheckFloat8Val
(
yylval
.
dval
);
return
(
FCONST
);
}
...
...
@@ -2133,7 +2133,7 @@ int main()
void
yyerror
(
char
message
[])
{
elog
(
ABORT
,
"parser: %s at or near
\"
%s
\"
"
,
message
,
yytext
);
elog
(
ERROR
,
"parser: %s at or near
\"
%s
\"
"
,
message
,
yytext
);
}
int
yywrap
()
...
...
src/backend/utils/adt/float.c
View file @
8adc838f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2
6 1998/01/05 16:39:59 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2
7 1998/01/13 19:28:32 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -105,15 +105,8 @@ extern double rint(double x);
#endif
#ifndef HAVE_ISINF
#define isinf my_isinf
static
int
isinf
(
double
x
);
#else
extern
int
isinf
(
double
x
);
#endif
#endif
/* ========== USER I/O ROUTINES ========== */
...
...
src/include/storage/s_lock.h
View file @
8adc838f
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
5 1998/01/04 19:12:38
scrappy Exp $
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.1
6 1998/01/13 19:28:39
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -117,7 +117,7 @@
* Solaris 2
*/
#if
defined(i386_solaris
) || \
#if
(defined(__i386__) && defined(__sun__)
) || \
defined(sparc_solaris)
/* for xxxxx_solaris, this is defined in port/.../tas.s */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment