|
Last change
on this file since 53f4b55 was 7959e56, checked in by Michael Brooks <mlbrooks@…>, 11 months ago |
|
Eliminate libcfa-build warnings of missing int-to-pointer casts.
Replace a zero_t variable use with literal 0 when it's an argument to an intrinsic and we're generating final C code. Partially revert e0330d2cd1a. Such intrinsics are initialization/assignment of pointers; using the variable implies a missing cast, while using literal 0 needs no cast.
CodeGenerator.hpp
CodeGenerator.cpp
Put attibute unused on all zero_t/one_t object decls. It is needed on those whose uses are rewritten by the rule above.
Generate.cpp
|
-
Property mode
set to
100644
|
|
File size:
112 bytes
|
| Line | |
|---|
| 1 | It's a Zero!
|
|---|
| 2 | It's a One!
|
|---|
| 3 | It's a Number!
|
|---|
| 4 | 2 2
|
|---|
| 5 | 0 0
|
|---|
| 6 | 42 42
|
|---|
| 7 | 0 0
|
|---|
| 8 | 1 1
|
|---|
| 9 | 42 42
|
|---|
| 10 | 1 1
|
|---|
| 11 | zero true
|
|---|
| 12 | zero true
|
|---|
| 13 | one false
|
|---|
| 14 | one false
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.