novelrt / NovelRT

A cross-platform 2D game engine accompanied by a strong toolset for visual novels.
MIT License
183 stars 43 forks source link

C API needs casing fixed for function names #547

Open capnkenny opened 1 year ago

capnkenny commented 1 year ago

Describe the issue: C API currently has non-matching function name casing and should be updated so that the function names match our current code style.

The C API should match NovelRT's API and function names should be in PascalCase.

Please provide the steps to reproduce if possible: N/A - code styling issue

Additional context: Reference to code style issue where casing is incorrect.

bjauny commented 10 months ago

Hi there,

If I get it right, you need all the functions in the headers listed after the "#if defined(NOVELRT_C_API)" clause to be renamed?

For example: Nrt_getLastError to NrtGetLastError, or Nrt_AudioService_Create to NrtAudioServiceCreate?

Or does the Nrt_ prefix needs to be kept?

RubyNova commented 10 months ago

Hi,

Nrt_getLastError would become Nrt_GetLastError.

bjauny commented 10 months ago

Thanks! As an additional input, should I create multiple pull requests as I rename sets of functions? For example, renaming the NrtErrorHandling API gives me 46 files modified for 362 changes on the project. What would be the easiest to review for you?