Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1527 ints #1938

Merged
merged 1 commit into from
Jul 27, 2021
Merged

1527 ints #1938

merged 1 commit into from
Jul 27, 2021

Conversation

fbs
Copy link
Member

@fbs fbs commented Jul 21, 2021

Fixes #1527

Checklist
  • Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
  • User-visible and non-trivial changes updated in CHANGELOG.md
  • The new behaviour is covered by tests

These size suffixes are often used in C and might end up in a bpftrace
program through pre-processor macros, e.g.

`#define NSEC_PER_SEC	1000000000L`

This adds basic parsing support to avoid breaking programs. No attempt
is made to fully validate it (uLl would be invalid) nor to use it as
actual type hint. This can be added in the future if needed.

Fixes bpftrace#1527
@fbs fbs merged commit 077339e into bpftrace:master Jul 27, 2021
@fbs fbs deleted the 1527_ints branch July 27, 2021 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support size specifier in integer literals (e.g. 100ULL)
2 participants