!SGkzNqBXEJutSYnahE:matrix.org

C

224 Members
C Programming Ask C related questions here.26 Servers

Load older messages


SenderMessageTime
28 Jul 2021
@risu_sofos:matrix.orgrisu_sofosi dont want to change the format i want to parse it into something i can use the format will always be the same16:24:02
@risu_sofos:matrix.orgrisu_sofosi was going to use regex and just select all the annotations at the top and turn them into a struct that has a name and a value and make an array of annotations then all the moves at the bottom would be similar16:26:17
@tthom:ahtoms.xyztthomAlright, probably could use something like pcre instead of posix regex16:28:13
@risu_sofos:matrix.orgrisu_sofosthen the last bit would with the 1/2-1/2 would only ever be 1-0, 0-1, 1/2-1/216:28:24
@risu_sofos:matrix.orgrisu_sofospcre?16:28:33
@tthom:ahtoms.xyztthom https://pcre.org/ 16:29:06
@risu_sofos:matrix.orgrisu_sofosill give it a try16:32:16
@risu_sofos:matrix.orgrisu_sofosit says no makefile found16:37:00
@risu_sofos:matrix.orgrisu_sofosi just want the src, i dont want to build it16:37:27
@risu_sofos:matrix.orgrisu_sofosah, i see what it is trying to do. I dont think i want pcre16:40:04
@morizendev:nitro.chatmorizendev joined the room.18:08:20
@morizendev:nitro.chatmorizendevis there a build system for C that can be used to generate single-header libraries? Let's say I have 3 or more single-header libraries in use and I want some software solution that can merge all #include from project directory18:10:40
@bowuigi---now-more-based:kde.orgBowuigiNo idea18:14:31
@bowuigi---now-more-based:kde.orgBowuigi I mean, you could just use cat and enable compiler optimizations, but that is too lazy 18:15:02
@morizendev:nitro.chatmorizendevwhat does sqlite use for it's amalgamation thing? 18:16:47
@tthom:ahtoms.xyztthom
In reply to @morizendev:nitro.chat
is there a build system for C that can be used to generate single-header libraries? Let's say I have 3 or more single-header libraries in use and I want some software solution that can merge all #include from project directory
First question: Why do you need to do this? What are you trying to achieve? Second question: Are you familiar with object files, shared libraries and linking?
18:44:23
@tthom:ahtoms.xyztthom
In reply to @risu_sofos:matrix.org
ah, i see what it is trying to do. I dont think i want pcre
Alright, then what do you want? As far as I see it, if you want regex.h on win10, you will either need to go through the WSL route, pcre or some other library that works for all platforms (double check mingw, it may have an optional package) or just abandon supporting win 10
18:50:49
@risu_sofos:matrix.orgrisu_sofosfor some reason i cant seem to pull up that list that shows all the mingw packages20:24:55
@bkil:matrix.orgbkilm That's actually a really interesting question. Have you guys ever used precompiled headers (pch)? If you are developing a project with heap loads of libraries and/or having postprocessor generated headers (like with Qt), it could result in an orders of magnitude speedup of incremental compilation. Like if you just edit a text label, your new binary will be available in a split second or so. 20:33:59
@bkil:matrix.orgbkilm I think for this, you only had to pass in all .h files to gcc, maybe with a few lines of Makefile. 20:35:01
@bkil:matrix.orgbkilm
# man gcc
      file.h
           C, C++, Objective-C or Objective-C++ header file to be turned into a precompiled header
           (default), or C, C++ header file to be turned into an Ada spec (via the -fdump-ada-spec
           switch).
20:35:20
@bkil:matrix.orgbkilm
In reply to @morizendev:nitro.chat
is there a build system for C that can be used to generate single-header libraries? Let's say I have 3 or more single-header libraries in use and I want some software solution that can merge all #include from project directory
* That's actually a really interesting question. Have you guys ever used precompiled headers (pch)? If you are developing a project with heap loads of libraries and/or having postprocessor generated headers (like with Qt), it could result in an orders of magnitude speedup of incremental compilation. Like if you just edit a text label, your new binary will be available in a split second or so.
20:37:24
@risu_sofos:matrix.orgrisu_sofosimage.png
Download image.png
20:46:06
@risu_sofos:matrix.orgrisu_sofoswhat is this thing20:46:16
@bbaovanc:boba.bestbbaovancsome code20:46:37
@risu_sofos:matrix.orgrisu_sofoswhat20:47:15
@bbaovanc:boba.bestbbaovancit's true20:47:26
@risu_sofos:matrix.orgrisu_sofosit seems there is noting actually there20:48:40
@bowuigi---now-more-based:kde.orgBowuigi
In reply to @risu_sofos:matrix.org
what is this thing
A unicode character? no idea
20:56:57
@bowuigi---now-more-based:kde.orgBowuigiIDK I don't use VSCode20:57:11

There are no newer messages yet.


Back to Room List