Mercurial
comparison mrjunejune/main.c @ 248:b8b6e726964a
[style] Use Dowa type aliases in C
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 02:44:06 -0700 |
| parents | b8aa08503378 |
| children | 745fd127b2a1 |
comparison
equal
deleted
inserted
replaced
| 247:70f2a3dafc1c | 248:b8b6e726964a |
|---|---|
| 12 // UUID + /tmp/ + format (max 4) | 12 // UUID + /tmp/ + format (max 4) |
| 13 #define TMP_FILE_LENGTH 47 | 13 #define TMP_FILE_LENGTH 47 |
| 14 #define UUID_LEN 37 | 14 #define UUID_LEN 37 |
| 15 | 15 |
| 16 volatile sig_atomic_t stop_server = 0; | 16 volatile sig_atomic_t stop_server = 0; |
| 17 static _Atomic uint32_t counter = 0; | 17 static _Atomic uint32 counter = 0; |
| 18 static _Atomic boolean g_latex_rendering = FALSE; | 18 static _Atomic boolean g_latex_rendering = FALSE; |
| 19 | 19 |
| 20 // Media Processing Context for background threads | 20 // Media Processing Context for background threads |
| 21 typedef struct { | 21 typedef struct { |
| 22 int64 media_id; | 22 int64 media_id; |
| 358 &expected, | 358 &expected, |
| 359 TRUE)) | 359 TRUE)) |
| 360 return LatexErrorResponse(arena, 429, "The LaTeX compiler is busy. Try again shortly."); | 360 return LatexErrorResponse(arena, 429, "The LaTeX compiler is busy. Try again shortly."); |
| 361 | 361 |
| 362 Latex_Render_Result render = Latex_Render( | 362 Latex_Render_Result render = Latex_Render( |
| 363 (const uint8_t *)((Seobeo_Request_Entry *)body_kv)->value, | 363 (const uint8 *)((Seobeo_Request_Entry *)body_kv)->value, |
| 364 (size_t)parsed_length); | 364 (size_t)parsed_length); |
| 365 atomic_store(&g_latex_rendering, FALSE); | 365 atomic_store(&g_latex_rendering, FALSE); |
| 366 if (render.status != LATEX_RENDER_OK) | 366 if (render.status != LATEX_RENDER_OK) |
| 367 { | 367 { |
| 368 int status = 500; | 368 int status = 500; |