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 6170355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:01:21+00:00 2026-05-23T23:01:21+00:00

Working with a piece of code right now that features declarations of the form:

  • 0

Working with a piece of code right now that features declarations of the form:

typedef PACKED(struct) 
{

// some stuff in here

} struct_name; 

now…PACKED is a macro on our part. What the heck does this syntax mean? I don’t understand the use of parenthesis. This is not compiling, so I’m guessing this is probably incorrect. Is this close to some other valid syntax, or is it just nonsense?

If it is almost valid..how is this code actually supposed to be written and what is it supposed to mean?

The only form of typedef struct I’ve seen and can find online is:

typedef struct
{
 // some stuff in here
} struct_name;

Solved: All I needed to realize was that struct was a parameter in a macro function. Thanks!

  • 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-23T23:01:22+00:00Added an answer on May 23, 2026 at 11:01 pm

    Usually something in all caps is a macro. In this case it’s probably supposed to decorate the struct declaration with the syntax for creating a packed structure, which will vary based on the compiler used.

    Chances are you’re completely missing the definition of the PACKED macro.

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

Sidebar

Related Questions

I'm working on a piece of code that I inherited and am trying to
I am working on a piece of code that writes data from 4 different
I am working on a piece of code which uses regular expressions in c.
The following piece of code is working on Android devices and iPhone simulator but
Why isn't the following piece of code working in IE8? <select> <option onclick=javascript: alert('test');>5</option>
I'm trying to create a piece of code but cannot get it working. The
I'm working on a small piece of ksh code for a simple task. I
I'm working on a piece of software that would work well with an iTunes
I'm working on a Flash project right now and I am having to force
I have this piece of code that takes my xml and puts it into

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.