Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
427e488b
Commit
427e488b
authored
Apr 27, 2006
by
Bill Medland
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Support long long constants if configure says long long is available
parent
959a8420
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
ppl.l
libs/wpp/ppl.l
+2
-1
wpp_private.h
libs/wpp/wpp_private.h
+9
-3
No files found.
libs/wpp/ppl.l
View file @
427e488b
...
...
@@ -156,6 +156,7 @@ cident [a-zA-Z_][0-9a-zA-Z_]*
ul [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL]
%{
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -823,7 +824,7 @@ static int make_number(int radix, YYSTYPE *val, const char *str, int len)
if(is_ll)
{
/* Assume as in the declaration of wrc_ull_t and wrc_sll_t */
#if
defined(SIZEOF_LONGLONG) && SIZEOF_LONGLONG >= 8
#if
def HAVE_LONG_LONG
if (is_u)
{
val->ull = strtoull(str, NULL, radix);
...
...
libs/wpp/wpp_private.h
View file @
427e488b
...
...
@@ -20,6 +20,10 @@
#ifndef __WINE_WPP_PRIVATE_H
#define __WINE_WPP_PRIVATE_H
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <stdio.h>
#include <string.h>
...
...
@@ -133,14 +137,16 @@ typedef struct
/*
* I assume that 'long long' exists in the compiler when it has a size
* of 8 or bigger. If not, then we revert to a simple 'long' for now.
* If the configure says we have long long then we can use it. Presumably
* if we have long long then we have strtoull and strtoll too. If that is
* not the case we will need to add to the configure tests.
* If we do not have long long , then we revert to a simple 'long' for now.
* This should prevent most unexpected things with other compilers than
* gcc and egcs for now.
* In the future it should be possible to use another way, like a
* structure, so that we can emulate the MS compiler.
*/
#if
defined(SIZEOF_LONGLONG) && SIZEOF_LONGLONG >= 8
#if
def HAVE_LONG_LONG
typedef
long
long
wrc_sll_t
;
typedef
unsigned
long
long
wrc_ull_t
;
#else
...
...
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