Branch
Hash :
a9fa5074
Author :
Date :
2025-09-10T16:38:47
fix: use only one switch in pdf_write
/* kc3
* Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
#ifndef KC3_PDF_WRITE_H
#define KC3_PDF_WRITE_H
#include "types.h"
/* Parser functions. */
sw pdf_buf_write_bool (s_buf *buf, bool src);
//sw pdf_buf_write_comment (s_buf *buf);
//sw pdf_buf_write_comments (s_buf *buf);
sw pdf_buf_write_dictionnary (s_buf *buf, s_map *src);
sw pdf_buf_write_float (s_buf *buf, f32 src);
sw pdf_buf_write_indirect_object (s_buf *buf, s_tuple *src);
sw pdf_buf_write_integer (s_buf *buf, s32 src);
sw pdf_buf_write_name (s_buf *buf, p_sym src);
sw pdf_buf_write_null (s_buf *buf);
sw pdf_buf_write_string_hex (s_buf *buf, s_str *src);
sw pdf_buf_write_token (s_buf *buf, const char *token);
//bool pdf_character_is_delimiter (character c);
#endif /* KC3_PDF_WRITE_H */