Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6078543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:50:45+00:00 2026-05-23T10:50:45+00:00

Considering this answer for the benefit of typedefs on basic types and why they

  • 0

Considering this answer for the benefit of typedefs on basic types and why they are used, is there any way to ensure that in your project you did not use a basic type and used the typedef counterparts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:50:45+00:00Added an answer on May 23, 2026 at 10:50 am

    If you really, absolutely want to ban native types but allow typedefs, I guess you can always do something like:

    #include <stdint.h>
    
    #define int please_use_stdint_typedefs_rather_than_native_types
    
    int main()
    {
        int32_t good;  // Good typedef.
        int evil;      // Evil native type.
    }
    

    $ gcc -c int_forbidden.c 
    int_forbidden.c: In function ‘main’:
    int_forbidden.c:8: error: ‘please_use_stdint_typedefs_rather_than_native_types’ undeclared (first use in this function)
    int_forbidden.c:8: error: (Each undeclared identifier is reported only once
    int_forbidden.c:8: error: for each function it appears in.)
    int_forbidden.c:8: error: expected ‘;’ before ‘evil’
    

    That said, I don’t think outright banning native types is a good idea in the general case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Considering this code, can I be absolutely sure that the finally block always executes,
I have this small code library that I'm considering releasing into Open Source. I
I was asked this question : I was not able to answer - Any
Is there any .NET type that would represent a set of key-value pairs where
A line in this answer , Get used to using the Mac on its
Considering Simon Mourier's answer to this question: Processing Microsoft Office Outlook 2003/2007 email messages…
Considering that the family of iDevices is expanding, I guess this is a problem
Which solution should be generally preferred, considering that the change is source compatible? This
Greetings, Apologies in advance that I have not researched this toughly enough to answer
considering this example: public static void main(final String[] args) { final List<String> myList =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.