Skip to content
Discussion options

You must be logged in to vote

From the Guidelines

Including a small extra file from your submission (plus the usual system include files) perfectly reasonable.

Would this qualify as suitable permissible example?


/* prog.h Config */



#define DELAY 123

#define MULTIPLIER 321

#define LF_KEY  'h'

#define UP_KEY  'j'

#define DN_KEY  'k'

#define RT_KEY  'l'



... possible long list, say 30 #define of only constants ...



- - - 

/* prog.c */



#include <prog.h>



Does prog.h count to towards Rule 2 beyond the #include? Or appear as subverting Rule 2?

If the above is what you envision? Is it worth adding as an example to Guidelines? Or leave it as an exercise to the reader?

While a fair question, it's also h…

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
9 replies
@SirWumpus
Comment options

@xexyl
Comment options

@SirWumpus
Comment options

@xexyl
Comment options

@xexyl
Comment options

Comment options

You must be logged in to vote
4 replies
@xexyl
Comment options

@lcn2
Comment options

lcn2 Sep 26, 2026
Maintainer

@xexyl
Comment options

@xexyl
Comment options

Comment options

You must be logged in to vote
3 replies
@xexyl
Comment options

@lcn2
Comment options

lcn2 Sep 26, 2026
Maintainer

@xexyl
Comment options

Answer selected by lcn2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants