Skip to content

Commit

Permalink
Merge branch 'cap-types-docs' into 'master'
Browse files Browse the repository at this point in the history
Add sentence about capitalized typedefs (from Stefan)

See merge request integer/scip!3588
  • Loading branch information
GioniMexi committed Nov 16, 2024
2 parents 4d65177 + 4ea43dc commit e899d0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/xternal.c
Original file line number Diff line number Diff line change
Expand Up @@ -7868,7 +7868,9 @@
* These functions should follow the naming style `SCIP<operation><component>...`, e.g., <code>SCIPcreateVar()</code> or <code>SCIPaddVarLocks</code>.
* - To ensure functions of the public API being reachable in shared libraries, their declaration needs to contain the <code>SCIP_EXPORT</code> attribute.
* - Public types (typedef's, enumerations) are defined in file <code>type_<component>.h</code>.
* Type names follow the style <code>SCIP_<COMPONENT>...</code>.
* Type names follow the style <code>SCIP_<COMPONENT>...</code>. For every struct, we have a typedef that shortens the name
* (so one could for instance use <code>SCIP_PARAM</code> instead of <code>struct SCIP_Param</code>).
* The convention is to have the mixed-casing for the struct name, and then all-capital for the typedef's type. Similar for enums.
* - Structs that need to be accessed by several source files are defined in <code>struct_<component>.h</code>.
* <code>struct_<component>.h</code> is usually included only by <code><component>.c</code> and maybe <code>scip_<component>.c</code>.
* Exceptions are due to manual inlining of functions via macros when compiling for optimized mode.
Expand Down

0 comments on commit e899d0b

Please sign in to comment.