Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › compiler/ › resinator/ › source_mapping.zig › parseAndRemoveLineCommandsAlloc
parseAndRemoveLineCommandsAlloc
source_mapping.parseAndRemoveLineCommandsAlloc
pub fn parseAndRemoveLineCommandsAlloc (allocator : Allocator , source : []const u8 , options : ParseAndRemoveLineCommandsOptions ) !ParseLineCommandsResult
File
Code
pub fn parseAndRemoveLineCommandsAlloc (allocator : Allocator , source : []const u8 , options : ParseAndRemoveLineCommandsOptions ) !ParseLineCommandsResult {
const buf = try allocator .alloc (u8 , source .len );
errdefer allocator .free (buf );
var result = try parseAndRemoveLineCommands (allocator , source , buf , options );
result .result = try allocator .realloc (buf , result .result .len );
return result ;
}