Ticket #21 (closed enhancement: fixed)
Add stdint.h / inttypes.h
| Reported by: | debrouxl | Owned by: | debrouxl |
|---|---|---|---|
| Priority: | major | Milestone: | Version 1.00 |
| Component: | project | Version: | 0.96 |
| Keywords: | Cc: |
Description
These (simple) standard C99 headers are absent from TIGCC.
Kevin didn't merge PpHd?'s patch for stdint.h, because he says it came with no documentation in TIGCC help system format. I don't think Kevin was _100%_ wrong refusing the patch. That said, the TIGCC help system makes it harder than needed to create documentation of several dozen typedefs + macros. We could use some auto-generation from a template here...
Attachments
Change History
Changed 3 years ago by debrouxl
-
attachment
genstdint.pl
added
Simple generator for stdint.h documentation
Changed 3 years ago by debrouxl
-
attachment
inttypes.h
added
inttypes.h file used as input for geninttypes.pl
comment:2 Changed 3 years ago by debrouxl
- Status changed from new to closed
- Resolution set to fixed
r1277 adds several macros of inttypes.h. As detailed in inttypes.hsh, some definitions mandated by the C99 standard are missing in this inttypes.h, because the 64-bit types are not handled by printf and scanf.
This ticket can therefore be closed.
Changed 3 years ago by debrouxl
-
attachment
geninttypes.pl
added
Simple generator for inttypes.h documentation
comment:3 Changed 3 years ago by debrouxl
- Owner set to debrouxl
r1292 fixes a name clash between PRIx*.hsf and PRIX*.hsf on case-insensitive filesystems.

I've just committed (r1267) documentation/definition files for stdint.h.
Notes (see http://box.godzil.net/pipermail/tigccpp/2008-September/000031.html ):
To build the headers, make sure that the trunk/tigcc/doc/Programs/HelpSystem.ini contains correct values, e.g.
Then, add the following empty stdint.h in C:\include\C:
You can now run trunk/tigcc/doc/Programs/Update/UpdateInclude.exe (it has always worked perfectly for me under Wine latest git) to generate an updated documentation in C:\docfiles and updated headers in C:\include\C.