Jump to content

Why is this code is not wrong?


Virus.V

Recommended Posts

When I use uGFX, I do not know how to get the "content change event" or "focus event" of the "txtedit" object, for example, when the object is focused, execute some code to display the virtual keyboard.
So I read uGFX source code trying to achieve this function, but I encountered a little problem.

In the "gevent.h" file on the 66th line, there is such a code:

typedef struct GSource_t GSource, * GSourceHandle;

I did not find the structure named GSource_t where the definition, but the compiler can be, can also run, why?

I think this code should be equivalent to the following code:

typedef struct GSource_t{} GSource, * GSourceHandle;

Is this right?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...